pretest.dat 1.1 KB

1234567891011121314151617181920212223242526
  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/NOW/`date +%s`/g" /etc/pts/data1.sql
  7. moon::sed -i "s:DEBIAN_VERSION:\`cat /etc/debian_version\`:" /etc/pts/data1.sql
  8. moon::cd /usr/local/share/strongswan/templates/database/imv; cat tables.sql data.sql /etc/pts/data1.sql | sqlite3 /etc/db.d/config.db
  9. moon::cat /etc/tnc_config
  10. carol::cat /etc/tnc_config
  11. dave::cat /etc/tnc_config
  12. carol::rm /etc/swanctl/rsa/*
  13. dave::rm /etc/swanctl/rsa/*
  14. carol::rm /etc/swanctl/x509/*
  15. dave::rm /etc/swanctl/x509/*
  16. moon::systemctl start strongswan
  17. carol::systemctl start strongswan
  18. dave::systemctl start strongswan
  19. moon::expect-connection rw-allow
  20. moon::expect-connection rw-isolate
  21. carol::expect-connection home
  22. carol::swanctl --initiate --child home 2> /dev/null
  23. dave::expect-connection home
  24. dave::swanctl --initiate --child home 2> /dev/nullmoon::ipsec attest --packages --product 'Debian 7.9 x86_64'
  25. moon::ipsec attest --sessions
  26. moon::ipsec attest --devices