Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
Same monitor IP for multiple WAN, why not?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Same monitor IP for multiple WAN, why not? (Read 1562 times)
akke
Newbie
Posts: 6
Karma: 0
Same monitor IP for multiple WAN, why not?
«
on:
July 14, 2022, 11:09:10 am »
Why is it forbidden to use the same monitor IP for multiple WAN links?
It's using dpinger internally with the -B (bind) parameter so it doesn't really need a static route. It just binds to the right interface and by doing so it should be pinging the monitor IP from the right WAN anyway.
So I do wonder why it's not allowed?
This is problematic for us because we are in a multi wan setup and when our ISP's link fail sometimes the ISP's gateway still replies to ping. The problem with the ISP is further down the route. So which monitor IP should we be using in that. case?
We wanted to ping a known stable icmp responder, like google's DNS 8.8.8.8 for all WAN links. But now we noticed that opnsense doesn't allow entering the same monitoring IP for multiple WANs.
I would like to know why it's not allowed even while it's using the -B parameter for dpinger already and/or what other options we have to monitor our 6 WANS.
Logged
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: Same monitor IP for multiple WAN, why not?
«
Reply #1 on:
July 14, 2022, 12:28:47 pm »
If you use an IP to monitor a link you need to bind that IP to a specific route in order to leave the correct interface, otherwise you are not actually monitoring it?
Sure, there are more elegant ways but implementing them is something nobody is willing to sponsor because it will be a lot of work.
Cheers,
Franco
Logged
akke
Newbie
Posts: 6
Karma: 0
Re: Same monitor IP for multiple WAN, why not?
«
Reply #2 on:
July 14, 2022, 12:55:10 pm »
By using the -B parameter to dpinger we are already binding to the right source ip/interface.
This is already happening.
It doesn’t need a static route but it does add one.
It should be an easy change to allow to the reuse of the same monitoring ip.
(Just remove the check in the gui and the static routes code that it’ll create)
«
Last Edit: July 14, 2022, 12:56:41 pm by akke
»
Logged
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: Same monitor IP for multiple WAN, why not?
«
Reply #3 on:
July 14, 2022, 01:30:33 pm »
Feel free to try. Decision is still up to the routing table and we don't know the contents except when we ensure the host route.
Cheers,
Franco
Logged
akke
Newbie
Posts: 6
Karma: 0
Re: Same monitor IP for multiple WAN, why not?
«
Reply #4 on:
July 14, 2022, 01:42:41 pm »
I have just tried running the dpinger command from the cli.
It works and sends the pings out on the correct wan.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
Same monitor IP for multiple WAN, why not?