Debian Codegraph @

testing/pluto/interop-ikev2-strongswan-37-initiator-no-digsig/westinit.sh

raw
1 /testing/guestbin/swan-prep --userland strongswan
2
3 cp /testing/x509/real/mainca/root.cert /etc/strongswan/ipsec.d/cacerts/mainca.crt
4 cp /testing/x509/real/mainca/`hostname`.end.key /etc/strongswan/ipsec.d/private/`hostname`.key
5 cp /testing/x509/real/mainca/`hostname`.end.cert /etc/strongswan/ipsec.d/certs/`hostname`.crt
6 # why?
7 cp /testing/x509/real/mainca/east.end.cert /etc/strongswan/ipsec.d/certs/east.crt
8
9 # confirm that the network is alive
10 ../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254
11 # ensure that clear text does not get through
12 iptables -A INPUT -i eth1 -s 192.0.2.0/24 -j DROP
13 iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT
14 # confirm clear text does not get through
15 ../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254
16 ../../guestbin/strongswan-start.sh
17 echo "initdone"