aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ipsec
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-09-12 21:42:12 +0000
committerBill Nottingham <notting@redhat.com>2003-09-12 21:42:12 +0000
commitb64be488902cccb3f4e10396a93777caa107b1d9 (patch)
tree6481fd09d122c7d148c60e9bfd43ad3bdd427668 /sysconfig/network-scripts/ifup-ipsec
parentf4dc9121f5dec776794866131bc2a8d48f254b9d (diff)
downloadinitscripts-b64be488902cccb3f4e10396a93777caa107b1d9.tar
initscripts-b64be488902cccb3f4e10396a93777caa107b1d9.tar.gz
initscripts-b64be488902cccb3f4e10396a93777caa107b1d9.tar.bz2
initscripts-b64be488902cccb3f4e10396a93777caa107b1d9.tar.xz
initscripts-b64be488902cccb3f4e10396a93777caa107b1d9.zip
for tunneling, add a route for the tunneled net through the other host
Diffstat (limited to 'sysconfig/network-scripts/ifup-ipsec')
-rwxr-xr-xsysconfig/network-scripts/ifup-ipsec4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-ipsec b/sysconfig/network-scripts/ifup-ipsec
index 3ea68768..b474f41d 100755
--- a/sysconfig/network-scripts/ifup-ipsec
+++ b/sysconfig/network-scripts/ifup-ipsec
@@ -137,6 +137,8 @@ EOF
[ -z "$SRCNET" ] && SRCNET="$SRC/32"
[ -z "$DSTNET" ] && DSTNET="$DST/32"
+ ip route add to $DSTNET via $DST
+
/sbin/setkey -c >/dev/null 2>&1 << EOF
delete $SRC $DST ah $SPI_AH_OUT;
delete $DST $SRC ah $SPI_AH_IN;
@@ -189,6 +191,8 @@ EOF
[ -z "$SRCNET" ] && SRCNET="$SRC/32"
[ -z "$DSTNET" ] && DSTNET="$DST/32"
+ ip route add to $DSTNET via $DST
+
/sbin/setkey -c >/dev/null 2>&1 << EOF
spddelete $SRCNET $DSTNET any -P out;
spddelete $DSTNET $SRCNET any -P in;