pretest.dat 720 B

12345678910111213
  1. moon::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
  2. sun::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
  3. moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
  4. sun::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
  5. moon::cd /etc/swanctl; rm -r rsa/* x509/* x509ca/*
  6. sun::cd /etc/swanctl; rm -r rsa/* x509/* x509ca/*
  7. moon::iptables-restore < /etc/iptables.rules
  8. sun::iptables-restore < /etc/iptables.rules
  9. moon::systemctl start strongswan
  10. sun::systemctl start strongswan
  11. moon::expect-connection net-net
  12. sun::expect-connection net-net
  13. moon::swanctl --initiate --child net-net 2> /dev/null