pretest.dat 1.3 KB

123456789101112131415161718192021222324252627282930
  1. moon::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql > /etc/db.d/ipsec.sql
  2. moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
  3. moon::ipsec pool --add extpool --start 10.3.0.1 --end 10.3.1.244 --timeout 48 2> /dev/null
  4. moon::ipsec pool --add intpool --start 10.4.0.1 --end 10.4.1.244 --timeout 0 2> /dev/null
  5. moon::ipsec pool --addattr dns --server PH_IP_VENUS --pool intpool --identity venus.strongswan.org 2> /dev/null
  6. moon::ipsec pool --addattr dns --server PH_IP_ALICE --pool intpool --identity alice@strongswan.org 2> /dev/null
  7. moon::ipsec pool --addattr dns --server PH_IP_WINNETOU --pool extpool 2> /dev/null
  8. moon::ipsec pool --statusattr 2> /dev/null
  9. moon::ip route add 10.3.0.0/16 via PH_IP_MOON
  10. moon::ip route add 10.4.0.0/16 via PH_IP_MOON1
  11. alice::iptables-restore < /etc/iptables.rules
  12. venus::iptables-restore < /etc/iptables.rules
  13. moon::iptables-restore < /etc/iptables.rules
  14. carol::iptables-restore < /etc/iptables.rules
  15. dave::iptables-restore < /etc/iptables.rules
  16. moon::ipsec start
  17. alice::ipsec start
  18. venus::ipsec start
  19. carol::ipsec start
  20. dave::ipsec start
  21. moon::expect-connection int
  22. moon::expect-connection ext
  23. carol::expect-connection home
  24. carol::ipsec up home
  25. dave::expect-connection home
  26. dave::ipsec up home
  27. alice::expect-connection home
  28. alice::ipsec up home
  29. venus::expect-connection home
  30. venus::ipsec up home