|
|
Log in / Subscribe / Register

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

Even with the xfrm interfaces (what they call a route-based VPN), there is a gotcha. Let's say that there is a firewall that applies packet marks, and a complex routing setup that uses these firewall marks for routing decisions.

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.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds