Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - matthewsdi

#1
20.7 Legacy Series / Re: Gateway status API
August 15, 2020, 09:15:21 PM
I've added a feature request https://github.com/opnsense/core/issues/4261, and Ad Schellevis also gave me the cli equivalent if that helps you in the comments there.

pluginctl -r return_gateways_status
#2
I've added a feature request https://github.com/opnsense/core/issues/4261, and Ad Schellevis also gave me the cli equivalent if that helps you in the comments there.

pluginctl -r return_gateways_status
#3
I've added a feature request https://github.com/opnsense/core/issues/4261, and Ad Schellevis also gave me the cli equivalent if that helps you in the comments there.

pluginctl -r return_gateways_status
#4
I know this is not helpful, but I have the same request. I looked through the api docs and can't find it anywhere. I'm assuming you can't. I am trying to solve my other problem, documented here https://forum.opnsense.org/index.php?topic=16460.msg74953#msg74953, by writing a script that queries the gateway status and tells opnsenes/frr to stop advertising a default route if the gateway is down. I have multiple opnsense boxes at my edges and I want them to stop advertising to ospf that they can get to the internet if they actually can't. None of the options in the GUI accomplish this so I want to orchestrate it via api or cli, but I have yet to find a way to programatticaly get the gateway status that is so nicely displayed right on the dashboard.
#5
I really appreciate the response. That's what I was afraid of. I'll dig into FRR docs. Thanks
#6
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.
#7
I am also trying to figure this out. You get anywhere with it?