Quote from: Ben S on January 07, 2025, 01:10:39 PMQuote from: schnipp on December 22, 2024, 10:37:08 AMMy WAN interface configuration:
- DHCPv6
- Only request IPv6 prefix
- Sent Prefix Hint
- IPV6 Privacy Extensions enabled
OPNsense 24.7.11_2-amd64
My reading of the code is that in this case it would use the link-local address as you have seen. It looks as if setting the 'Optional prefix ID' under Settings > WAN > DHCPv6 may cause it to use the GUA, if that's something you can try (i.e. if the prefix for your ISP is bigger than /64 and you can assign a /64 to your WAN interface).
This is exactly the behavior that I can reproduce. The workaround with "Optional prefix ID" has helped.
Without set "Optional prefix ID":
Code Select
> cat /var/unbound/unbound.conf | grep outgoing-interface
outgoing-interface: 192.168.0.2
outgoing-interface: fe80::e63a:6eff:fe61:cbe0%lagg0_vlan4001
With set "Optional prefix ID":
Code Select
> cat /var/unbound/unbound.conf | grep outgoing-interface
outgoing-interface: 192.168.0.2
outgoing-interface: 2a02:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:cbe0
Version: 25.1.10
Architecture: amd64
Commit: 0b8e414bf