diff options
author | Christian Breunig <christian@breunig.cc> | 2023-09-12 20:11:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 20:11:32 +0200 |
commit | 4a51fb08e73d259bab87e154f99fb5c3e85fbc46 (patch) | |
tree | 503c6916fd8fd851a0646b87ed2df884258fc887 /python | |
parent | cd3dda75534abf2453c5dcd47969f4119a0e0dae (diff) | |
parent | b730015945dcac62db4373ebfa8072d7bc1acff1 (diff) | |
download | vyos-1x-4a51fb08e73d259bab87e154f99fb5c3e85fbc46.tar.gz vyos-1x-4a51fb08e73d259bab87e154f99fb5c3e85fbc46.zip |
Merge pull request #2249 from sever-sever/T4309
T4309: Conntrack ignore fix to handle interface any
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/template.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/vyos/template.py b/python/vyos/template.py index c1b57b883..add4d3ce5 100644 --- a/python/vyos/template.py +++ b/python/vyos/template.py @@ -671,7 +671,8 @@ def conntrack_ignore_rule(rule_conf, rule_id, ipv6=False): if 'inbound_interface' in rule_conf: ifname = rule_conf['inbound_interface'] - output.append(f'iifname {ifname}') + if ifname != 'any': + output.append(f'iifname {ifname}') if 'protocol' in rule_conf: proto = rule_conf['protocol'] |