/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. Redirecting to: namespaces direct start via ipsec pluto 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 167ms rtt min/avg/max/mdev = 0.033/0.046/0.073/0.016 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=>0x51fe66ce <0x2248ac79 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 163ms rtt min/avg/max/mdev = 0.045/0.109/0.174/0.044 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 006 #2: "west-east", type=ESP, add_time=1569051234, inBytes=672, outBytes=672, id='@east' kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# # Wait more then 15 seconds while ensuring there is traffic 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]# 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 002 "west-east": constructed local ESP/AH proposals for west-east (ESP/AH initiator emitting proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=MODP2048;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=MODP2048;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048;ESN=DISABLED 188 "west-east" #3: STATE_V2_CREATE_I: sent IPsec Child req wait response 002 "west-east" #3: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-east" #3: 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" #3: STATE_V2_IPSEC_I: IPsec SA established tunnel mode {ESP=>0x63995e71 <0x530d3b32 xfrm=AES_GCM_16_256-NONE-MODP2048 NATOA=none NATD=none DPD=active} 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]# 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 | liveness: no need to send or schedule DPD for replaced IPsec SA kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# : ==== cut ==== kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# # stop pluto so if test case is ran manually and left, no legit liveness probes are done kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ipsec stop 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. 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. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. /usr/bin/nsenter --mount=/run/mountns/west-ikev2-liveness-11-silent --net=/run/netns/west-ikev2-liveness-11-silent --uts=/run/utsns/west-ikev2-liveness-11-silent /bin/bash 002 shutting down kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# : ==== tuc ==== kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# ../bin/check-for-core.sh kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent]# if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-liveness-11-silent\[root@west ikev2-liveness-11-silent 1]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 final.sh 'if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi' <<<<<<<<<