diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2013-01-06 08:43:51 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-01-17 16:55:00 +0100 |
commit | d815235d17a0391fa5f72bb61a37b3a9fc57cdc7 (patch) | |
tree | f890eab0bb94ae133809a471e2f3b3e363cfcae0 /testing/tests/ikev2/nat-virtual-ip | |
parent | 28b7db2b3c09acb617d38dae07611a9b833aee33 (diff) | |
download | strongswan-d815235d17a0391fa5f72bb61a37b3a9fc57cdc7.tar.bz2 strongswan-d815235d17a0391fa5f72bb61a37b3a9fc57cdc7.tar.xz |
use iptables-restore in all ikev2 firewall scenarios
Diffstat (limited to 'testing/tests/ikev2/nat-virtual-ip')
-rw-r--r-- | testing/tests/ikev2/nat-virtual-ip/posttest.dat | 4 | ||||
-rw-r--r-- | testing/tests/ikev2/nat-virtual-ip/pretest.dat | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/testing/tests/ikev2/nat-virtual-ip/posttest.dat b/testing/tests/ikev2/nat-virtual-ip/posttest.dat index ee30e2c59..11bd19da7 100644 --- a/testing/tests/ikev2/nat-virtual-ip/posttest.dat +++ b/testing/tests/ikev2/nat-virtual-ip/posttest.dat @@ -1,6 +1,6 @@ moon::ipsec stop sun::ipsec stop -moon::/etc/init.d/iptables stop 2> /dev/null -sun::/etc/init.d/iptables stop 2> /dev/null +moon::iptables-restore < /etc/iptables.flush +sun::iptables-restore < /etc/iptables.flush moon::conntrack -F moon::rm /etc/nat_updown diff --git a/testing/tests/ikev2/nat-virtual-ip/pretest.dat b/testing/tests/ikev2/nat-virtual-ip/pretest.dat index abbca90d7..2c208d78e 100644 --- a/testing/tests/ikev2/nat-virtual-ip/pretest.dat +++ b/testing/tests/ikev2/nat-virtual-ip/pretest.dat @@ -1,5 +1,5 @@ -moon::/etc/init.d/iptables start 2> /dev/null -sun::/etc/init.d/iptables start 2> /dev/null +moon::iptables-restore < /etc/iptables.rules +sun::iptables-restore < /etc/iptables.rules moon::conntrack -F moon::echo 1 > /proc/sys/net/ipv4/ip_forward moon::ipsec start |