aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tnccs-20-pdp-eap/pretest.dat
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tnccs-20-pdp-eap/pretest.dat')
-rw-r--r--testing/tnccs-20-pdp-eap/pretest.dat20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/tnccs-20-pdp-eap/pretest.dat b/testing/tnccs-20-pdp-eap/pretest.dat
new file mode 100644
index 000000000..6c7477786
--- /dev/null
+++ b/testing/tnccs-20-pdp-eap/pretest.dat
@@ -0,0 +1,20 @@
+moon::iptables-restore < /etc/iptables.rules
+carol::iptables-restore < /etc/iptables.rules
+dave::iptables-restore < /etc/iptables.rules
+alice::cat /etc/tnc_config
+carol::cat /etc/tnc_config
+dave::cat /etc/tnc_config
+carol::echo 0 > /proc/sys/net/ipv4/ip_forward
+dave::echo aabbccddeeff11223344556677889900 > /var/lib/dbus/machine-id
+alice::sed -i "s/NOW/`date +%s`/g" /etc/pts/data1.sql
+alice::cd /usr/local/share/strongswan/templates/database/imv; cat tables.sql data.sql /etc/pts/data1.sql | sqlite3 /etc/pts/config.db
+alice::chgrp www-data /etc/pts/config.db; chmod g+w /etc/pts/config.db
+alice::service apache2 start
+alice::ipsec start
+moon::ipsec start
+dave::ipsec start
+carol::ipsec start
+carol::sleep 1
+dave::ipsec up home
+carol::ipsec up home
+carol::sleep 1