On 01-10-2014 14:14, Jeff wrote:
> It sounds like "ping -I" is what I was looking for, but when I use it, it
seems
> to be sending out the packet with the right source address, but sending it
to
> the wrong interface.....are there any tricks here?
You must enforce through pf route-to the packets to go through the right
interface. Or, better yet, you should use multipath routing. Enable it
on your systctl.conf. It will allow you to have multiple default
gateways. If they both have the same priority the connections will go
out in a simple round-robin fashion.

Then you should use ifstated, as mentioned by others. If your ISP's
routers support SNMP, you could use it to check for the link status
instead of relying on external pinging. I only use it as last resort. On
some of my modems I even have a small script that connect with on the
administrative web interface to check if the link is up. On others I use
telnet and expect. I only use ping as a last resort.

I could help you with more elaborated examples, but I hope you got the idea.

Cheers

[demime 1.01d removed an attachment of type application/pkcs7-signature which 
had a name of smime.p7s]

Reply via email to