OPNsense Forum

English Forums => General Discussion => Topic started by: guest37312 on March 09, 2023, 09:17:45 PM

Title: Issue with DHCP6 client on WAN - it works until the first system reboot
Post by: guest37312 on March 09, 2023, 09:17:45 PM
Hello! I'm facing a weird issue with IPv6 on my OPNsense router.

Whenever I configure IPv6 with DHCPv6-PD over a separate PPPoE tunnel to my ISP, it works correctly, I get `/56` prefix, gateway and DNS information from the DHCPv6 server in my ISP's network, and my LAN interface gets address with Track Interface option.

This all works until I reboot my router or edit the interface in any way (even something irrelevant like interface name). Then it stops working for seemingly no reason and won't come back until I literally return OPNsense to factory defaults and re-configure everything from scratch. This pattern happened to me at least 2 times and yesterday was the 3rd one which made me write here.

Perhaps someone will know how to fix it.

System info:

Interface settings:

Steps to reproduce:

In case it helps, my ISP is Orange Poland and I use their gigabit FTTH service.

I had identical configuration on pfSense and it worked without issues for months. Problems begun only after I recently switched to OPNsense. What makes my head blow the most is the fact that this configuration works fine but only undergoes spontaneous combustion when I reload interface or reboot system, with no other change involved whatsoever. It happened when I just changed the interface name, then when i rebooted the system for an unrelated reason and now when I updated OPNsense.

I looked for `dhcp6c` in Log Files -> General, but there's nothing in there despite IPv6 DHCP log level being set to "Debug". I also have "Prevent release" option enabled.

Thank you in advance for any help on this one.
Title: Re: Issue with DHCP6 client on WAN - it works until the first system reboot
Post by: pataps on July 19, 2024, 09:47:16 AM
That is truly lucky and unfortunate at the same time...

Im having exactly the same issue, unsurprisingly with same ISP. But in my case what solves this is setting LAN ipv6 setting to something else, like SLAAC, applying changes and setting back Track interface.

Even if there's single ipv6 only WAN with PPPoE effect is the same, so the other WAN connection mentioned in OP doesn't matter. PPPoE is up but ipv6 is not delegated to LAN.

Even if this is something specific to this ISP, I managed to get this working without issues on Unifi router so it can work.

Any ideas on how to investigate this and narrow down the issue would be appreciated!