It's normal for your WAN interface to get an IPv6 address outside your delegated prefix.
Is the /128 address on your WAN interface not static too?
If it's not, you could use the address of one of your other interfaces as the destination for WG instead.
The /128 on your WAN interface is probably from DHCPv6, and the /64 one from SLAAC, I'd guess....
Yes, the WAN IPv6 is usually from another IPv6 range than your delegated prefix.That is because with DHCPv6, you will usually get a /128 IA_NA for your WAN and a /56 (or /48) IA_PD for prefix delegation.
This may pose some problems for dynamic DNS, because when your OpnSense makes a request, it goes through the WAN interface, whereas your LAN clients will even have another prefix, such that masking the EUI-64 will not suffice.
However, since a few versions, OpnSense has the ability to use one of your IA_PD prefixes for the WAN instead of the IA_NA address. Just set "Request prefix only", and use some "Optional prefix ID" that is different from all of your "track interface" prefixes. This way, your WAN and LAN prefixes will be the same for your delegated prefix size (i.e. less than the first 64 bits).Another alternative is to just use "request prefix only" and leave the WAN interface completely without any IPv6 assigned. In that case, one of the LAN interface IPv6 addresses will be used for outbound connections instead.
Interesting. So I could use any interface IPv6? Probably then have to adjust the "Allow all UDP on Port 51820 to WAN address" rule, since the destination isn't WAN address anymore. Since I wg Interfaces are not allowed to have IP settings, I probably need to create a fake Interface which is ok, but not very sleek in my opinion.
Quote The /128 on your WAN interface is probably from DHCPv6, and the /64 one from SLAAC, I'd guess....That was my guess too. Do you think both are publicly routable?I tried both of them, but was not able to establish a connection. Maybe some other config error on my part.
QuoteThis may pose some problems for dynamic DNS, because when your OpnSense makes a request, it goes through the WAN interface, whereas your LAN clients will even have another prefix, such that masking the EUI-64 will not suffice.I don't understand that part to be honest
Sounds good! I trying to make sense of these options and to understand the implications. The second option seems like the sleeker way to do it. I don't need a SLAAC nor a DHCPv6 IPv6 on my WAN interface. To only real downside I can see, is that maybe then OPNsense itself is not IPv6 ready anymore and can only check for updates over IPv4?
The incoming interface would still be WAN. The destination address could be "This Firewall", which could cover any routable address.
Assuming they're from a routable prefix, I would expect so. Maybe try to get ping working before WG? https://tools.keycdn.com/ipv6-ping can be quite handy....
If your IPv6 ranges are not static, you will have to use dynamic DNS.
To update that with your current IPv6, you usually use a cnetralised approach, in that OpnSense updates the DNS name to its IP. While that works fine with IPv4 behind NAT (because all devices use the same IP), it does not with IPv6, because all devices have different IPv6s.