]> git.proxmox.com Git - proxmox-firewall.git/commit
conntrack: arp: move handling to guest chains
authorStefan Hanreich <s.hanreich@proxmox.com>
Wed, 3 Jul 2024 09:17:11 +0000 (11:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Jul 2024 15:53:54 +0000 (17:53 +0200)
commitde751833660579e9b5410c375f79f6673f8e3c67
tree84abf048447ade8334091eb4db85f212d6d1719d
parent293a19c213e5668e75edd2901851725f8ed3fca7
conntrack: arp: move handling to guest chains

In order to make sure we are only affecting VM traffic and no host
interfaces that are bridged, move the rules into a chain that gets
executed inside the guest chain, rather than setting the rules
globally.

Since ether type matches on the respective Ethernet header, it
doesn't work for packets with VLAN header. Matching via meta protocol
ensures that VLAN encapsulated ARP packets are matched as well.
Otherwise ARP traffic inside VLANs gets dropped, due to them having
conntrack state invalid.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-firewall/resources/proxmox-firewall.nft
proxmox-firewall/src/firewall.rs
proxmox-firewall/tests/snapshots/integration_tests__firewall.snap