aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-06-08 07:01:17 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-06-08 07:01:17 +0000
commit7a1f49c314aed247d0b3c9cc02fe0e5431eff987 (patch)
tree0ba63a1e7e211e449dd12c6c90e136658cf0eaf4
parente93c68ba0d8c188e573ec6b18343baa775355dfd (diff)
downloadstrongswan-7a1f49c314aed247d0b3c9cc02fe0e5431eff987.tar.bz2
strongswan-7a1f49c314aed247d0b3c9cc02fe0e5431eff987.tar.xz
do not delete existing routes with NETKEY
-rwxr-xr-xsrc/_updown/_updown7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/_updown/_updown b/src/_updown/_updown
index eb41b37b9..795b6f388 100755
--- a/src/_updown/_updown
+++ b/src/_updown/_updown
@@ -289,6 +289,13 @@ fi
# the big choice
case "$PLUTO_VERB:$1" in
prepare-host:*|prepare-client:*)
+ if [ -z "$KLIPS" -a -z "$PLUTO_MY_SOURCEIP" ]
+ then
+ # exit because no route will be added,
+ # so that existing routes can stay
+ exit 0
+ fi
+
# delete possibly-existing route (preliminary to adding a route)
case "$PLUTO_PEER_CLIENT_NET/$PLUTO_PEER_CLIENT_MASK" in
"0.0.0.0/0.0.0.0")