aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/tnc/tnccs-20-os-pts/pretest.dat
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2014-04-05 15:38:06 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2014-04-15 09:21:05 +0200
commit48f37c448c169fa1f88510fa68d26273a1ec5afa (patch)
tree399d20c029ddfa049071ed5fe59a5908a33fdfd2 /testing/tests/tnc/tnccs-20-os-pts/pretest.dat
parent4894bfa2279c861b863464418cad66c07bfa13e2 (diff)
downloadstrongswan-48f37c448c169fa1f88510fa68d26273a1ec5afa.tar.bz2
strongswan-48f37c448c169fa1f88510fa68d26273a1ec5afa.tar.xz
Make Attestation IMV independent of OS IMV
Diffstat (limited to 'testing/tests/tnc/tnccs-20-os-pts/pretest.dat')
-rw-r--r--testing/tests/tnc/tnccs-20-os-pts/pretest.dat18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/tests/tnc/tnccs-20-os-pts/pretest.dat b/testing/tests/tnc/tnccs-20-os-pts/pretest.dat
new file mode 100644
index 000000000..49ea0416e
--- /dev/null
+++ b/testing/tests/tnc/tnccs-20-os-pts/pretest.dat
@@ -0,0 +1,18 @@
+moon::iptables-restore < /etc/iptables.rules
+carol::iptables-restore < /etc/iptables.rules
+dave::iptables-restore < /etc/iptables.rules
+carol::echo 0 > /proc/sys/net/ipv4/ip_forward
+dave::echo aabbccddeeff11223344556677889900 > /var/lib/dbus/machine-id
+moon::cd /usr/local/share/strongswan/templates/database/imv; cat tables.sql data.sql /etc/pts/data1.sql | sqlite3 /etc/pts/config.db
+moon::cat /etc/tnc_config
+carol::cat /etc/tnc_config
+dave::cat /etc/tnc_config
+moon::ipsec start
+dave::ipsec start
+carol::ipsec start
+dave::sleep 1
+dave::ipsec up home
+carol::ipsec up home
+carol::sleep 1
+moon::ipsec attest --sessions
+moon::ipsec attest --devices