Merge "Don't match input interface in POSTROUTING table"

This commit is contained in:
Zuul 2019-07-02 14:59:25 +00:00 committed by Gerrit Code Review
commit 29ccecebd7

View File

@ -883,9 +883,8 @@ class RouterInfo(BaseRouterInfo):
def _prevent_snat_for_internal_traffic_rule(self, interface_name):
return (
'POSTROUTING', '! -i %(interface_name)s '
'! -o %(interface_name)s -m conntrack ! '
'--ctstate DNAT -j ACCEPT' %
'POSTROUTING', '! -o %(interface_name)s -m conntrack '
'! --ctstate DNAT -j ACCEPT' %
{'interface_name': interface_name})
def external_gateway_nat_fip_rules(self, ex_gw_ip, interface_name):