diff options
| author | Simon <965089+sarthurdev@users.noreply.github.com> | 2025-09-18 17:03:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-18 17:03:40 +0200 |
| commit | f46bd3ae7d225d67968397cf85887ae64160592a (patch) | |
| tree | 0b347ed2381dfcf4693ee37b7e3405ac92b4d6ef /src | |
| parent | 94912576d4012cc28825e2933768b362ba512b89 (diff) | |
| parent | 4013ad1568041264d920c56f8461a437c9cfe0be (diff) | |
| download | vyos-1x-f46bd3ae7d225d67968397cf85887ae64160592a.tar.gz vyos-1x-f46bd3ae7d225d67968397cf85887ae64160592a.zip | |
Merge pull request #4692 from l0crian1/fw-pre-def-fix
op-mode: T6857: Fix default action for prerouting hook
Diffstat (limited to 'src')
| -rwxr-xr-x | src/op_mode/firewall.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/op_mode/firewall.py b/src/op_mode/firewall.py index 6e9f8a01b..96ce3f7f4 100755 --- a/src/op_mode/firewall.py +++ b/src/op_mode/firewall.py @@ -214,7 +214,7 @@ def output_firewall_name(family, hook, priority, firewall_conf, single_rule_id=N row.append(rule_details['conditions']) rows.append(row) - if hook in ['input', 'forward', 'output']: + if hook in ['input', 'forward', 'output', 'prerouting']: def_action = firewall_conf['default_action'] if 'default_action' in firewall_conf else 'accept' else: def_action = firewall_conf['default_action'] if 'default_action' in firewall_conf else 'drop' @@ -352,7 +352,7 @@ def output_firewall_name_statistics(family, hook, prior, prior_conf, single_rule rows.append(row) - if hook in ['input', 'forward', 'output']: + if hook in ['input', 'forward', 'output', 'prerouting']: row = ['default', ''] rule_details = details['default-action'] row.append(rule_details.get('packets', 0)) |
