diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-03-11 14:42:59 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-03-11 14:42:59 +0000 |
commit | fd1d4a5da876516412ec51c4eb37333caa57a2bc (patch) | |
tree | c2d67a77bce73a35434ea337ecad5b94113210a1 /pingu.conf | |
parent | b1f240b9e0b2c8771bc4ea910df218e616bb7118 (diff) | |
download | pingu-fd1d4a5da876516412ec51c4eb37333caa57a2bc.tar.bz2 pingu-fd1d4a5da876516412ec51c4eb37333caa57a2bc.tar.xz |
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.
Diffstat (limited to 'pingu.conf')
-rw-r--r-- | pingu.conf | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |