aboutsummaryrefslogtreecommitdiffstats
path: root/pingu.conf
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-03-11 14:42:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-03-11 14:42:59 +0000
commitfd1d4a5da876516412ec51c4eb37333caa57a2bc (patch)
treec2d67a77bce73a35434ea337ecad5b94113210a1 /pingu.conf
parentb1f240b9e0b2c8771bc4ea910df218e616bb7118 (diff)
downloadpingu-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.conf11
1 files changed, 8 insertions, 3 deletions
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