default route missing after upgrade to 23.7.4

Started by rodger-dodger, September 15, 2023, 07:50:27 PM

Previous topic - Next topic
Dear community,

I've a setup with two ISP uplinks, both with different priorities. Also the flag "Allow default gateway switching" is enabled.

After the update to version 23.7.4, the internet connection was not coming up again. I was not able to ping any remote IP, but the two IPs I used for the gateway monitoring (one for each gateway).
After some debugging, I noticed that the default route was gone (or hasn't been set while booting up). The fix is fairly simple, and there are even two:
- restart the routing service
- disable one of the gateways and enable it again

However, this is not a permanent fix and the default route is gone again, if the firewall is rebooted. I'm very sure that the problem was introduced with version 23.7.4 only, since I'm using this setup for quite while now.

Am I the only one affected by this issue? Any idea how this problem can be fixed permanently?

Thanks and best regards,
Roger

September 15, 2023, 08:09:26 PM #1 Last Edit: September 15, 2023, 08:11:12 PM by rodger-dodger
I went through the logs from the last system startup. For me it looks like the default route hasn't been added because the two gateways (last line) are seen as down. The most top 5 lines appeared after I restarted the routing service.

2023-09-15T19:34:07 Notice opnsense /usr/local/sbin/pluginctl: plugins_configure monitor (execute task : dpinger_configure_do())
2023-09-15T19:34:07 Notice opnsense /usr/local/sbin/pluginctl: plugins_configure monitor ()
2023-09-15T19:34:07 Notice opnsense /usr/local/sbin/pluginctl: ROUTING: setting inet default route to 192.168.0.254
2023-09-15T19:34:07 Notice opnsense /usr/local/sbin/pluginctl: ROUTING: configuring inet default gateway on wan
2023-09-15T19:34:07 Notice opnsense /usr/local/sbin/pluginctl: ROUTING: entering configure using defaults
...
2023-09-15T19:31:24 Notice kernel <118>Setting up gateway monitors...
...
2023-09-15T19:31:20 Notice kernel <118>Setting up routes...done.
...
2023-09-15T19:31:20 Notice opnsense /usr/local/etc/rc.bootup: ROUTING: ignoring down gateways: WAN_ISP1_v4, WAN_ISP2_v4


Hi Roger,

Sounds like this was the fix indeed https://github.com/opnsense/core/commit/d09c3225e (included in 23.7.5 now after extensive testing).


Cheers,
Franco