| 1 |
/testing/guestbin/swan-prep --hostkeys |
| 2 |
# confirm that the network is alive |
| 3 |
../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254 |
| 4 |
# ensure that clear text does not get through |
| 5 |
iptables -A INPUT -i eth1 -s 192.0.2.0/24 -j DROP |
| 6 |
iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT |
| 7 |
# confirm clear text does not get through |
| 8 |
../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254 |
| 9 |
ipsec start |
| 10 |
../../guestbin/wait-until-pluto-started |
| 11 |
ipsec auto --add westnet-eastnet-ikev2 |
| 12 |
ipsec auto --status | grep westnet-eastnet-ikev2 |
| 13 |
ipsec whack --impair suppress_retransmits |
| 14 |
echo "initdone" |