OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: julf on June 14, 2021, 05:47:03 pm

Title: IPv6 - weird interaction between opnsense and fritz!box
Post by: julf on June 14, 2021, 05:47:03 pm
The WAN interface of my opnsense box connects to my fritz!box fibre optic modem. Strangely the opnsense interface, configured for dhcp6 only gets a link-local address, while my laptop gets a proper global IPv6 address when connected directly to the fritz!box.

Any clues or suggestions? I might of course be doing something stupid...
Title: Re: IPv6 - weird interaction between opnsense and fritz!box
Post by: KHE on June 14, 2021, 05:54:11 pm
Did you select Request only an IPv6 prefix in the DHCPv6 client configuration of the WAN interface?
If yes unselect it.

KH
Title: Re: IPv6 - weird interaction between opnsense and fritz!box
Post by: julf on June 14, 2021, 06:07:25 pm
Thanks, that helped - now the WAN interface gets a proper, routeable address. Now I just need to get the same to happen with the clients on the LAN interface.
Title: Re: IPv6 - weird interaction between opnsense and fritz!box
Post by: KHE on June 14, 2021, 06:16:55 pm
Set IPv6 Configuration Type to Track interface and in the Track IPv6 Interface section then select WAN. If you have only one internal network you can leave the IPv6 Prefix ID to 0 (Also needed if the Prefix is only /64).

KH
Title: Re: IPv6 - weird interaction between opnsense and fritz!box
Post by: julf on June 14, 2021, 06:36:20 pm
That is what I have - and I have a /48. Looking at the dashboard, I see that the dhcp6 server is not running, and refuses to start. In the general log file I see a message with "found no suitable IPv6 address on em0".
Title: Re: IPv6 - weird interaction between opnsense and fritz!box
Post by: KHE on June 14, 2021, 07:06:21 pm
Did you set something under Services -> Router Advertisements -> [LAN] -> Router Advertisements?
I use Unmanaged, which means SLAAC (Stateless Address Auto-Configuration).

I have not used DHCPv6, because SLAAC was easier for me to setup and also some devices (e.g. Android phones) seem not to work with it.
It is possible to set up a network with DHCPv6, but IPv6 is designed to work without it. There are many websites out there describing the reasons to use SLAAC or DHCPv6 and as many opinions which one is better. ;)
IPv6 introduces many new concepts and solutions, and I just wanted to mention that SLAAC is the option which works for me.

I forgot to mention, that in the LAN interface I checked the Manual configuration checkbox.

KH
 
Title: Re: IPv6 - weird interaction between opnsense and fritz!box
Post by: julf on June 14, 2021, 08:46:20 pm
I did try changing to SLAAC, but the client machines on the LAN still only have link-local addresses.
Title: Re: IPv6 - weird interaction between opnsense and fritz!box
Post by: KHE on June 14, 2021, 08:58:09 pm
If a reboot does not work, then is time for screenshots of the WAN, LAN and Router advertisment settings.
There sometimes seems to be an issue with the propagation of the IPv6 prefix.

KH
Title: Re: IPv6 - weird interaction between opnsense and fritz!box
Post by: julf on June 14, 2021, 09:10:32 pm
Will do that tomorrow morning - it is not entirely trivial, as the machine I use to access the opnsense box doesn't talk to the Internet...
Title: Re: IPv6 - weird interaction between opnsense and fritz!box
Post by: Greelan on June 15, 2021, 12:20:12 am
Is the /48 actually getting delegated to OPNsense? Check under Interfaces/Overview/WAN.

It is possible that the Fritz!box is taking the prefix. Some modems don’t bridge IPv6 properly, and so it is necessary to disable IPv6 entirely on them before bridging, so that they don’t interfere with OPNsense getting an IP address and prefix on the WAN interface.
Title: Re: IPv6 - weird interaction between opnsense and fritz!box
Post by: julf on June 15, 2021, 10:02:23 am
Hmm, yes... Interfaces/Overview/WAN shows that the OPNsense box only gets a /57.