| 1 |
/testing/guestbin/swan-prep --nokeys |
| 2 |
|
| 3 |
/testing/x509/import.sh real/mainca/`hostname`.all.p12 |
| 4 |
# needed? |
| 5 |
/testing/x509/import.sh rea/mainca/east.end.cert |
| 6 |
|
| 7 |
# confirm that the network is alive |
| 8 |
../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254 |
| 9 |
# ensure that clear text does not get through |
| 10 |
iptables -A INPUT -i eth1 -s 192.0.2.0/24 -j DROP |
| 11 |
iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT |
| 12 |
# confirm clear text does not get through |
| 13 |
../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254 |
| 14 |
ipsec start |
| 15 |
../../guestbin/wait-until-pluto-started |
| 16 |
ipsec whack --impair suppress_retransmits |
| 17 |
ipsec auto --add westnet-eastnet-ikev2 |
| 18 |
echo "initdone" |