Annotation of embedaddon/strongswan/testing/tests/ikev2/nat-rw-mark/pretest.dat, revision 1.1.1.1
1.1 misho 1: sun::iptables-restore < /etc/iptables.rules
2: alice::iptables-restore < /etc/iptables.rules
3: venus::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: moon::iptables -t nat -A POSTROUTING -o eth0 -s PH_IP_ALICE -p udp --sport 500 -j SNAT --to PH_IP_MOON:510
6: moon::iptables -t nat -A POSTROUTING -o eth0 -s PH_IP_VENUS -p udp --sport 500 -j SNAT --to PH_IP_MOON:520
7: moon::iptables -t nat -A POSTROUTING -o eth0 -s PH_IP_ALICE -p udp --sport 4500 -j SNAT --to PH_IP_MOON:4510
8: moon::iptables -t nat -A POSTROUTING -o eth0 -s PH_IP_VENUS -p udp --sport 4500 -j SNAT --to PH_IP_MOON:4520
9: sun::iptables -t nat -A POSTROUTING -o eth1 -m mark --mark 10 -j SNAT --to PH_IP_CAROL10
10: sun::iptables -t nat -A POSTROUTING -o eth1 -m mark --mark 20 -j SNAT --to PH_IP_DAVE10
11: sun::iptables -t mangle -A PREROUTING -d PH_IP_CAROL10 -j MARK --set-mark 10
12: sun::iptables -t mangle -A PREROUTING -d PH_IP_DAVE10 -j MARK --set-mark 20
13: sun::ipsec start
14: alice::ipsec start
15: venus::ipsec start
16: sun::expect-connection alice
17: sun::expect-connection venus
18: alice::expect-connection nat-t
19: alice::ipsec up nat-t
20: venus::expect-connection nat-t
21: venus::ipsec up nat-t
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>