diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2013-01-11 03:26:21 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-01-17 16:55:02 +0100 |
commit | 136f74161b655284dfa4d5ff80290dad02c91a52 (patch) | |
tree | 70cd37b6116f328942f222fe4e896e25fd56cbd2 /testing/tests/sql/ip-pool-db-restart | |
parent | 6fff9d9ace84e5aa6f8ea0738516f63d40c03dbd (diff) | |
download | strongswan-136f74161b655284dfa4d5ff80290dad02c91a52.tar.bz2 strongswan-136f74161b655284dfa4d5ff80290dad02c91a52.tar.xz |
converted all sql iptables scenarios
Diffstat (limited to 'testing/tests/sql/ip-pool-db-restart')
-rw-r--r-- | testing/tests/sql/ip-pool-db-restart/posttest.dat | 6 | ||||
-rw-r--r-- | testing/tests/sql/ip-pool-db-restart/pretest.dat | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/testing/tests/sql/ip-pool-db-restart/posttest.dat b/testing/tests/sql/ip-pool-db-restart/posttest.dat index 40b1a403e..1b963fcec 100644 --- a/testing/tests/sql/ip-pool-db-restart/posttest.dat +++ b/testing/tests/sql/ip-pool-db-restart/posttest.dat @@ -1,9 +1,9 @@ carol::ipsec stop dave::ipsec stop moon::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 moon::rm /etc/ipsec.d/ipsec.* carol::rm /etc/ipsec.d/ipsec.* dave::rm /etc/ipsec.d/ipsec.* diff --git a/testing/tests/sql/ip-pool-db-restart/pretest.dat b/testing/tests/sql/ip-pool-db-restart/pretest.dat index b5108051c..20b1937b7 100644 --- a/testing/tests/sql/ip-pool-db-restart/pretest.dat +++ b/testing/tests/sql/ip-pool-db-restart/pretest.dat @@ -8,9 +8,9 @@ moon::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db carol::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db dave::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db moon::ipsec pool --leases 2> /dev/null -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 moon::ipsec start carol::ipsec start dave::ipsec start |