Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/op_mode/firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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))
Expand Down
Loading