diff options
author | smos <seth.mos@dds.nl> | 2012-02-21 08:04:45 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-02-21 08:04:45 +0100 |
commit | b9ee868674bb43a93b3239f98b20f991f2043166 (patch) | |
tree | b86ca4575bc32a5f6c909ca8dd695938ece97e58 /usr/local/bin | |
parent | 2481045fdf90684b2d863aa31dcea672bc8dd78c (diff) | |
download | pfsense-b9ee868674bb43a93b3239f98b20f991f2043166.zip pfsense-b9ee868674bb43a93b3239f98b20f991f2043166.tar.gz |
Revert "Remove the -S $SRCIP to ping and added a timeout."
This is functionality that can not be removed to properly keep VPN tunnels alive.
This reverts commit d4e37b2edd51ccc39e5d6f912d8079b3d447ee7b.
Diffstat (limited to 'usr/local/bin')
-rwxr-xr-x | usr/local/bin/ping_hosts.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/bin/ping_hosts.sh b/usr/local/bin/ping_hosts.sh index 7b24fc2..c0de5a1 100755 --- a/usr/local/bin/ping_hosts.sh +++ b/usr/local/bin/ping_hosts.sh @@ -75,7 +75,7 @@ for TOPING in $PINGHOSTS ; do fi echo Processing $DSTIP # Look for a service being down - $PINGCMD -c $COUNT -t 2 $DSTIP + $PINGCMD -c $COUNT -S $SRCIP $DSTIP if [ $? -eq 0 ]; then # Host is up # Read in previous status @@ -104,7 +104,7 @@ for TOPING in $PINGHOSTS ; do fi echo "Checking ping time $DSTIP" # Look at ping values themselves - PINGTIME=`$PINGCMD -c 1 -t 2 $DSTIP | awk '{ print $7 }' | grep time | cut -d "=" -f2` + PINGTIME=`$PINGCMD -c 1 -S $SRCIP $DSTIP | awk '{ print $7 }' | grep time | cut -d "=" -f2` echo "Ping returned $?" echo $PINGTIME > /var/db/pingmsstatus/$DSTIP if [ "$THRESHOLD" != "" ]; then |