NetBSD's racoon2 IKE daemon learns to handle NAT and IPv6 without hacks
Improving and Stabilizing the Racoon2 IKE Daemon in NetBSD
As part of Google Summer of Code 2026, Artem Belan overhauled the racoon2 IKE daemon in NetBSD. The project implemented RFC 7383 fragmentation, NAT-OA payloads, and address substitution for NAT-T, fixed long-broken IPv6 support, and added a unit test framework. Now the daemon can serve as a reliable L2TP/IPsec or IKEv2 VPN server behind NAT, working with built-in Windows, iOS, and Android clients out of the box.
The daemon can sit behind a NAT device and serve modern VPN clients without any workaround selectors in its configuration, IPv6 works out of the box, and the changes are protected by an automated test suite.
- yjftsjthsd-h
I suspect I'm in a bubble, so perhaps someone might tell me what I'm missing...
> racoon2 is a system to exchange and install security parameters for IPsec. It consists of an IKEv1/IKEv2 key exchange daemon, a security policy management daemon, and a Kerberos-based key exchange daemon.
When would you use this over wireguard?
There's a hint in
> for built-in Windows, iOS and Android VPN clients.
where I can see value if you want to provide a VPN without needing to install anything on the client, but that doesn't seem like a big thing to me. Or maybe legacy ipsec setups?
- eqvinox
> NAT-OA payloads in IKEv1 Quick Mode (RFC 3947)
> IPv6 support fixed and enabled by default
Oof. Bad sign to see either of these, though for opposite reasons. Broken IPv6 points to way insufficient testing & use. IKEv1 meanwhile is deprecated and rather ought to be removed entirely.