aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ikev2/nat-rw/pretest.dat
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2013-01-06 08:43:51 +0100
committerTobias Brunner <tobias@strongswan.org>2013-01-17 16:55:00 +0100
commitd815235d17a0391fa5f72bb61a37b3a9fc57cdc7 (patch)
treef890eab0bb94ae133809a471e2f3b3e363cfcae0 /testing/tests/ikev2/nat-rw/pretest.dat
parent28b7db2b3c09acb617d38dae07611a9b833aee33 (diff)
downloadstrongswan-d815235d17a0391fa5f72bb61a37b3a9fc57cdc7.tar.bz2
strongswan-d815235d17a0391fa5f72bb61a37b3a9fc57cdc7.tar.xz
use iptables-restore in all ikev2 firewall scenarios
Diffstat (limited to 'testing/tests/ikev2/nat-rw/pretest.dat')
-rw-r--r--testing/tests/ikev2/nat-rw/pretest.dat6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/tests/ikev2/nat-rw/pretest.dat b/testing/tests/ikev2/nat-rw/pretest.dat
index e365ff5c5..c569c236e 100644
--- a/testing/tests/ikev2/nat-rw/pretest.dat
+++ b/testing/tests/ikev2/nat-rw/pretest.dat
@@ -1,6 +1,6 @@
-alice::/etc/init.d/iptables start 2> /dev/null
-venus::/etc/init.d/iptables start 2> /dev/null
-sun::/etc/init.d/iptables start 2> /dev/null
+alice::iptables-restore < /etc/iptables.rules
+venus::iptables-restore < /etc/iptables.rules
+sun::iptables-restore < /etc/iptables.rules
moon::echo 1 > /proc/sys/net/ipv4/ip_forward
moon::iptables -t nat -A POSTROUTING -o eth0 -s 10.1.0.0/16 -p udp -j SNAT --to-source PH_IP_MOON:1024-1100
moon::iptables -t nat -A POSTROUTING -o eth0 -s 10.1.0.0/16 -p tcp -j SNAT --to-source PH_IP_MOON:2000-2100