/testing/guestbin/swan-prep kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ipsec start Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Redirecting to: /etc/init.d/ipsec start Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Starting pluto IKE daemon for IPsec: kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# /testing/pluto/bin/wait-until-pluto-started kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ipsec auto --add west-east 002 added connection description "west-east" kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ipsec whack --impair suppress-retransmits kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# echo "initdone" initdone kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# #!/bin/sh kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# # we can transmit in the clear kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 8 -n 192.1.2.23 PING 192.1.2.23 (192.1.2.23) 56(84) bytes of data. --- 192.1.2.23 ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 181ms rtt min/avg/max/mdev = 0.032/0.042/0.053/0.011 ms kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# # bring up the tunnel kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ipsec auto --up west-east 002 "west-east" #1: initiating v2 parent SA 181 "west-east" #1: initiate 002 "west-east": constructed local IKE proposals for west-east (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-east" #1: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-east" #1: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-east": constructed local ESP/AH proposals for west-east (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-east" #2: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-east" #2: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-east" #2: IKEv2 mode peer ID is ID_FQDN: '@east' 003 "west-east" #2: Authenticated using RSA 002 "west-east" #2: negotiated connection [192.1.2.45-192.1.2.45:0-65535 0] -> [192.1.2.23-192.1.2.23:0-65535 0] 004 "west-east" #2: STATE_V2_IPSEC_I: IPsec SA established tunnel mode {ESP=>0x021007e8 <0x00e61581 xfrm=AES_GCM_16_256-NONE NATOA=none NATD=none DPD=active} kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# # use the tunnel kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 8 -n 192.1.2.23 PING 192.1.2.23 (192.1.2.23) 56(84) bytes of data. --- 192.1.2.23 ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 189ms rtt min/avg/max/mdev = 0.052/0.071/0.091/0.015 ms kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# # show the tunnel! kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# echo "Tunnel should be up" Tunnel should be up kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ipsec whack --trafficstatus whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 westrun.sh 'ipsec whack --trafficstatus' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 westrun.sh '# Wait more then 15 seconds while ensuring there is traffic' <<<<<<<<</dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# # force a rekey kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ipsec auto --up west-east whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 westrun.sh 'ipsec auto --up west-east' <<<<<<<<</dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# sleep 1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ping -q -c 1 -n 192.1.2.23 >/dev/null kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# echo done done kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# # Confirm expired IPsec SA will not trigger a liveness probe kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# grep "liveness: no need to send" /tmp/pluto.log kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent 1]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 final.sh 'grep "liveness: no need to send" /tmp/pluto.log' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 final.sh 'ipsec stop' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 final.sh 'if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi' <<<<<<<<<