mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-8710: Fixed applying iptables rules for s2s vpn
This commit is contained in:
parent
8fcc76e7ff
commit
da9e757b8e
@ -678,9 +678,6 @@ def main(argv):
|
|||||||
red = CsRedundant(config)
|
red = CsRedundant(config)
|
||||||
red.set()
|
red.set()
|
||||||
|
|
||||||
nf = CsNetfilters()
|
|
||||||
nf.compare(config.get_fw())
|
|
||||||
|
|
||||||
vpns = CsSite2SiteVpn("site2sitevpn", config)
|
vpns = CsSite2SiteVpn("site2sitevpn", config)
|
||||||
vpns.process()
|
vpns.process()
|
||||||
|
|
||||||
@ -693,6 +690,9 @@ def main(argv):
|
|||||||
mon = CsMonitor("monitorservice", config)
|
mon = CsMonitor("monitorservice", config)
|
||||||
mon.process()
|
mon.process()
|
||||||
|
|
||||||
|
nf = CsNetfilters()
|
||||||
|
nf.compare(config.get_fw())
|
||||||
|
|
||||||
# Save iptables configuration - will be loaded on reboot by the iptables-restore that is configured on /etc/rc.local
|
# Save iptables configuration - will be loaded on reboot by the iptables-restore that is configured on /etc/rc.local
|
||||||
CsHelper.save_iptables("iptables-save", "/etc/iptables/router_rules.v4")
|
CsHelper.save_iptables("iptables-save", "/etc/iptables/router_rules.v4")
|
||||||
CsHelper.save_iptables("ip6tables-save", "/etc/iptables/router_rules.v6")
|
CsHelper.save_iptables("ip6tables-save", "/etc/iptables/router_rules.v6")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user