1
24.1 Legacy Series / 24.1.8 default route is picky regarding incorrect IP netmask
« on: May 31, 2024, 01:17:37 am »
Just recording my own FUBAR and fix for the community.
After updating to OPNsense 24.1.8-amd64 this morning, the default route would not come up. Trying 'route add default [gw ip]' just gave "route: writing to routing socket: Network is unreachable". 'netstat -rn' listed igb[1..5] but not igb0. The GUI did helpfully provide a clue; /ui/routing/configuration showed the WAN "Status" as yellow with a "mis-configured IP" hint.
Issue was, IP configured for the igb0 WAN interface had a /32 netmask. This was likely mis-configured while thrashing at a NAT configuration during the initial install. (But also, that mis-config has worked since August, 2020.) The fix was simply setting this to /24. The default route then autoloaded.
After updating to OPNsense 24.1.8-amd64 this morning, the default route would not come up. Trying 'route add default [gw ip]' just gave "route: writing to routing socket: Network is unreachable". 'netstat -rn' listed igb[1..5] but not igb0. The GUI did helpfully provide a clue; /ui/routing/configuration showed the WAN "Status" as yellow with a "mis-configured IP" hint.
Issue was, IP configured for the igb0 WAN interface had a /32 netmask. This was likely mis-configured while thrashing at a NAT configuration during the initial install. (But also, that mis-config has worked since August, 2020.) The fix was simply setting this to /24. The default route then autoloaded.