Debian Codegraph @

testing/pluto/interop-ikev2-strongswan-35-initiator-rekey/westinit.sh

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