1
20.1 Legacy Series / OPNsense advertising default gateway via OSPF even when gateway is down
« on: March 25, 2020, 08:37:03 pm »
INTERNET <=> CABLE MODEM <=> OPNsense <=> OSPF-ROUTER <=> Client Computer
I've got a problem with OSPF, in that it keeps advertising that it has a default gateway even when the internet is unreachable to OPNsense. My OSPF router has other paths with a higher cost to the internet, but because OPNsense keeps advertising the default route my Client Computers get routed to nowhere.
Originally I thought it was because the cable modem(OPNsense gateway for static IP) is up, so I added 8.8.8.8 as the monitor IP for that gateway and it now correctly shows Offline when the upstream provider goes down, but it still seems to advertise a default route to downstream OSPF routers.
Does anyone know how to configure this correctly? I can only find an option to always advertise default route which is the opposite of what I want, and the manual reads as though the default should be to not distribute.
I've got a problem with OSPF, in that it keeps advertising that it has a default gateway even when the internet is unreachable to OPNsense. My OSPF router has other paths with a higher cost to the internet, but because OPNsense keeps advertising the default route my Client Computers get routed to nowhere.
Originally I thought it was because the cable modem(OPNsense gateway for static IP) is up, so I added 8.8.8.8 as the monitor IP for that gateway and it now correctly shows Offline when the upstream provider goes down, but it still seems to advertise a default route to downstream OSPF routers.
Does anyone know how to configure this correctly? I can only find an option to always advertise default route which is the opposite of what I want, and the manual reads as though the default should be to not distribute.

