CLOUDSTACK-8690: Updated the iptables order

This commit is contained in:
Jayapal 2015-09-07 16:01:57 +05:30
parent f661ac0a2a
commit 33f4f952cf
1 changed files with 3 additions and 3 deletions

View File

@ -644,10 +644,10 @@ class CsRemoteAccessVpn(CsDataBag):
return
self.fw.append(["mangle", "","-N VPN_%s " %publicip])
self.fw.append(["mangle", "","-I PREROUTING -d %s -j VPN_%s " % (publicip, publicip)])
self.fw.append(["mangle", "","-A VPN_%s -p ah -j ACCEPT " % publicip])
self.fw.append(["mangle", "","-A VPN_%s -p esp -j ACCEPT " % publicip])
self.fw.append(["mangle", "","-A VPN_%s -j RETURN " % publicip])
self.fw.append(["mangle", "","-I VPN_%s -p ah -j ACCEPT " % publicip])
self.fw.append(["mangle", "","-I VPN_%s -p esp -j ACCEPT " % publicip])
self.fw.append(["mangle", "","-I PREROUTING -d %s -j VPN_%s " % (publicip, publicip)])
class CsForwardingRules(CsDataBag):