[CALL FOR TESTING] Defer PPPoE dialup to after boot completes

Started by franco, November 13, 2026, 10:31:37 AM

Previous topic - Next topic


Hello everyone,
I've been experiencing an issue since version 26.7.10. The update installs correctly, but after a reboot, my PPPoE connection (Telekom) receives both an IPv4 and an IPv6 address—yet clients are unable to access the internet. If I attempt to ping from the firewall itself, it fails; after about 2 minutes, the ping starts working, but the clients still have no connectivity. The routes—including the default gateway—are configured correctly. Rolling back to version 26.7.9_3 resolved the issue entirely. What should I check?

A small introduction to IPv6 debugging is here https://docs.opnsense.org/manual/ipv6.html#basic-setup-and-troubleshooting


Cheers,
Franco

One thing I noticed after upgrading to 26.7.10, that I am guessing is a consequence of deferred PPP, is my wireguard connection blocking boot up whilst trying to resolve peer hostname. I've now changed it to an IP and the delay is gone. No big deal but thought I would mention it. The reason I preferred a hostname was because it informed location of the VPN entrypoint.

keeka, nice point... can you try this patch which lowers the excessive amount of delay wireguard seems to introduce by default?

# opnsense-patch https://github.com/opnsense/core/commit/cd738256ef4

DISREGARD! This is much, much better:

# opnsense-patch https://github.com/opnsense/core/commit/59a623b6


Cheers,
Franco

Thanks @franco!

EDIT - O just saw the revised patch. I will revert and apply the new one.

Having applied the patch, there's now no discernible delay in boot and console arrives at the menu without delay, like before. Wireguard, IP resolved, and activated.

#before
#/var/log/wireguard/
2026-11-25T08:19:36+00:00 fw.local.lan wireguard 15420 - [meta sequenceId="10"] wireguard instance WG_PROTON (wg1) can not reconfigure without stopping it first.
2026-11-25T08:20:49+00:00 fw.local.lan wireguard 15420 - [meta sequenceId="1"] /usr/local/opnsense/scripts/wireguard/wg-service-control.php: The command </usr/bin/wg syncconf 'wg1' '/usr/local/etc/wireguard/wg1.conf'> returned exit code 1 and the output was "Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 1.00 seconds... Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 1.20 seconds... Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 1.44 seconds... Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 1.73 seconds... Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 2.07 seconds... Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 2.49 seconds... Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 2.99 seconds... Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 3.58 seconds... Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 4.30 seconds... Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 5.16 seconds... Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 6.19 seconds... Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 7.43 seconds... Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 8.92 seconds... Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 10.70 seconds... Name could not be resolved at this time: `node.vpn.tld:51820'. Trying again in 12.84 seconds... Name could not be resolved at this time: `node.vpn.tld:51820' Configuration parsing error"
2026-11-25T08:20:49+00:00 fw.local.lan wireguard 15420 - [meta sequenceId="2"] /usr/local/opnsense/scripts/wireguard/wg-service-control.php: ROUTING: entering configure using opt7

#after
#/var/log/wireguard/
2026-11-27T12:26:21+00:00 fw.local.lan wireguard 59034 - [meta sequenceId="10"] wireguard instance WG_PROTON (wg1) can not reconfigure without stopping it first.
2026-11-27T12:26:21+00:00 fw.local.lan wireguard 59034 - [meta sequenceId="11"] /usr/local/opnsense/scripts/wireguard/wg-service-control.php: The command <env WG_ENDPOINT_RESOLUTION_RETRIES=0 RES_OPTIONS="timeout:5 attempts:1" /usr/bin/wg syncconf 'wg1' '/usr/local/etc/wireguard/wg1.conf'> returned exit code 1 and the output was "Name could not be resolved at this time: `node.vpn.tld:51820' Configuration parsing error"


As far as I am concerned success. Thanks! Reverted and applied the alternative patch. Success again and no wireguard warnings either!
What is the scope of the change to wireguard DNS retries?
I gather from looking at updated patch, it doesn't modify wireguard retries. Instead, some magic!

Yes, magic!  It's quite beneficial to everyone having DNS woes on bootup affecting WireGuard actually:

WireGuard can retry in the background as much as it wants while it lets the boot finish so it can actually eventually get the DNS "on the first try".


Cheers,
Franco

Hello Franco,

Thanks for the tip. After a reboot, I restarted all the services in OPNsense (via shell option 11), and now it's working. To me, this looks like a race condition introduced by the new patch.

Could be, but the question is race with what.  As you can see from the wireguard case it's realtively easy to pinpoint if we know what we're looking for.


Cheers,
Franco

It was in reference to my post above—specifically, that the ping only starts working after 2 minutes, and the clients have no internet connection. If you can tell me where I should look, I'll be happy to check.

Regards