]> git.ipfire.org Git - thirdparty/strongswan.git/blob - testing/tests/swanctl/nat-rw/pretest.dat
testing: Use renamed systemd unit
[thirdparty/strongswan.git] / testing / tests / swanctl / nat-rw / 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 udp -j SNAT --to-source PH_IP_MOON:1024-1100
5 moon::iptables -t nat -A POSTROUTING -o eth0 -s 10.1.0.0/16 -p tcp -j SNAT --to-source PH_IP_MOON:2000-2100
6 sun::systemctl start strongswan
7 alice::systemctl start strongswan
8 venus::systemctl start strongswan
9 sun::expect-connection nat-t
10 alice::expect-connection nat-t
11 alice::swanctl --initiate --child nat-t
12 venus::expect-connection nat-t
13 venus::swanctl --initiate --child nat-t