]> git.ipfire.org Git - thirdparty/strongswan.git/blob - testing/tests/tnc/tnccs-20-pts/pretest.dat
testing: Use renamed systemd unit
[thirdparty/strongswan.git] / testing / tests / tnc / tnccs-20-pts / pretest.dat
1 moon::iptables-restore < /etc/iptables.rules
2 carol::iptables-restore < /etc/iptables.rules
3 dave::iptables-restore < /etc/iptables.rules
4 carol::echo 0 > /proc/sys/net/ipv4/ip_forward
5 dave::echo aabbccddeeff11223344556677889900 > /var/lib/dbus/machine-id
6 moon::sed -i "s:DEBIAN_VERSION:\`cat /etc/debian_version\`:" /etc/pts/data1.sql
7 moon::cd /usr/local/share/strongswan/templates/database/imv; cat tables.sql data.sql /etc/pts/data1.sql | sqlite3 /etc/db.d/config.db
8 moon::cat /etc/tnc_config
9 carol::cat /etc/tnc_config
10 dave::cat /etc/tnc_config
11 carol::rm /etc/swanctl/rsa/*
12 dave::rm /etc/swanctl/rsa/*
13 carol::rm /etc/swanctl/x509/*
14 dave::rm /etc/swanctl/x509/*
15 moon::systemctl start strongswan
16 dave::systemctl start strongswan
17 carol::systemctl start strongswan
18 moon::expect-connection rw-allow
19 moon::expect-connection rw-isolate
20 dave::expect-connection home
21 dave::swanctl --initiate --child home 2> /dev/null
22 carol::expect-connection home
23 carol::swanctl --initiate --child home 2> /dev/null
24 moon::ipsec attest --sessions
25 moon::ipsec attest --devices