Debian Codegraph @

testing/pluto/ikev2-x509-37-fakeeast-westrsa/westinit.sh

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