/testing/guestbin/swan-prep --hostkeys
Creating NSS database containing host keys
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 #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add west-east
"west-east": added IKEv1 connection
west #
 echo "initdone"
initdone
west #
 ipsec auto --up west-east
"west-east" #1: initiating IKEv1 Main Mode connection
"west-east" #1: sent Main Mode request
"west-east" #1: sent Main Mode I2
"west-east" #1: sent Main Mode I3
"west-east" #1: Peer ID is ID_FQDN: '@east'
"west-east" #1: authenticated peer using preloaded certificate '@east' and 2nnn-bit RSA with SHA1 signature
"west-east" #1: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
"west-east" #2: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
"west-east" #2: sent Quick Mode request
"west-east" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
west #
 # suppress martian logging before we create havoc
west #
 echo 0 > /proc/sys/net/ipv4/conf/default/log_martians
west #
 echo 0 > /proc/sys/net/ipv4/conf/all/log_martians
west #
 # add east's ip on west to shoot in foot
west #
 ../../guestbin/ip.sh address add 192.1.2.23/24 dev eth1
west #
 ipsec auto --ready
listening for IKE messages
adding interface eth1 192.1.2.23:UDP/500
adding interface eth1 192.1.2.23:UDP/4500 (NAT)
"west-east": connection matches both left eth1 192.1.2.45 and right eth1 192.1.2.23
"west-east": terminating SAs using this connection
"west-east" #2: deleting IPsec SA (QUICK_I2) and sending notification using ISAKMP SA #1
"west-east" #2: ESP traffic information: in=0B out=0B
"west-east" #1: deleting ISAKMP SA (MAIN_I4) and sending notification
forgetting secrets
loading secrets from "/etc/ipsec.secrets"
west #
 sleep 30
west #
 echo done
done
west #
 ipsec whack --shutdown
Pluto is shutting down
west #
 
