/testing/guestbin/swan-prep --x509
Preparing X.509 files
west #
 certutil -D -n east -d sql:/etc/ipsec.d
west #
 # confirm that the network is alive
west #
 ../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254
destination -I 192.0.1.254 192.0.2.254 is alive
west #
 # ensure that clear text does not get through
west #
 iptables -A INPUT -i eth1 -s 192.0.2.0/24 -j DROP
west #
 iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT
west #
 # confirm clear text does not get through
west #
 ../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254
down
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add ikev2-westnet-eastnet
002 "ikev2-westnet-eastnet": added IKEv2 connection
west #
 echo "initdone"
initdone
west #
 # expected to fail
west #
 ipsec auto --up ikev2-westnet-eastnet
1v2 "ikev2-westnet-eastnet" #1: initiating IKEv2 connection
1v2 "ikev2-westnet-eastnet" #1: sent IKE_SA_INIT request
003 "ikev2-westnet-eastnet" #1: legacy RSA-SHA1 is not allowed but peer supports nothing else
002 "ikev2-westnet-eastnet" #1: authentication method IKEv2_AUTH_RESERVED not supported
036 "ikev2-westnet-eastnet" #1: encountered fatal error in state STATE_V2_PARENT_I1
002 "ikev2-westnet-eastnet" #1: deleting state (STATE_V2_PARENT_I1) and NOT sending notification
002 "ikev2-westnet-eastnet" #1: deleting IKE SA but connection is supposed to remain up; schedule EVENT_REVIVE_CONNS
west #
 ipsec whack --shutdown
west #
 
