/testing/guestbin/swan-prep kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# cp road-ikev2-oe.conf /etc/ipsec.d/ikev2-oe.conf kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# cp policies/* /etc/ipsec.d/policies/ kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# echo "192.1.2.0/24 tcp 0 22" >> /etc/ipsec.d/policies/private-or-clear kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# 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. 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. 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. Redirecting to: namespaces direct start via ipsec pluto kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# /testing/pluto/bin/wait-until-pluto-started kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# # ensure for tests acquires expire before our failureshunt=2m kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# echo 30 > /proc/sys/net/core/xfrm_acq_expires kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# # give OE policies time to load kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# sleep 5 kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# echo "initdone" initdone kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# ipsec whack --oppohere 192.1.3.209 --oppothere 192.1.2.23 --oppoproto 6 --oppodport 22 002 initiate on demand from 192.1.3.209:0 to 192.1.2.23:22 proto=6 because: whack 181 "private-or-clear#192.1.2.0/24-(0--6--22)"[1] ...192.1.2.23 #1: initiate 002 "private-or-clear#192.1.2.0/24-(0--6--22)"[1] ...192.1.2.23: constructed local IKE proposals for private-or-clear#192.1.2.0/24-(0--6--22) (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 002 "private-or-clear#192.1.2.0/24-(0--6--22)"[1] ...192.1.2.23: constructed local ESP/AH proposals for private-or-clear#192.1.2.0/24-(0--6--22) (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 003 "private-or-clear#192.1.2.0/24-(0--6--22)"[1] ...192.1.2.23 #2: Authenticated using authby=null 002 "private-or-clear#192.1.2.0/24-(0--6--22)"[1] ...192.1.2.23 #2: negotiated connection [192.1.3.209-192.1.3.209:0-65535 6] -> [192.1.2.23-192.1.2.23:22-22 6] kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# # wait on OE retransmits and rekeying kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# sleep 5 kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# # should show tunnel and no shunts, and zero traffic count kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# ipsec whack --trafficstatus whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 roadrun.sh 'ipsec whack --trafficstatus' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 roadrun.sh 'ipsec whack --shuntstatus' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 roadrun.sh '# generate some traffic to be encrypted' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 roadrun.sh 'echo TRIGGER-OE | nc -s 192.1.3.209 192.1.2.23 22' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 roadrun.sh 'ipsec whack --trafficstatus' <<<<<<<<< [192.1.2.23-192.1.2.23:22-22 6] kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# : ==== cut ==== kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack]# ipsec auto --status whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@road newoe-18-poc-cop-port22-whack 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 final.sh 'ipsec auto --status' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 final.sh 'if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi' <<<<<<<<<