summaryrefslogtreecommitdiff
path: root/testing/tests/swanctl/host2host-cert/pretest.dat
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/swanctl/host2host-cert/pretest.dat')
-rwxr-xr-xtesting/tests/swanctl/host2host-cert/pretest.dat7
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/tests/swanctl/host2host-cert/pretest.dat b/testing/tests/swanctl/host2host-cert/pretest.dat
new file mode 100755
index 000000000..b42dce654
--- /dev/null
+++ b/testing/tests/swanctl/host2host-cert/pretest.dat
@@ -0,0 +1,7 @@
+moon::iptables-restore < /etc/iptables.rules
+sun::iptables-restore < /etc/iptables.rules
+moon::systemctl start strongswan-swanctl
+sun::systemctl start strongswan-swanctl
+moon::expect-connection host-host
+sun::expect-connection host-hhost
+moon::swanctl --initiate --child host-host 2> /dev/null