CLOUDSTACK-8710: Fixed applying iptables rules for s2s vpn

This commit is contained in:
Jayapal 2015-08-13 14:07:12 +05:30
parent 8fcc76e7ff
commit da9e757b8e

View File

@ -678,9 +678,6 @@ def main(argv):
red = CsRedundant(config)
red.set()
nf = CsNetfilters()
nf.compare(config.get_fw())
vpns = CsSite2SiteVpn("site2sitevpn", config)
vpns.process()
@ -693,6 +690,9 @@ def main(argv):
mon = CsMonitor("monitorservice", config)
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
CsHelper.save_iptables("iptables-save", "/etc/iptables/router_rules.v4")
CsHelper.save_iptables("ip6tables-save", "/etc/iptables/router_rules.v6")