pretest.dat 1.2 KB

12345678910111213141516171819202122232425
  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::/usr/local/bin/init_tnc
  14. alice::rm /etc/swanctl/x509/aliceCert.pem
  15. alice::rm /etc/swanctl/rsa/aliceKey.pem
  16. alice::systemctl start apache2
  17. alice::systemctl start strongswan
  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::/usr/local/bin/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::/usr/local/bin/pt-tls-client --optionsfrom /etc/pts/options