pretest.dat 678 B

1234567891011121314151617
  1. moon::iptables-restore < /etc/iptables.rules
  2. carol::iptables-restore < /etc/iptables.rules
  3. dave::iptables-restore < /etc/iptables.rules
  4. moon::ip tunnel add vti0 local PH_IP_MOON remote 0.0.0.0 mode vti key 42
  5. moon::sysctl -w net.ipv4.conf.vti0.disable_policy=1
  6. moon::ip link set vti0 up
  7. moon::ip route add 10.3.0.0/28 dev vti0
  8. moon::iptables -A FORWARD -i vti0 -j ACCEPT
  9. moon::iptables -A FORWARD -o vti0 -j ACCEPT
  10. moon::systemctl start strongswan
  11. carol::systemctl start strongswan
  12. dave::systemctl start strongswan
  13. moon::expect-connection rw
  14. carol::expect-connection home
  15. carol::swanctl --initiate --child home
  16. dave::expect-connection home
  17. dave::swanctl --initiate --child home