diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-08-03 10:56:40 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-08-03 10:56:40 +0000 |
commit | 1f4357ca4d40e5c4dbcf2da839afad34b11c0e51 (patch) | |
tree | 8f7a184f66b6613b73e99b67f6822d659d7a52cb | |
parent | f6f55adb3a2a2e92d9237a7586dc6fa1eaa55f17 (diff) | |
download | strongswan-1f4357ca4d40e5c4dbcf2da839afad34b11c0e51.tar.bz2 strongswan-1f4357ca4d40e5c4dbcf2da839afad34b11c0e51.tar.xz |
added routing table 50 for passthrough routes
-rw-r--r-- | testing/tests/ikev1/passthrough/posttest.dat | 2 | ||||
-rw-r--r-- | testing/tests/ikev1/passthrough/pretest.dat | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/testing/tests/ikev1/passthrough/posttest.dat b/testing/tests/ikev1/passthrough/posttest.dat index 5a9150bc8..db17f4c65 100644 --- a/testing/tests/ikev1/passthrough/posttest.dat +++ b/testing/tests/ikev1/passthrough/posttest.dat @@ -1,4 +1,6 @@ moon::ipsec stop sun::ipsec stop +moon::ip route flush table 50 +moon::ip rule del table 50 moon::/etc/init.d/iptables stop 2> /dev/null sun::/etc/init.d/iptables stop 2> /dev/null diff --git a/testing/tests/ikev1/passthrough/pretest.dat b/testing/tests/ikev1/passthrough/pretest.dat index 2606db192..6b5295469 100644 --- a/testing/tests/ikev1/passthrough/pretest.dat +++ b/testing/tests/ikev1/passthrough/pretest.dat @@ -2,6 +2,9 @@ moon::/etc/init.d/iptables start 2> /dev/null sun::/etc/init.d/iptables start 2> /dev/null moon::iptables -I INPUT -i eth1 -s 10.1.0.0/16 -j ACCEPT moon::iptables -I OUTPUT -o eth1 -d 10.1.0.0/16 -j ACCEPT +moon::ip rule add pref 50 table 50 +moon::ip route add 192.168.0.254 via PH_IP_MOON table 50 +moon::ip route add 10.1.0.0/16 via PH_IP_MOON1 table 50 moon::ipsec start sun::ipsec start moon::sleep 2 |