diff options
| author | Daniil Baturin <daniil@vyos.io> | 2025-06-19 15:44:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-19 15:44:46 +0100 |
| commit | 79dec52ed4c3a6c035204fad28b9229f709c87c4 (patch) | |
| tree | e1e2391390674c1b679c476488d17c9a0b48fc5b /data | |
| parent | 1c72ef9a39245b76bd79b8c7d46e806f84a148c9 (diff) | |
| parent | 8dbc3c5e67cc1fd043a78dd3446a1a733ebd814f (diff) | |
| download | vyos-1x-79dec52ed4c3a6c035204fad28b9229f709c87c4.tar.gz vyos-1x-79dec52ed4c3a6c035204fad28b9229f709c87c4.zip | |
Merge pull request #4558 from natali-rs1985/T6951
firewall: T6951: Add a configuration command for ethertypes that bridge firewalls should always accept
Diffstat (limited to 'data')
| -rwxr-xr-x | data/templates/firewall/nftables.j2 | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/data/templates/firewall/nftables.j2 b/data/templates/firewall/nftables.j2 index bf051bb57..39ef72059 100755 --- a/data/templates/firewall/nftables.j2 +++ b/data/templates/firewall/nftables.j2 @@ -410,15 +410,11 @@ table bridge vyos_filter { {% for prior, conf in bridge.output.items() %} chain VYOS_OUTPUT_{{ prior }} { type filter hook output priority {{ prior }}; policy accept; -{% if global_options.apply_to_bridged_traffic is vyos_defined %} -{% if 'invalid_connections' in global_options.apply_to_bridged_traffic %} - ct state invalid udp sport 67 udp dport 68 counter accept - ct state invalid ether type arp counter accept - ct state invalid ether type 8021q counter accept - ct state invalid ether type 8021ad counter accept - ct state invalid ether type 0x8863 counter accept - ct state invalid ether type 0x8864 counter accept - ct state invalid ether type 0x0842 counter accept +{% if global_options.apply_to_bridged_traffic.accept_invalid is vyos_defined %} +{% if 'ethernet_type' in global_options.apply_to_bridged_traffic.accept_invalid %} +{% for ether_type in global_options.apply_to_bridged_traffic.accept_invalid.ethernet_type %} + {{ ether_type | nft_accept_invalid() }} +{% endfor %} {% endif %} {% endif %} {% if global_options.state_policy is vyos_defined %} |
