From 0d1f9110659717b6969d53617bfd752c2f092e66 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Wed, 7 Mar 2007 04:45:12 +0000 Subject: [PATCH] conntrack -F is used to flush the NAT states --- testing/tests/ikev2/double-nat-net/posttest.dat | 2 ++ testing/tests/ikev2/double-nat/posttest.dat | 2 ++ testing/tests/ikev2/nat-one-rw/posttest.dat | 2 +- testing/tests/ikev2/nat-two-rw-psk/posttest.dat | 2 +- testing/tests/ikev2/nat-two-rw/posttest.dat | 2 +- 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/testing/tests/ikev2/double-nat-net/posttest.dat b/testing/tests/ikev2/double-nat-net/posttest.dat index 0eb2c0d6c..d8558d794 100644 --- a/testing/tests/ikev2/double-nat-net/posttest.dat +++ b/testing/tests/ikev2/double-nat-net/posttest.dat @@ -6,4 +6,6 @@ alice::/etc/init.d/iptables stop 2> /dev/null bob::/etc/init.d/iptables stop 2> /dev/null moon::iptables -t nat -F sun::iptables -t nat -F +moon::conntrack -F +sun::conntrack -F sun::ip route del 10.1.0.0/16 via PH_IP_BOB diff --git a/testing/tests/ikev2/double-nat/posttest.dat b/testing/tests/ikev2/double-nat/posttest.dat index 07f22d07d..03d005b29 100644 --- a/testing/tests/ikev2/double-nat/posttest.dat +++ b/testing/tests/ikev2/double-nat/posttest.dat @@ -6,3 +6,5 @@ alice::/etc/init.d/iptables stop 2> /dev/null bob::/etc/init.d/iptables stop 2> /dev/null moon::iptables -t nat -F sun::iptables -t nat -F +moon::conntrack -F +sun::conntrack -F diff --git a/testing/tests/ikev2/nat-one-rw/posttest.dat b/testing/tests/ikev2/nat-one-rw/posttest.dat index af8e00575..b1485afa4 100644 --- a/testing/tests/ikev2/nat-one-rw/posttest.dat +++ b/testing/tests/ikev2/nat-one-rw/posttest.dat @@ -5,4 +5,4 @@ sun::ipsec stop alice::/etc/init.d/iptables stop 2> /dev/null sun::/etc/init.d/iptables stop 2> /dev/null moon::iptables -t nat -F - +moon::conntrack -F diff --git a/testing/tests/ikev2/nat-two-rw-psk/posttest.dat b/testing/tests/ikev2/nat-two-rw-psk/posttest.dat index f019842ed..dafe458ed 100644 --- a/testing/tests/ikev2/nat-two-rw-psk/posttest.dat +++ b/testing/tests/ikev2/nat-two-rw-psk/posttest.dat @@ -8,4 +8,4 @@ alice::/etc/init.d/iptables stop 2> /dev/null venus::/etc/init.d/iptables stop 2> /dev/null sun::/etc/init.d/iptables stop 2> /dev/null moon::iptables -t nat -F - +moon::conntrack -F diff --git a/testing/tests/ikev2/nat-two-rw/posttest.dat b/testing/tests/ikev2/nat-two-rw/posttest.dat index f019842ed..dafe458ed 100644 --- a/testing/tests/ikev2/nat-two-rw/posttest.dat +++ b/testing/tests/ikev2/nat-two-rw/posttest.dat @@ -8,4 +8,4 @@ alice::/etc/init.d/iptables stop 2> /dev/null venus::/etc/init.d/iptables stop 2> /dev/null sun::/etc/init.d/iptables stop 2> /dev/null moon::iptables -t nat -F - +moon::conntrack -F