From fd1d4a5da876516412ec51c4eb37333caa57a2bc Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 11 Mar 2010 14:42:59 +0000 Subject: pingu: support for setting source-ip This is needed so ip source routing works with shorewall The problem is that when we change the default gw, removing a gateway that went down, we are not able to ping remote host via that interface ...unless we set the source ip and have an ip route table with source ip. Shorewall sets that up. --- pingu.conf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'pingu.conf') diff --git a/pingu.conf b/pingu.conf index 271e994..55f7ee2 100644 --- a/pingu.conf +++ b/pingu.conf @@ -2,24 +2,29 @@ # comments are prefixed with # # global option -interval 1 +interval 10 retry 3 timeout 1.0 # route-script will be executed every time anything changes status. # All gateways that are "up" are sent as parameter. route-script /etc/pingu/route-script -host 10.65.67.11 +# host to ping +host 10.65.67.1 name ISP-1 +# bind to interface interface eth1 +# set the source ip +source-ip 10.65.67.12 timeout 0.3 retry 2 up-action echo "isp 1 went up" down-action echo "iso 1 went down" -#host 10.2.0.3 +#host 10.2.0.1 #name ISP-2 #interface eth0 +#source-ip 10.2.0.3 #up-action /etc/pingu/isp2 up #down-action /etc/pingu/isp2 down -- cgit v1.2.3