]> git.ipfire.org Git - thirdparty/strongswan.git/blob - testing/tests/route-based/rw-shared-xfrmi/pretest.dat
testing: Add scenarios that use XFRM interfaces
[thirdparty/strongswan.git] / testing / tests / route-based / rw-shared-xfrmi / pretest.dat
1 moon::iptables-restore < /etc/iptables.rules
2 carol::iptables-restore < /etc/iptables.rules
3 dave::iptables-restore < /etc/iptables.rules
4 moon::/usr/local/libexec/ipsec/xfrmi -n xfrm-moon -i 42 -d eth0
5 moon::ip link set xfrm-moon up
6 moon::ip route add 10.3.0.0/28 dev xfrm-moon
7 moon::iptables -A FORWARD -i xfrm-moon -j ACCEPT
8 moon::iptables -A FORWARD -o xfrm-moon -j ACCEPT
9 moon::systemctl start strongswan-swanctl
10 carol::systemctl start strongswan-swanctl
11 dave::systemctl start strongswan-swanctl
12 moon::expect-connection rw
13 carol::expect-connection home
14 carol::swanctl --initiate --child home
15 dave::expect-connection home
16 dave::swanctl --initiate --child home