diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-22 20:48:44 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-01-22 20:48:44 +0100 |
commit | 89f0d347bfe5e468355817a617dc71823a58c284 (patch) | |
tree | 5a6fbcab6ad5ba4365bab27e12dd4fb4af80ced1 /data/vyos-firewall-init.conf | |
parent | a821b8c603999665ce8a77acb0e44a743811992a (diff) | |
download | vyos-1x-89f0d347bfe5e468355817a617dc71823a58c284.tar.gz vyos-1x-89f0d347bfe5e468355817a617dc71823a58c284.zip |
vrf: T5973: move initial conntrack firewall table to startup
There is no need to add and remove this table during runtime - it can lurk
in the standard firewall init code.
Diffstat (limited to 'data/vyos-firewall-init.conf')
-rw-r--r-- | data/vyos-firewall-init.conf | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/data/vyos-firewall-init.conf b/data/vyos-firewall-init.conf index cd7d5011f..5a4e03015 100644 --- a/data/vyos-firewall-init.conf +++ b/data/vyos-firewall-init.conf @@ -54,3 +54,22 @@ table ip6 raw { type filter hook prerouting priority -300; policy accept; } } + +# Required by VRF +table inet vrf_zones { + # Map of interfaces and connections tracking zones + map ct_iface_map { + typeof iifname : ct zone + } + # Assign unique zones for each VRF + # Chain for inbound traffic + chain vrf_zones_ct_in { + type filter hook prerouting priority raw; policy accept; + counter ct original zone set iifname map @ct_iface_map + } + # Chain for locally-generated traffic + chain vrf_zones_ct_out { + type filter hook output priority raw; policy accept; + counter ct original zone set oifname map @ct_iface_map + } +} |