]> git.ipfire.org Git - people/ms/strongswan.git/blame - testing/tests/ikev2/host2host-transport-connmark/pretest.dat
testing: Migrate ikev2-stroke-bye scenarios to vici
[people/ms/strongswan.git] / testing / tests / ikev2 / host2host-transport-connmark / pretest.dat
CommitLineData
9ed09d5f
MW
1moon::iptables-restore < /etc/iptables.rules
2moon::iptables -t nat -A POSTROUTING -o eth0 -s 10.1.0.0/16 -j MASQUERADE
3moon::iptables -A FORWARD -i eth1 -o eth0 -s 10.1.0.0/16 -j ACCEPT
4moon::iptables -A FORWARD -i eth0 -o eth1 -d 10.1.0.0/16 -j ACCEPT
eba26225
AS
5sun::systemctl start strongswan
6alice::systemctl start strongswan
7venus::systemctl start strongswan
141ac4df 8sun::expect-connection nat-t
9ed09d5f 9alice::expect-connection nat-t
eba26225 10alice::swanctl --initiate --child nat-t
141ac4df 11venus::expect-connection nat-t
eba26225 12venus::swanctl --initiate --child nat-t