[Problem IPv4 CGNAT] [Solution IPv6] OpenVPN Wireguard Will this work?

Started by talespin, December 03, 2026, 03:19:17 PM

Previous topic - Next topic
Hi Everyone,

I have a Dynamic IPv6 /64 prefix. I am using ddns to update IPv6 address.
I have already setup local network using IPv4(Multiple VLAN).

I was thinking of using this approach to make OpenVPN/Wireguard work.
Use Ipv6 for public and IPv4 for Local, only part i am not sure of is how to link IPv6 to IPv4. Then i came across this post using IPv6. Will it work in my case or is there a better solution to link IPv6 WAN address to IPv4 local address.

https://forum.opnsense.org/index.php?topic=48778.0
Also I believe I have to set both Source NAT and Destination NAT for accessing System from outside.

Thank you

Hi talespin,

I'm not an OPNsense expert and I haven't tested this, but your plan sounds right.

You don't need to "link" IPv6 to IPv4. The VPN tunnel itself travels over IPv6 (the client connects to your firewall's IPv6 address via the DDNS name), and inside the tunnel you use IPv4 with its own tunnel network, routed to your local VLANs. There is no NAT between the two.

For reaching the firewall over IPv6 you also shouldn't need Source or Destination NAT, since IPv6 isn't NATed: you need a firewall rule on WAN allowing the VPN port (UDP for WireGuard, or whichever OpenVPN uses) to "This Firewall", with the IPv6 address family. Make sure the DDNS entry is an AAAA record for the WAN IPv6 address.

One limit: the client needs working IPv6 too. If it is on an IPv4-only network, it can't reach your server, and in that case you would need something else, such as a small relay server outside your CGNAT.

Sergio
BoNet Tech — reti, sicurezza e QoS, spiegati bene.
Sito e servizi: bonet.tech