I use a commercial VPN provider and everything in IPv4 works as expected (even a few forwarded ports).
My Internet provider gives me CG-NAT IPv4 and IPv6. I have been able to have IPv6 working (in relay mode only because there is no Prefix Delegation and the router receives a /64 only).
But having a public IPv6 from my Internet provider ruins the privacy I intend to have with a VPN.
My Wireguard vpn0 interface receives an IPv4 and an IPv6 address but the WAN6 is always the default route. What I did was disable WAN6 then I can ping and traceroute in IPv6 from the router to the vpn provider.
Now on the client side, a windows PC, I have to provide a local IPv6 that will be routed in the VPN but I don’t know how. I tried to enable DHCP for IPv6 on the LAN interface and my windows PC receives a ULA IPv6 but no default route for IPv6. After countless hours for weeks on this subject I’m lost (with IPv6 at least).
Thank you. I re-enabled WAN6 (like the initial OpenWrt configuration) and an improvement is that from the windows client it can resolve IPs from command ping and tracert but cannot ping anything outside the router.
Example:
D:>tracert -6 one.one.one.one
Tracing route to one.one.one.one [2606:4700:4700::1111]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms OpenWrt.lan [fd00::1]
2 * * * Request timed out.
3 * * * Request timed out.
4 * * * Request timed out.
5 * * * Request timed out.
6 * * * Request timed out.
I still think that having a public IPv6 isn’t mandatory.
The downside of re-enabling WAN6 if that ipleak now sees my real public IPv6 through WebRTC detection.
When I disable WAN6, my windows client needs a source for it’s IPv6 parameters. I tried to activate a server mode on the LAN interface or on the vpn0 without success probably because default IPv6 gateway seems missing:
It was close but the LAN client didn’t receive its IPv6 Default Gateway and it’s really necessary.
I made the changes shown below in the LAN IPv6 RA Settings and restarted the windows Ethernet link and voila. I suspect that only one or two changes were necessary and I’ll continue testing.
Now, the OpenWrt router doesn’t have a public IPv6 address but the two IPv4 and IPv6 VPN provider addresses are displayed on ipleak.net on a chrome clone but on a firefox clone it displays IPv6 test not reachable. (error).
I still have an issue with DNS leak with both browsers. It’s far from perfect at this stage.