core icon indicating copy to clipboard operation
core copied to clipboard

IPv6 Track Interface sometimes fails to assign GUAs after PPPoE reconnect

Open TheDom42 opened this issue 3 years ago • 42 comments

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

  • [x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
  • [x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

Describe the bug This bug report is based upon the discussion in https://forum.opnsense.org/index.php?topic=31443.0. By now, I believe this is a bug.

When using DHCPv6 with a /56 prefix request on the WAN together with v4 PPPoE and a local interface in track interface mode, opnsense sometimes looses the prefix after a PPPoE reconnect, making it impossible for the other interfaces to generate GUAs. Currently, all the cases that I could find/observe are based on Deutsche Telekom as ISP with full Dual Stack.

Unfortunately, this issue seems to be hard to reproduce as in many cases, there are no problems. However, if you have a daily cron for a reconnect, you can probably observe the behavior about 2 times a week (I would estimate).

To Reproduce

  1. Set the WAN exactly according to https://docs.opnsense.org/manual/how-tos/ipv6_dsl.html with a /56 prefix.

  2. Set one (or multiple) interfaces to "Track Interface - WAN", correctly generating GUAs for the interfaces as well as the hosts in there (everything fine so far)

  3. Trigger a WAN reconnect (either via Overview or e.g. via a Cron)

  4. Sometimes(!): Loose basically all IPv6 connectivity for the hosts 4.1: See that the live view FW log is filling up with default denys from the LAN (probably the old IPv6 addresses with invalid states on that interface) 4.2 See that the line with "prefix" on the WAN interface in the overview is missing (i.e. probable root cause: no prefix is assigned) 4.3 See that the Interface overview on the Dashboard only shows "track6" instead of GUAs 4.4 See that the DHCPv6 service is down and cannot be restarted (probably due to not being able to generate GUAs)

  5. Trigger another reconnect with the same settings on the WAN or reboot FW and usually regain connectivity

Expected behavior

GUAs (based on the /56 prefix on the WAN) should be assigned to the interfaces in track6 mode.

Describe alternatives you considered

As mentioned, the issue seems to be related to the fact that no prefix on the WAN is obtained after the PPPoE reconnect and therefore basically everything relying on v6 GUAs breaks in the process. Currently, it seems hard to tell if it's an Opnsense issue, but to be honest I have been running a pfsense on the same line up until a few weeks ago with no such behavior. As a workaround: maybe, it would be possible to implement a check in the newwanip script to see if a prefix has been obtained (when DHCPv6 is active on WAN and prefix request is ticked) and if not, trigger another reconnect until a prefix is assigned? I'm not sure if that is a feasible idea (e.g. I don't know if some ISPs enforce a rate limiting etc.).

Screenshots

All that can be seen is already described above.

Relevant log files So far, no really relevant log entries could be found. Here is one example. Another (by another user with the same problem can be found at https://forum.opnsense.org/index.php?topic=21682.msg148182#msg148182:

2022-12-31T03:30:23	Error	opnsense	/usr/local/etc/rc.newwanipv6: The command '/usr/local/sbin/radvd -p /var/run/radvd.pid -C /var/etc/radvd.conf -m syslog' returned exit code '255', the output was ''	
2022-12-31T03:30:23	Error	opnsense	/usr/local/etc/rc.newwanipv6: Warning! dhcpd_radvd_configure(auto) found no suitable IPv6 address on ix0	
2022-12-31T03:30:23	Error	opnsense	/usr/local/etc/rc.newwanipv6: Warning! dhcpd_radvd_configure(manual) found no suitable IPv6 address on vlan011	
2022-12-31T03:30:23	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: entering configure using 'wan'	
2022-12-31T03:30:23	Error	opnsense	/usr/local/etc/rc.newwanipv6: Warning! dhcpd_radvd_configure(auto) found no suitable IPv6 address on ix0	
2022-12-31T03:30:23	Error	opnsense	/usr/local/etc/rc.newwanipv6: Warning! dhcpd_radvd_configure(manual) found no suitable IPv6 address on vlan011	
2022-12-31T03:30:08	Notice	opnsense	plugins_configure newwanip (execute task : webgui_configure_do(,wan))	
2022-12-31T03:30:08	Notice	opnsense	plugins_configure newwanip (execute task : vxlan_configure_do())	
2022-12-31T03:30:07	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (execute task : system_hosts_generate(1))	
2022-12-31T03:30:07	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (execute task : system_resolvconf_generate(1))	
2022-12-31T03:30:07	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (1)	
2022-12-31T03:30:06	Notice	dhcp6c		dhcp6c RELEASE on pppoe0 - running dns reload	
2022-12-31T03:30:06	Notice	opnsense	plugins_configure newwanip (execute task : unbound_configure_do(,wan))	
2022-12-31T03:30:06	Notice	opnsense	plugins_configure newwanip (execute task : openssh_configure_do(,wan))	
2022-12-31T03:30:06	Notice	opnsense	plugins_configure newwanip (execute task : opendns_configure_do())	
2022-12-31T03:30:06	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : ntpd_configure_do())	
2022-12-31T03:30:06	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : dnsmasq_configure_do())	
2022-12-31T03:30:06	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure newwanip (,wan)	
2022-12-31T03:30:06	Error	opnsense	/usr/local/etc/rc.newwanip: Resyncing OpenVPN instances for interface WAN.	
2022-12-31T03:30:06	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure vpn (execute task : openvpn_configure_do(,wan))	
2022-12-31T03:30:06	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure vpn (execute task : ipsec_configure_do(,wan))	
2022-12-31T03:30:06	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure vpn (,wan)	
2022-12-31T03:30:06	Error	opnsense	/usr/local/etc/rc.newwanip: IP address renew, killing all previous states	
2022-12-31T03:30:05	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure dhcp (execute task : dhcpd_dhcp_configure(,inet6))	
2022-12-31T03:30:05	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure dhcp (,inet6)	
2022-12-31T03:30:05	Error	opnsense	/usr/local/etc/rc.newwanipv6: On (IP address: XXXX:XX:XXXX:XXXX:XXXX:XXX:XXXX:XXXX) (interface: WAN[wan]) (real interface: pppoe0).	
2022-12-31T03:30:05	Error	opnsense	/usr/local/etc/rc.newwanipv6: IPv6 renewal is starting on 'pppoe0'	
2022-12-31T03:30:05	Notice	dhcp6c		dhcp6c REQUEST on pppoe0 - running newipv6	
2022-12-31T03:30:05	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_run return_gateways_status (execute task : dpinger_status())	
2022-12-31T03:30:05	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_run return_gateways_status ()	
2022-12-31T03:30:04	Error	opnsense	/usr/local/etc/rc.newwanip: Adding static route for monitor 8.8.8.8 via xx.xxx.xxx.xxx	
2022-12-31T03:30:04	Error	opnsense	/usr/local/etc/rc.newwanip: Removing static route for monitor 8.8.8.8 via xx.xxx.xxx.xxx	
2022-12-31T03:30:04	Error	opnsense	/usr/local/etc/rc.newwanip: Chose to bind WAN_PPPOE on xxx.xxx.xxx.xxx since we could not find a proper match.	
2022-12-31T03:30:04	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure monitor (execute task : dpinger_configure_do(,WAN_PPPOE))	
2022-12-31T03:30:04	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure monitor (,WAN_PPPOE)	
2022-12-31T03:30:04	Error	opnsense	/usr/local/etc/rc.newwanip: The WAN_DHCP6 monitor address is empty, skipping.	
2022-12-31T03:30:04	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure monitor (execute task : dpinger_configure_do(,WAN_DHCP6))	
2022-12-31T03:30:04	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure monitor (,WAN_DHCP6)	
2022-12-31T03:30:04	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway 'feXX::XXXX:XXXX:XXXX:XXXX%pppoe0'	
2022-12-31T03:30:04	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: setting IPv6 default route to feXX::XXXX:XXXX:XXXX:XXXX	
2022-12-31T03:30:04	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: IPv6 default gateway set to wan	
2022-12-31T03:30:04	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway 'xx.xxx.xxx.xxx'	
2022-12-31T03:30:04	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: setting IPv4 default route to xx.xxx.xxx.xxx	
2022-12-31T03:30:04	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: IPv4 default gateway set to wan	
2022-12-31T03:30:03	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure dhcp (execute task : dhcpd_dhcp_configure(,inet6))	
2022-12-31T03:30:03	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure dhcp (,inet6)	
2022-12-31T03:30:03	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: entering configure using 'wan'	
2022-12-31T03:30:03	Notice	dhcp6c		RTSOLD script - Sending SIGHUP to dhcp6c	
2022-12-31T03:30:03	Notice	dhcp6c		RTSOLD script - Sending SIGHUP to dhcp6c	
2022-12-31T03:30:03	Notice	opnsense	/usr/local/etc/rc.configure_interface: plugins_configure dhcp (execute task : dhcpd_dhcp_configure(1))	
2022-12-31T03:30:03	Notice	opnsense	/usr/local/etc/rc.configure_interface: plugins_configure dhcp (1)	
2022-12-31T03:30:03	Notice	opnsense	/usr/local/etc/rc.configure_interface: plugins_configure ipsec (execute task : ipsec_configure_do(1,wan))	
2022-12-31T03:30:03	Notice	opnsense	/usr/local/etc/rc.configure_interface: plugins_configure ipsec (1,wan)	
2022-12-31T03:30:03	Error	opnsense	/usr/local/etc/rc.newwanipv6: On (IP address: XXXX:XX:XXXX:XXXX:XXXX:XXX:XXXX:XXXX) (interface: WAN[wan]) (real interface: pppoe0).	
2022-12-31T03:30:03	Error	opnsense	/usr/local/etc/rc.configure_interface: Adding static route for monitor 8.8.8.8 via xx.xxx.xxx.xxx	
2022-12-31T03:30:03	Error	opnsense	/usr/local/etc/rc.configure_interface: Removing static route for monitor 8.8.8.8 via xx.xxx.xxx.xxx	
2022-12-31T03:30:03	Error	opnsense	/usr/local/etc/rc.configure_interface: Chose to bind WAN_PPPOE on xxx.xxx.xxx.xxx since we could not find a proper match.	
2022-12-31T03:30:03	Error	opnsense	/usr/local/etc/rc.newwanipv6: IPv6 renewal is starting on 'pppoe0'	
2022-12-31T03:30:03	Notice	opnsense	/usr/local/etc/rc.configure_interface: plugins_configure monitor (execute task : dpinger_configure_do(1,WAN_PPPOE))	
2022-12-31T03:30:03	Notice	opnsense	/usr/local/etc/rc.configure_interface: plugins_configure monitor (1,WAN_PPPOE)	
2022-12-31T03:30:03	Error	opnsense	/usr/local/etc/rc.configure_interface: The WAN_DHCP6 monitor address is empty, skipping.	
2022-12-31T03:30:03	Error	opnsense	/usr/local/etc/rc.newwanip: On (IP address: xxx.xxx.xxx.xxx) (interface: WAN[wan]) (real interface: pppoe0).	
2022-12-31T03:30:03	Error	opnsense	/usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'pppoe0'	
2022-12-31T03:30:03	Notice	opnsense	/usr/local/etc/rc.configure_interface: plugins_configure monitor (execute task : dpinger_configure_do(1,WAN_DHCP6))	
2022-12-31T03:30:03	Notice	opnsense	/usr/local/etc/rc.configure_interface: plugins_configure monitor (1,WAN_DHCP6)	
2022-12-31T03:30:03	Error	opnsense	/usr/local/etc/rc.configure_interface: ROUTING: skipping IPv6 default route	
2022-12-31T03:30:03	Error	opnsense	/usr/local/etc/rc.configure_interface: ROUTING: IPv6 default gateway set to wan	
2022-12-31T03:30:03	Error	opnsense	/usr/local/etc/rc.configure_interface: ROUTING: skipping IPv4 default route	
2022-12-31T03:30:03	Error	opnsense	/usr/local/etc/rc.configure_interface: ROUTING: IPv4 default gateway set to opt19	
2022-12-31T03:30:02	Error	opnsense	/usr/local/etc/rc.configure_interface: ROUTING: entering configure using 'wan'

Additional context

No other context available.

Environment

Software version used and hardware type if relevant, e.g.:

OPNsense 22.7.10_2-amd64 (but also observed at least with 22.7.9) FreeBSD 13.1-RELEASE-p5 OpenSSL 1.1.1s 1 Nov 2022

Intel® NUC9i5QNX Network Intel® I210-AT

TheDom42 avatar Dec 31 '22 10:12 TheDom42

We have now more cases with logs (e.g. https://forum.opnsense.org/index.php?topic=21682.msg152240#msg152240) and judging by the upvotes for this issue, I believe this is not an isolated single case. Also, in the last few days, it has gotten worse, where basically every nightly Cron PPPoE reset triggers those issues. As a workaround, I have now turned off tracking for the LAN interfaces (yes, I could also just turn off my Cron but the issue would still remain if the WAN link would be reset some other way - e.g. from the ISP, power loss etc., so this would not eleminate the root issue). Nevertheless, missing v6 connectivity for all clients in this subnet with the recommended standard configuration is problematic nowadays. How should we proceed? How could this be investigated?

TheDom42 avatar Jan 08 '23 09:01 TheDom42

Happy new year!

PPPoE has always been a bit challenging. I've added https://github.com/opnsense/core/issues/6204 for 23.1 which by default prevents the ISP to give out additional IPv6 addressing which could throw off the system, but it's pretty specific to how the ISP does things.

I can help out here but for the time being I need to ensure that 23.1 will go out end of the month which binds a lot of resources in January.

Cheers, Franco

fichtner avatar Jan 09 '23 08:01 fichtner

Thank you for the update! Just for clarification: does #6204 in your eyes help with the situation described above? In any case, I will monitor the situation (also after the update). Thank you for having a look at it! :) Also happy new year to you!

TheDom42 avatar Jan 09 '23 20:01 TheDom42

It really depends on the ISP. The patch merely prevents two IPv6 modes fighting for the primary address. It‘s a problem with no clear winner and a fixed PPPoE supplied IPv6 might make the system think it doesn’t have to reload anything else and/or set the wrong router address.

if you want I can provide a backport tomorrow. I think there were two commits necessary. It’s a rather harmless change to test.

Cheers, Franco

fichtner avatar Jan 09 '23 21:01 fichtner

Maybe this is helpful to some affected by this issue: manually triggering a DHCPv6 reload on the WAN interface (via Interfaces – Overview) appears to kick delegation back into action and is often less trouble than a PPPoE reconnect.

thumax avatar Jan 11 '23 07:01 thumax

@thumax truth be told it will reload IPv4 as well in that case, see https://github.com/opnsense/core/commit/b33ed9e20702

fichtner avatar Jan 11 '23 07:01 fichtner

Looks like I found myself a homeopathic workaround then. 😁 Thanks for the hint.

thumax avatar Jan 11 '23 07:01 thumax

I believe I have the same problem. My ISP also is Deutsche Telekom.

My internet connection sometimes drops multiple times a day, but most often between 3-4 AM. The only thing that works to get the internet connection back up is to restart the VDSL modem (Speedport Smart 3).

While in the faulty state the only relevant log I get is this one again and again: Error dhcp6c transmit failed: Can't assign requested address.

When I restart the firewall while it is in the faulty state, the DHCP6 service is not able to start, but is not logging anything. After restart the modem, I get a a bunch of errors, but after a few minutes everything works again.

EuleMitKeule avatar Jan 11 '23 21:01 EuleMitKeule

I'm seeing the same issue, after IPv6s renewal my IPv6 connection is mostly gone.

My ISP is a local one but they cooperate with Deutsche Telekom. I'm sitting behind DS Lite.

My workaround is currently to reboot Opnsense at night by cron. Unfortunately the workaround to just reload DHCPv6 on WAN did not help.

Current version FreeBSD 13.1-RELEASE-p5 stable/22.7-n250270-9d1c26e8548 SMP amd64 OPNsense 22.7.10_2 bdce9463f Plugins os-theme-cicada-1.31 os-theme-rebellion-1.8.8 os-theme-vicuna-1.43 os-wireguard-1.13_3 os-wol-2.4_1

I also observed the problem with earlier versions

2023-01-11T19:56:26	Error	php	/usr/local/opnsense/scripts/dhcp/prefixes.php: The command '/sbin/route add -inet6 'xxxx:xxxx:xxxx:xxxx::/62' 'xxxx:xxxx:xxxx:xxxx::xxxx'' returned exit code '1', the output was 'route: writing to routing socket: Network is unreachable add net xxxx:xxxx:xxxx:xxxx::/62: gateway xxxx:xxxx:xxxx:xxxx::xxxx fib 0: Network is unreachable'	
2023-01-11T19:52:05	Error	php	/usr/local/opnsense/scripts/dhcp/prefixes.php: The command '/sbin/route add -inet6 'xxxx:xxxx:xxxx:xxxx::/62' 'xxxx:xxxx:xxxx:xxxx::xxxx'' returned exit code '1', the output was 'route: writing to routing socket: Network is unreachable add net xxxx:xxxx:xxxx:xxxx::/62: gateway xxxx:xxxx:xxxx:xxxx::xxxx fib 0: Network is unreachable'	
2023-01-11T19:50:04	Error	php	/usr/local/opnsense/scripts/dhcp/prefixes.php: The command '/sbin/route add -inet6 'xxxx:xxxx:xxxx:xxxx::/62' 'xxxx:xxxx:xxxx:xxxx::xxxx'' returned exit code '1', the output was 'route: writing to routing socket: Network is unreachable add net xxxx:xxxx:xxxx:xxxx::/62: gateway xxxx:xxxx:xxxx:xxxx::xxxx fib 0: Network is unreachable'	
2023-01-11T18:07:17	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : webgui_configure_do(,wan))	
2023-01-11T18:07:17	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : vxlan_configure_do())	
2023-01-11T18:07:16	Error	opnsense	/usr/local/etc/rc.newwanipv6: warning: ignoring missing default tunable request: debug.pfftpproxy	
2023-01-11T18:07:12	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : unbound_configure_do(,wan))	
2023-01-11T18:07:12	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : openssh_configure_do(,wan))	
2023-01-11T18:07:12	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : opendns_configure_do())	
2023-01-11T18:07:08	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : ntpd_configure_do())	
2023-01-11T18:07:08	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : dnsmasq_configure_do())	
2023-01-11T18:07:08	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (,wan)	
2023-01-11T18:07:08	Error	opnsense	/usr/local/etc/rc.newwanipv6: Resyncing OpenVPN instances for interface WAN.	
2023-01-11T18:07:08	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure vpn (execute task : openvpn_configure_do(,wan))	
2023-01-11T18:07:08	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure vpn (execute task : ipsec_configure_do(,wan))	
2023-01-11T18:07:08	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure vpn (,wan)	
2023-01-11T18:07:03	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_run return_gateways_status (execute task : dpinger_status())	
2023-01-11T18:07:03	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_run return_gateways_status ()	
2023-01-11T18:07:03	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : ntpd_configure_do())	
2023-01-11T18:07:03	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : dnsmasq_configure_do())	
2023-01-11T18:07:03	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (,wan)	
2023-01-11T18:07:03	Error	opnsense	/usr/local/etc/rc.newwanipv6: Resyncing OpenVPN instances for interface WAN.	
2023-01-11T18:07:03	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure vpn (execute task : openvpn_configure_do(,wan))	
2023-01-11T18:07:03	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure vpn (execute task : ipsec_configure_do(,wan))	
2023-01-11T18:07:03	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure vpn (,wan)	
2023-01-11T18:07:02	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : webgui_configure_do(,wan))	
2023-01-11T18:07:02	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : vxlan_configure_do())	
2023-01-11T18:07:00	Error	opnsense	/usr/local/etc/rc.newwanipv6: warning: ignoring missing default tunable request: debug.pfftpproxy	
2023-01-11T18:06:59	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_run return_gateways_status (execute task : dpinger_status())	
2023-01-11T18:06:59	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_run return_gateways_status ()	
2023-01-11T18:06:59	Error	opnsense	/usr/local/etc/rc.newwanipv6: The WANv6 monitor address is empty, skipping.	
2023-01-11T18:06:59	Error	opnsense	/usr/local/etc/rc.newwanipv6: The WANv6 monitor address is empty, skipping.	
2023-01-11T18:06:59	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure monitor (execute task : dpinger_configure_do(,WANv6))	
2023-01-11T18:06:59	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure monitor (,WANv6)	
2023-01-11T18:06:59	Error	opnsense	/usr/local/etc/rc.newwanipv6: The WAN_PPPOE monitor address is empty, skipping.	
2023-01-11T18:06:59	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure monitor (execute task : dpinger_configure_do(,WANv6))	
2023-01-11T18:06:59	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure monitor (,WANv6)	
2023-01-11T18:06:59	Error	opnsense	/usr/local/etc/rc.newwanipv6: The WAN_PPPOE monitor address is empty, skipping.	
2023-01-11T18:06:59	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure monitor (execute task : dpinger_configure_do(,WAN_PPPOE))	
2023-01-11T18:06:59	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure monitor (,WAN_PPPOE)	
2023-01-11T18:06:59	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: keeping current default gateway 'xxxx::xxxx:xxxx:xxxx:xxxx%pppoe0'	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: setting IPv6 default route to xxxx::xxxx:xxxx:xxxx:xxxx	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: IPv6 default gateway set to wan	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: keeping current default gateway 'xx.xxx.xx.xx'	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: setting IPv4 default route to xx.xxx.xx.xx	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: IPv4 default gateway set to wan	
2023-01-11T18:06:58	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure monitor (execute task : dpinger_configure_do(,WAN_PPPOE))	
2023-01-11T18:06:58	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure monitor (,WAN_PPPOE)	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: keeping current default gateway 'xxxx::xxxx:xxxx:xxxx:xxxx%pppoe0'	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: setting IPv6 default route to xxxx::xxxx:xxxx:xxxx:xxxx	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: IPv6 default gateway set to wan	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: keeping current default gateway 'xx.xxx.xx.xx'	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: setting IPv4 default route to xx.xxx.xx.xx	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: IPv4 default gateway set to wan	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: entering configure using 'wan'	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: entering configure using 'wan'	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: The command '/usr/local/sbin/radvd -p /var/run/radvd.pid -C /var/etc/radvd.conf -m syslog' returned exit code '255', the output was ''	
2023-01-11T18:06:58	Error	opnsense	/usr/local/etc/rc.newwanipv6: The command '/usr/sbin/daemon -f -p '/var/run/dhcpleases6.pid' '/usr/local/opnsense/scripts/dhcp/prefixes.sh'' returned exit code '3', the output was 'daemon: process already running, pid: 55743'	
2023-01-11T18:06:56	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : unbound_configure_do(,wan))	
2023-01-11T18:06:56	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : openssh_configure_do(,wan))	
2023-01-11T18:06:56	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : opendns_configure_do())	
2023-01-11T18:06:50	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : webgui_configure_do(,wan))	
2023-01-11T18:06:50	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : vxlan_configure_do())	
2023-01-11T18:06:48	Error	opnsense	/usr/local/etc/rc.newwanip: warning: ignoring missing default tunable request: debug.pfftpproxy	
2023-01-11T18:06:47	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : ntpd_configure_do())	
2023-01-11T18:06:47	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : dnsmasq_configure_do())	
2023-01-11T18:06:47	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure newwanip (,wan)	
2023-01-11T18:06:47	Error	opnsense	/usr/local/etc/rc.newwanipv6: Resyncing OpenVPN instances for interface WAN.	
2023-01-11T18:06:47	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure vpn (execute task : openvpn_configure_do(,wan))	
2023-01-11T18:06:47	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure vpn (execute task : ipsec_configure_do(,wan))	
2023-01-11T18:06:47	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure vpn (,wan)	
2023-01-11T18:06:40	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_run return_gateways_status (execute task : dpinger_status())	
2023-01-11T18:06:40	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_run return_gateways_status ()	
2023-01-11T18:06:40	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : unbound_configure_do(,wan))	
2023-01-11T18:06:40	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : openssh_configure_do(,wan))	
2023-01-11T18:06:40	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : opendns_configure_do())	
2023-01-11T18:06:40	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : ntpd_configure_do())	
2023-01-11T18:06:40	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : dnsmasq_configure_do())	
2023-01-11T18:06:40	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure newwanip (,wan)	
2023-01-11T18:06:40	Error	opnsense	/usr/local/etc/rc.newwanip: Resyncing OpenVPN instances for interface WAN.	
2023-01-11T18:06:40	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure vpn (execute task : openvpn_configure_do(,wan))	
2023-01-11T18:06:40	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure vpn (execute task : ipsec_configure_do(,wan))	
2023-01-11T18:06:40	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure vpn (,wan)	
2023-01-11T18:06:40	Error	opnsense	/usr/local/etc/rc.newwanip: IP address change detected, killing states of old ip xx.xxx.xxx.xxx	
2023-01-11T18:06:40	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure dhcp (execute task : dhcpd_dhcp_configure(,inet6))	
2023-01-11T18:06:40	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure dhcp (,inet6)	
2023-01-11T18:06:40	Error	opnsense	/usr/local/etc/rc.newwanipv6: On (IP address: xxxx:xxxx:xxx:xxxx:xxx:xxxx:xxxx:xxxx) (interface: WAN[wan]) (real interface: pppoe0).	
2023-01-11T18:06:39	Error	opnsense	/usr/local/etc/rc.newwanipv6: IPv6 renewal is starting on 'pppoe0'	
2023-01-11T18:06:39	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (execute task : system_hosts_generate(1))	
2023-01-11T18:06:39	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (execute task : system_resolvconf_generate(1))	
2023-01-11T18:06:39	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (1)	
2023-01-11T18:06:38	Notice	dhcp6c	dhcp6c REQUEST on pppoe0 - running newipv6	
2023-01-11T18:06:38	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (execute task : system_hosts_generate(1))	
2023-01-11T18:06:38	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (execute task : system_resolvconf_generate(1))	
2023-01-11T18:06:38	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (1)	
2023-01-11T18:06:38	Error	opnsense	/usr/local/etc/rc.newwanipv6: The WANv6 monitor address is empty, skipping.	
2023-01-11T18:06:38	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure monitor (execute task : dpinger_configure_do(,WANv6))	
2023-01-11T18:06:38	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure monitor (,WANv6)	
2023-01-11T18:06:38	Error	opnsense	/usr/local/etc/rc.newwanipv6: The WAN_PPPOE monitor address is empty, skipping.	
2023-01-11T18:06:37	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure monitor (execute task : dpinger_configure_do(,WAN_PPPOE))	
2023-01-11T18:06:37	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure monitor (,WAN_PPPOE)	
2023-01-11T18:06:37	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: keeping current default gateway 'xxxx::xxxx:xxxx:xxxx:xxxx%pppoe0'	
2023-01-11T18:06:37	Notice	dhcp6c	dhcp6c RELEASE on pppoe0 - running dns reload	
2023-01-11T18:06:37	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: setting IPv6 default route to xxxx::xxxx:xxxx:xxxx:xxxx	
2023-01-11T18:06:37	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: IPv6 default gateway set to wan	
2023-01-11T18:06:37	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: keeping current default gateway 'xx.xxx.xx.xx'	
2023-01-11T18:06:37	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: setting IPv4 default route to xx.xxx.xx.xx	
2023-01-11T18:06:37	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: IPv4 default gateway set to wan	
2023-01-11T18:06:37	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure dhcp (execute task : dhcpd_dhcp_configure(,inet6))	
2023-01-11T18:06:37	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure dhcp (,inet6)	
2023-01-11T18:06:37	Error	opnsense	/usr/local/etc/rc.newwanipv6: ROUTING: entering configure using 'wan'	
2023-01-11T18:06:37	Error	opnsense	/usr/local/etc/rc.newwanipv6: On (IP address: xxxx:xxxx:xxxx:xxxx:xxx:xxxx:xxxx:xxxx) (interface: WAN[wan]) (real interface: pppoe0).	
2023-01-11T18:06:37	Notice	dhcp6c	RTSOLD script - Sending SIGHUP to dhcp6c	
2023-01-11T18:06:37	Error	opnsense	/usr/local/etc/rc.newwanipv6: IPv6 renewal is starting on 'pppoe0'	
2023-01-11T18:06:37	Notice	dhcp6c	dhcp6c RELEASE on pppoe0 - running dns reload	
2023-01-11T18:06:36	Notice	dhcp6c	dhcp6c REQUEST on pppoe0 - running newipv6	
2023-01-11T18:06:36	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_run return_gateways_status (execute task : dpinger_status())	
2023-01-11T18:06:36	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_run return_gateways_status ()	
2023-01-11T18:06:35	Error	opnsense	/usr/local/etc/rc.newwanip: The WANv6 monitor address is empty, skipping.	
2023-01-11T18:06:35	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure monitor (execute task : dpinger_configure_do(,WANv6))	
2023-01-11T18:06:35	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure monitor (,WANv6)	
2023-01-11T18:06:35	Error	opnsense	/usr/local/etc/rc.newwanip: The WAN_PPPOE monitor address is empty, skipping.	
2023-01-11T18:06:35	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure monitor (execute task : dpinger_configure_do(,WAN_PPPOE))	
2023-01-11T18:06:35	Notice	opnsense	/usr/local/etc/rc.newwanip: plugins_configure monitor (,WAN_PPPOE)	
2023-01-11T18:06:35	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: creating /tmp/pppoe0_defaultgwv6 using 'xxxx::xxxx:xxxx:xxxx:xxxx%pppoe0'	
2023-01-11T18:06:35	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: removing /tmp/pppoe0_defaultgwv6	
2023-01-11T18:06:35	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: setting IPv6 default route to xxxx::xxxx:xxxx:xxxx:xxxx	
2023-01-11T18:06:35	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: IPv6 default gateway set to wan	
2023-01-11T18:06:35	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway 'xx.xxx.xx.xx'	
2023-01-11T18:06:35	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: setting IPv4 default route to xx.xxx.xx.xx	
2023-01-11T18:06:35	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: IPv4 default gateway set to wan	
2023-01-11T18:06:35	Error	opnsense	/usr/local/etc/rc.newwanip: ROUTING: entering configure using 'wan'	
2023-01-11T18:06:35	Error	dhcp6c	transmit failed: Can't assign requested address	
2023-01-11T18:06:35	Notice	dhcp6c	RTSOLD script - Sending SIGHUP to dhcp6c	
2023-01-11T18:06:35	Error	opnsense	/usr/local/etc/rc.newwanip: On (IP address: xx.xxx.xxx.xxx) (interface: WAN[wan]) (real interface: pppoe0).	
2023-01-11T18:06:35	Error	opnsense	/usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'pppoe0'	
2023-01-11T18:06:34	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure dhcp (execute task : dhcpd_dhcp_configure(,inet6))	
2023-01-11T18:06:34	Notice	opnsense	/usr/local/etc/rc.newwanipv6: plugins_configure dhcp (,inet6)	
2023-01-11T18:06:34	Error	opnsense	/usr/local/etc/rc.newwanipv6: On (IP address: xxxx:xxxx:xxxx:xxxx:xx:xxxx:xxxx:xxxx) (interface: WAN[wan]) (real interface: pppoe0).	
2023-01-11T18:06:34	Error	opnsense	/usr/local/etc/rc.newwanipv6: IPv6 renewal is starting on 'pppoe0'	
2023-01-11T18:06:29	Error	dhcp6c	transmit failed: Can't assign requested address	
2023-01-11T18:06:28	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (execute task : system_hosts_generate(1))	
2023-01-11T18:06:28	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (execute task : system_resolvconf_generate(1))	
2023-01-11T18:06:28	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (1)	
2023-01-11T18:06:28	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (execute task : system_hosts_generate(1))	
2023-01-11T18:06:28	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (execute task : system_resolvconf_generate(1))	
2023-01-11T18:06:28	Notice	opnsense	/usr/local/sbin/pluginctl: plugins_configure dns_reload (1)

lhooge avatar Jan 11 '23 22:01 lhooge

Restarting the firewall or reloading DHCPv6 or PPPoE on the Interfaces->Overview->WAN page does not help for me. The only thing that works is to restart the modem. Also in the overview screen it says that DHCPv6 is up but PPPoE is down while in the faulty state.

EuleMitKeule avatar Jan 12 '23 06:01 EuleMitKeule

So did someone try the development version of 22.7 to confirm the problem? Because newwanip scripts got rewritten a bit to better detect a real renew event vs. just a new event with the same IP. Also #6204 could play a role. There is a patch to try that I think is not on the latest 22.7.10 development version yet.

Cheers, Franco

fichtner avatar Jan 12 '23 07:01 fichtner

Could this issue be related to #3240 by any chance? The solution for that person apparently was to turn on Prevent Release in Interface->Settings->IPv6 DHCP. I enabled that now, maybe that fixes my problem. If not I will try the development version.

EuleMitKeule avatar Jan 12 '23 07:01 EuleMitKeule

Prevent release helps in some cases e.g. when the lease time actually exceeds the ISP mandatory reconnect interval (which is silly really).

fichtner avatar Jan 12 '23 07:01 fichtner

I also just found this forum thread (german language) that sounds very similar and the solution over there also was to enable prevent release as well as Firewall*->Settings->Advanced->Dynamic state reset. *Edited

EuleMitKeule avatar Jan 12 '23 07:01 EuleMitKeule

You probably mean firewall category, not interfaces. Though on 23.1 Dynamic state reset will be removed. It doesn't work the way it was intended and better methods have been introduced which are the default.

Cheers, Franco

fichtner avatar Jan 12 '23 07:01 fichtner

PS: Frankly, to not run into historic quirks it would be useful to try the development version if you can.

fichtner avatar Jan 12 '23 07:01 fichtner

After switching to development it seems to be working now. I unplugged the DSL from my modem, waited a few seconds and replugged and the connection reestablished itself after a few minutes. I still took OPNsense quite some time after my modem's LED indicated successful DSL connection, but at least I don't have to power cycle or manually intervene anymore. I will observe if this will survive the next ISP reset though. Thank you @fichtner!

Edit: The logs also changed quite a bit:

2023-01-12T09:12:55 | Warning | opnsense-devel | /usr/local/etc/rc.newwanip: Failed to detect IP for WAN[wan]
2023-01-12T09:15:45 | Error | opnsense-devel | /usr/local/etc/rc.newwanipv6: The command '/usr/sbin/daemon -f -p  '/var/run/dhcpleases6.pid'  '/usr/local/opnsense/scripts/dhcp/prefixes.sh'' returned exit code '3',  the output was 'daemon: process already running, pid: 97789'
2023-01-12T09:15:45 | Error | opnsense-devel | /usr/local/etc/rc.newwanipv6: The command '/usr/sbin/daemon -f -p  '/var/run/dhcpleases6.pid'  '/usr/local/opnsense/scripts/dhcp/prefixes.sh'' returned exit code '3',  the output was 'daemon: process already running, pid: 97789'
2023-01-12T09:15:45 | Error | opnsense-devel | /usr/local/etc/rc.newwanipv6: The command '/usr/sbin/daemon -f -p  '/var/run/dhcpleases6.pid'  '/usr/local/opnsense/scripts/dhcp/prefixes.sh'' returned exit code '3',  the output was 'daemon: process already running, pid: 97789'
2023-01-12T09:15:45 | Error | opnsense-devel | /usr/local/etc/rc.newwanipv6: The command '/usr/local/sbin/radvd -p  /var/run/radvd.pid -C /var/etc/radvd.conf -m syslog' returned exit code  '255', the output was ''
2023-01-12T09:15:46 | Error | opnsense-devel | /usr/local/etc/rc.newwanipv6: The command '/usr/local/sbin/radvd -p  /var/run/radvd.pid -C /var/etc/radvd.conf -m syslog' returned exit code  '255', the output was ''
2023-01-12T09:15:46 | Error | opnsense-devel | /usr/local/etc/rc.newwanipv6: The command '/usr/local/sbin/radvd -p  /var/run/radvd.pid -C /var/etc/radvd.conf -m syslog' returned exit code  '255', the output was ''
2023-01-12T09:15:53 | Error | opnsense-devel | /usr/local/etc/rc.newwanipv6: The command '/usr/local/sbin/ntpd -g -c  '/var/etc/ntpd.conf'' returned exit code '1', the output was ''

EuleMitKeule avatar Jan 12 '23 08:01 EuleMitKeule

I wouldn't bet on this just yet, but I wholeheartedly thank you for trying the work that was done in the last couple of months on such connectivity issues ❤️

Fingers crossed!

fichtner avatar Jan 12 '23 08:01 fichtner

Yikes, you have 3 tacking interfaces set up perhaps? Related to https://github.com/opnsense/core/issues/5966 I think.

fichtner avatar Jan 12 '23 08:01 fichtner

Uhm, I don't think so. I have OPT1-3 enabled, but they don't have tracking activated. I also have a VLAN tag 100 interface that I use with my managed switch and the VLAN tag 7 for my WAN/PPPoE. Nothing else. (I don't have much experience with all of this so I am not really sure what tracking even means)

Edit: LAN has tracking enabled of course.

EuleMitKeule avatar Jan 12 '23 08:01 EuleMitKeule