IPv6 and Wireguard VPN

Started by opnserious, December 29, 2024, 10:19:43 PM

Previous topic - Next topic
Dear community,

I am a beginner in IPv6 understanding and would like to understand the implications of IPv6 on Wireguard VPN's. So far I have created 5 IPv4 and IPv6 (track interface)VLANs that all work smoothly. Now, I also setup 5 different Wireguard VPNs that can independently connect to one of the 5 IPv4 VLANs smoothly. Now, the question is how can I get this to work as well for the 5 IPv6 VLANS ?

1. From my ISP I got a /56 dynamic IPv6 prefix and an IPv6 address as well on my WAN. From this /56 I created five /64 IPv6 subnets.
Let's say for instance one of the five subnets reads 2001:aaaa:bbbb:cc01:dddd:eeee:ffff:1111/64
2. Then how do I create a Wireguard instance that can connect to this IPv6 VLAN ?
3. What is the tunnel address I need to choose ? Should it be inside 2001:aaaa:bbbb:cc01:dddd:eeee:ffff:1111/64 ? or should it be outside of it ? or should it be a ULA ?

The point is that I would like to have an example of an IPv6 configuration in Wireguard s.t I can implement it. It seems that on the internet there are enough videos on how to set it up for IPv4 but not for IPv6. Hopefully someone has a guide on how to do this and make me better understand how IPv6 works.

Thanksss yall