Note that the mobike-nat test has been removed as it basically did the same as the mobike-virtual-ip-nat test. Instead, the mobike-nat-mapping scenario is added, which simulates a NAT router restart.
11 lines
505 B
Plaintext
11 lines
505 B
Plaintext
alice::ifup eth1
|
|
alice::iptables-restore < /etc/iptables.rules
|
|
sun::iptables-restore < /etc/iptables.rules
|
|
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
|
|
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
|
|
alice::systemctl start strongswan
|
|
sun::systemctl start strongswan
|
|
alice::expect-connection mobike
|
|
sun::expect-connection mobike
|
|
alice::swanctl --initiate --child mobike 2> /dev/null
|