I have two WANs and I would like to send an HTTP GET request on a particular interface (not the default according to the route table). While logged into the router I can send my request using
It would have been great if the fetch tool supported specifying an interface. The use case for me is, I have multiple WAN interfaces, and I want to send a health check request from each WAN indicating that it’s able to reach the internet.
So basically, every minute, the script gets run every minute and a request is made to the remote endpoint, and if there is no such request for 5-10 minutes, I get notified. This indicates that something is wrong with the WAN link that it’s unable to reach the internet.
Adding a more specific route to this site may not help cause I want to monitor multiple WAN interfaces this way, so each WAN should be able to send a request to the site.