]> git.ipfire.org Git - thirdparty/strongswan.git/blame - testing/tests/tnc/tnccs-20-pdp-pt-tls/pretest.dat
Version bump to 5.9.1dr1
[thirdparty/strongswan.git] / testing / tests / tnc / tnccs-20-pdp-pt-tls / pretest.dat
CommitLineData
10c7ca23
AS
1alice::iptables-restore < /etc/iptables.rules
2carol::iptables-restore < /etc/iptables.rules
3dave::iptables-restore < /etc/iptables.rules
4alice::cat /etc/tnc_config
5carol::cat /etc/tnc_config
6carol::echo 0 > /proc/sys/net/ipv4/ip_forward
7dave::echo aabbccddeeff11223344556677889900 > /var/lib/dbus/machine-id
8dave::cat /etc/tnc_config
ab8ed95b 9alice::sed -i "s/NOW/`date +%s`/g" /etc/pts/data1.sql
f3d96b7b 10alice::sed -i "s/DEBIAN_VERSION/10/" /etc/pts/data1.sql
10051b01
TB
11alice::cd /usr/local/share/strongswan/templates/database/imv; cat tables.sql data.sql /etc/pts/data1.sql | sqlite3 /etc/db.d/config.db
12alice::chgrp -R www-data /etc/db.d/config.db; chmod -R g+w /etc/db.d/config.db
470e61ae 13alice::/usr/local/bin/init_tnc
6aa77031
AS
14alice::rm /etc/swanctl/x509/aliceCert.pem
15alice::rm /etc/swanctl/rsa/aliceKey.pem
13a3f20f 16alice::systemctl start apache2
35392aa8 17alice::systemctl start strongswan
c423d0e8 18alice::swanctl --load-creds
10c7ca23 19winnetou::ip route add 10.1.0.0/16 via 192.168.0.1
10c7ca23
AS
20dave::ip route add 10.1.0.0/16 via 192.168.0.1
21dave::cat /etc/pts/options
a3b35386 22dave::/usr/local/bin/pt-tls-client --optionsfrom /etc/pts/options
2382d45b
AS
23carol::ip route add 10.1.0.0/16 via 192.168.0.1
24carol::cat /etc/pts/options
a3b35386 25carol::/usr/local/bin/pt-tls-client --optionsfrom /etc/pts/options