# NetBSD's racoon2 IKE daemon learns to handle NAT and IPv6 without hacks

Original title: Improving and Stabilizing the Racoon2 IKE Daemon in NetBSD

> Hacker News story 49953455 · language: en · submitted 2026-10-04
> Web version: https://zeli.app/story/49953455
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 18 · by [jaypatelani](<https://news.ycombinator.com/user?id=jaypatelani>) · 💬 11
[original](<https://blog.netbsd.org/tnf/entry/gsoc2026_racoon2>) · [HN discussion](<https://news.ycombinator.com/item?id=49953455>)

## Summary

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.

## Key quote

> 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.

## HN discussion (11 comments)

### [yjftsjthsd-h](<https://news.ycombinator.com/item?id=49988218>)

> 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](<https://news.ycombinator.com/item?id=49989706>)

> \> 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.

---

## Cite

- Page: https://zeli.app/story/49953455
- Date: 2026-10-04
- Source: blog.netbsd.org (https://blog.netbsd.org/tnf/entry/gsoc2026_racoon2)
- Hacker News: https://news.ycombinator.com/item?id=49953455

## Other languages

- zh: https://zeli.app/zh/story/49953455 · markdown: https://zeli.app/zh/story/49953455.md
- ja: https://zeli.app/ja/story/49953455 · markdown: https://zeli.app/ja/story/49953455.md
- ko: https://zeli.app/ko/story/49953455 · markdown: https://zeli.app/ko/story/49953455.md
- de: https://zeli.app/de/story/49953455 · markdown: https://zeli.app/de/story/49953455.md
- es: https://zeli.app/es/story/49953455 · markdown: https://zeli.app/es/story/49953455.md
- ru: https://zeli.app/ru/story/49953455 · markdown: https://zeli.app/ru/story/49953455.md
