testing: Start charon before Apache in tnc/tnccs-20-pdp-pt-tls
[strongswan.git] / testing / tests / tnc / tnccs-20-pdp-pt-tls / pretest.dat
1 alice::iptables-restore < /etc/iptables.rules
2 carol::iptables-restore < /etc/iptables.rules
3 dave::iptables-restore < /etc/iptables.rules
4 alice::cat /etc/tnc_config
5 carol::cat /etc/tnc_config
6 carol::echo 0 > /proc/sys/net/ipv4/ip_forward
7 dave::echo aabbccddeeff11223344556677889900 > /var/lib/dbus/machine-id
8 dave::cat /etc/tnc_config
9 alice::sed -i "s/NOW/`date +%s`/g" /etc/pts/data1.sql
10 alice::sed -i "s:DEBIAN_VERSION:\`cat /etc/debian_version\`:" /etc/pts/data1.sql
11 alice::cd /usr/local/share/strongswan/templates/database/imv; cat tables.sql data.sql /etc/pts/data1.sql | sqlite3 /etc/db.d/config.db
12 alice::chgrp -R www-data /etc/db.d/config.db; chmod -R g+w /etc/db.d/config.db
13 alice::/var/www/tnc/manage.py setpassword strongSwan strongSwan
14 alice::rm /etc/swanctl/x509/aliceCert.pem
15 alice::rm /etc/swanctl/rsa/aliceKey.pem
16 alice::service charon start
17 alice::service apache2 start
18 alice::swanctl --load-creds
19 winnetou::ip route add 10.1.0.0/16 via 192.168.0.1
20 dave::ip route add 10.1.0.0/16 via 192.168.0.1
21 dave::cat /etc/pts/options
22 dave::ipsec pt-tls-client --optionsfrom /etc/pts/options
23 carol::ip route add 10.1.0.0/16 via 192.168.0.1
24 carol::cat /etc/pts/options
25 carol::ipsec pt-tls-client --optionsfrom /etc/pts/options