OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: matthewsdi on March 25, 2020, 08:37:03 PM

Title: OPNsense advertising default gateway via OSPF even when gateway is down
Post by: matthewsdi 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.
Title: Re: OPNsense advertising default gateway via OSPF even when gateway is down
Post by: fabian on March 25, 2020, 09:11:03 PM
This is an FRR feature which does not interact with gateway monitoring. As long as the cable is not unplugged, it will think that it is online. I do not know if there is any FRR setting to check it differently.
Title: Re: OPNsense advertising default gateway via OSPF even when gateway is down
Post by: matthewsdi on March 25, 2020, 09:37:59 PM
I really appreciate the response. That's what I was afraid of. I'll dig into FRR docs. Thanks