testing: Migrated p2pnat/medsrv-psk scenario to vici

This commit is contained in:
Andreas Steffen
2021-03-30 22:12:00 +02:00
parent 03e1272ff2
commit 66ba50b217
16 changed files with 166 additions and 132 deletions
+3 -3
View File
@@ -11,9 +11,9 @@ sun::iptables -t nat -A POSTROUTING -o eth0 -s 10.2.0.0/16 -p udp -j SNAT --to-s
sun::iptables -t nat -A POSTROUTING -o eth0 -s 10.2.0.0/16 -p tcp -j SNAT --to-source PH_IP_SUN:2000-2100
sun::iptables -A FORWARD -i eth1 -o eth0 -s 10.2.0.0/16 -j ACCEPT
sun::iptables -A FORWARD -i eth0 -o eth1 -d 10.2.0.0/16 -j ACCEPT
carol::ipsec start
carol::systemctl start strongswan
carol::expect-connection medsrv
bob::ipsec start
bob::systemctl start strongswan
bob::sleep 1
alice::ipsec start
alice::systemctl start strongswan
alice::sleep 2