Debian Codegraph @

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

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