On Thu, Oct 8, 2015 at 11:49 AM, Filippo Carletti <filippo.carle...@gmail.com> wrote: > > [Sorry to revive an old thread, Tom, I have a new idea] > > >> I choose not to ping the connection gateway because both gateway are > >> local and never go down, while especially one connection (wimax) goes > >> down once in a while and I can detect status pinging a remote ip. > > > > You must configure a static route to the remote IP address in the main > > routing table. We recommend doing that using your distribution's network > > configuration tool rather than doing it in Shorewall. > > > > -Tom > > Tom, I followed your advice and added a couple of routes for the IP > addresses lsm have to ping. > While it works, this setup has a drawback: the ping IP can't be > reached when a link goes down. > Let's assume we have 2 providers: wimax and adsl. I can't use 8.8.8.8 > as ping IP in both, I need another IP (think of more than two links).
You should have ip rules associated to each ISP, so you can use "ping -I wimax 8.8.8.8" and "ping -I adsl 8.8.8.8". Most cli commands (mtr, wget, curl, etc.) support binding source address or iface. -- Marcelo "¿No será acaso que esta vida moderna está teniendo más de moderna que de vida?" (Mafalda) ------------------------------------------------------------------------------ _______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users