]> git.ipfire.org Git - people/ms/strongswan.git/blob - testing/tests/ikev2-stroke-bye/rw-mark-in-out/pretest.dat
24182636434cb2a096182ba46ae9c5b9645499d9
[people/ms/strongswan.git] / testing / tests / ikev2-stroke-bye / rw-mark-in-out / pretest.dat
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