pretest.dat 788 B

1234567891011121314151617
  1. alice::iptables-restore < /etc/iptables.rules
  2. venus::iptables-restore < /etc/iptables.rules
  3. sun::iptables-restore < /etc/iptables.rules
  4. moon::iptables -t nat -A POSTROUTING -o eth0 -s 10.1.0.0/16 -p tcp -j SNAT --to PH_IP_MOON
  5. sun::ip route add 10.1.0.0/16 via PH_IP_MOON
  6. sun::iptables -t nat -A POSTROUTING -o eth1 -m mark --mark 10 -j SNAT --to PH_IP_CAROL10
  7. sun::iptables -t nat -A POSTROUTING -o eth1 -m mark --mark 20 -j SNAT --to PH_IP_DAVE10
  8. sun::iptables -t mangle -A PREROUTING -d PH_IP_CAROL10 -j MARK --set-mark 11
  9. sun::iptables -t mangle -A PREROUTING -d PH_IP_DAVE10 -j MARK --set-mark 21
  10. sun::ipsec start
  11. alice::ipsec start
  12. venus::ipsec start
  13. sun::expect-connection alice
  14. alice::expect-connection home
  15. alice::ipsec up home
  16. venus::expect-connection home
  17. venus::ipsec up home