Grant Proposal: NymVPN for FreeBSD & OPNsense (os-nymvpn

NymVPN for FreeBSD and OPNsense — Grant Proposal

Nov 3, 2026 · @lennet

I propose to port NymVPN to FreeBSD and ship it as an OPNsense plugin (os-nymvpn), so a whole home or office network can route through the Nym network from the firewall. A first FreeBSD build already connects two-hop to the Nym mainnet.

Problem

NymVPN runs on Linux, macOS, Windows, Android and iOS, and on OpenWrt routers through the community package, but not on FreeBSD. OPNsense and pfSense are FreeBSD-based and protect many home labs and small offices. Today their users can only protect devices one by one, and devices that cannot run the app (TVs, consoles, IoT) stay unprotected.

A native OPNsense plugin lets the firewall route chosen devices or VLANs through the Nym network with normal firewall rules.

Status

On 3 November 2026 a patched nym-vpnd connected two-hop (WireGuard, entry gateway in CZ → exit gateway 194.182.172.173) to the Nym mainnet from a FreeBSD 15.1 VM, the base of OPNsense 26.7. Traffic left through the exit gateway over IPv4 and IPv6.

Area Status on FreeBSD 15.1
nym-vpnd and nym-vpnc build Working (14 patches on nym-vpn-core and libwg)
Account login, zk-nym credentials, gateway registration Working
Routing (route(8), default route as two /1 halves) Working, cleans up on disconnect
IPC between daemon and CLI Working (Unix socket, root only)
WireGuard exit tunnel on a tun device Working
Two-hop in netstack mode Connected end to end
Two-hop with two tun devices Entry tunnel does not drain tun0 yet; under investigation
Kill switch / firewall Delegated to OPNsense pf rules (planned)
DNS Delegated to Unbound (planned)

The port found two upstream bugs worth reporting: rust-tun’s FreeBSD backend fails to assign point-to-point addresses, and wireguard-go’s CreateTUNFromFile on FreeBSD does not enable TUNSIFHEAD, so every packet is shifted by 4 bytes.

Milestones and budget

Total request: 150,000 NYM over about 3–4 months, paid per milestone after a public report in Phase 2.

Milestone Deliverables Duration Budget
1. FreeBSD client Two-tun two-hop mode fixed; crash-safe cleanup of tun devices and routes; rc.d service; FreeBSD package; install guide; FreeBSD CI build 6–8 weeks 80,000 NYM
2. OPNsense plugin os-nymvpn Web UI (account, mode, entry/exit, status); tunnel as OPNsense interface and gateway for policy routing; kill switch via pf rules; Unbound DNS integration; tested on an OPNsense 26.7 VM 4–6 weeks 60,000 NYM
3. Release Fixes from Nym QA; PRs to nym-vpn-client and opnsense/plugins; upstream bug reports to rust-tun and wireguard-go 2 weeks 10,000 NYM

The OpenWrt port received 75,000 NYM; this request is higher because the daemon first has to be ported to a new operating system, not only packaged. Amounts can be fixed in USD instead of NYM if the team prefers.

Maintenance, license and way of working

  • I will maintain the port for 12 months after release and follow new NymVPN releases within 4 weeks.
  • All code is GPL-3.0, in a public fork until merged upstream.
  • I am a student running a Proxmox home lab with OPNsense, and I test on real hardware and VMs.
  • The code is developed with my Dad

Open questions

  • Are payouts made in native NYM (Nyx chain) or as ERC-20 tokens?
  • Would you accept FreeBSD support as upstream PRs to nym-vpn-client, or prefer a separate package repo like the OpenWrt port?
  • Is netstack mode acceptable for a first beta while the two-tun mode is being fixed?
1 Like