diff options
| author | l0crian1 <ryan.claridge13@gmail.com> | 2025-09-02 08:32:17 -0400 |
|---|---|---|
| committer | l0crian1 <ryan.claridge13@gmail.com> | 2025-09-02 08:32:17 -0400 |
| commit | 4013ad1568041264d920c56f8461a437c9cfe0be (patch) | |
| tree | 4a37b17aadffbc104937a1097827b7ea9c77dd5c /src | |
| parent | b1b4545cb7984cd3cdf42554ab2b28acd1ecb6cb (diff) | |
| download | vyos-1x-4013ad1568041264d920c56f8461a437c9cfe0be.tar.gz vyos-1x-4013ad1568041264d920c56f8461a437c9cfe0be.zip | |
Firewall: T6857: Fix default action for prerouting hook
- Fixes the op-mode cosmetic bugs with 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)) |
