diff options
author | Christian Breunig <christian@breunig.cc> | 2023-12-27 15:22:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-27 15:22:18 +0100 |
commit | 7324edfeb7ededc888a23bf72562673da2797f16 (patch) | |
tree | b2eaf944903a738093f0424a28007a0389eec3c0 /data/templates | |
parent | b86f13a1e41513c929acffdb693b358b42b234af (diff) | |
parent | 53a48f499ae9bcc2f657136bb7779b38aad1c242 (diff) | |
download | vyos-1x-7324edfeb7ededc888a23bf72562673da2797f16.tar.gz vyos-1x-7324edfeb7ededc888a23bf72562673da2797f16.zip |
Merge pull request #2651 from indrajitr/firewal-rename-enable-default-log
firewall: T5834: Rename 'enable-default-log' to 'default-log'
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/firewall/nftables-policy.j2 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/firewall/nftables-policy.j2 b/data/templates/firewall/nftables-policy.j2 index d77e3f6e9..9e28899b0 100644 --- a/data/templates/firewall/nftables-policy.j2 +++ b/data/templates/firewall/nftables-policy.j2 @@ -28,6 +28,9 @@ table ip vyos_mangle { {{ rule_conf | nft_rule('route', route_text, rule_id, 'ip') }} {% endfor %} {% endif %} +{% if conf.default_log is vyos_defined %} + counter log prefix "[ipv4-{{ (route_text)[:19] }}-default]" +{% endif %} } {% endfor %} {% endif %} @@ -57,6 +60,9 @@ table ip6 vyos_mangle { {{ rule_conf | nft_rule('route6', route_text, rule_id, 'ip6') }} {% endfor %} {% endif %} +{% if conf.default_log is vyos_defined %} + counter log prefix "[ipv6-{{ (route_text)[:19] }}-default]" +{% endif %} } {% endfor %} {% endif %} |