aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ikev1/virtual-ip
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2013-01-07 06:52:57 +0100
committerTobias Brunner <tobias@strongswan.org>2013-01-17 16:55:00 +0100
commitca0128588feda1af58ec81812fb19662723622d7 (patch)
treee8a275bb7170a8c71c369be60a5241612c3a4c0b /testing/tests/ikev1/virtual-ip
parentd815235d17a0391fa5f72bb61a37b3a9fc57cdc7 (diff)
downloadstrongswan-ca0128588feda1af58ec81812fb19662723622d7.tar.bz2
strongswan-ca0128588feda1af58ec81812fb19662723622d7.tar.xz
converted all ikev1 iptables scenarios
Diffstat (limited to 'testing/tests/ikev1/virtual-ip')
-rw-r--r--testing/tests/ikev1/virtual-ip/posttest.dat6
-rw-r--r--testing/tests/ikev1/virtual-ip/pretest.dat6
2 files changed, 6 insertions, 6 deletions
diff --git a/testing/tests/ikev1/virtual-ip/posttest.dat b/testing/tests/ikev1/virtual-ip/posttest.dat
index 7cebd7f25..1865a1c60 100644
--- a/testing/tests/ikev1/virtual-ip/posttest.dat
+++ b/testing/tests/ikev1/virtual-ip/posttest.dat
@@ -1,6 +1,6 @@
moon::ipsec stop
carol::ipsec stop
dave::ipsec stop
-moon::/etc/init.d/iptables stop 2> /dev/null
-carol::/etc/init.d/iptables stop 2> /dev/null
-dave::/etc/init.d/iptables stop 2> /dev/null
+moon::iptables-restore < /etc/iptables.flush
+carol::iptables-restore < /etc/iptables.flush
+dave::iptables-restore < /etc/iptables.flush
diff --git a/testing/tests/ikev1/virtual-ip/pretest.dat b/testing/tests/ikev1/virtual-ip/pretest.dat
index 5ec37aae1..1765a83cd 100644
--- a/testing/tests/ikev1/virtual-ip/pretest.dat
+++ b/testing/tests/ikev1/virtual-ip/pretest.dat
@@ -1,6 +1,6 @@
-moon::/etc/init.d/iptables start 2> /dev/null
-carol::/etc/init.d/iptables start 2> /dev/null
-dave::/etc/init.d/iptables start 2> /dev/null
+moon::iptables-restore < /etc/iptables.rules
+carol::iptables-restore < /etc/iptables.rules
+dave::iptables-restore < /etc/iptables.rules
carol::ipsec start
dave::ipsec start
moon::ipsec start