Identity management for WireGuard
Identity management for WireGuard
Posted Oct 19, 2022 15:29 UTC (Wed) by patrakov (subscriber, #97174)In reply to: Identity management for WireGuard by grawity
Parent article: Identity management for WireGuard
Let's talk about an incoming packet on port 4500/udp. It traverses through the firewall, and gets its packet mark applied. Then the kernel decrypts it. The resulting packet traverses again through the firewall, but it inherits the mark of the original IPSEC packet.
Some firewall rulesets for policy routing (e.g. mwan3) clearly do not expect this, because "non-zero packet mark in the PREROUTING chain on the mangle table at the very beginning" just cannot happen with classical non-VPN interfaces or with userspace solutions like OpenVPN. Already reported as a bug in mwan3, see https://github.com/openwrt/packages/issues/19607.
