/testing/guestbin/swan-prep kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@east newoe-18-poc-cop-port22-whack]# cp east-ikev2-oe.conf /etc/ipsec.d/ikev2-oe.conf kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@east 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@east newoe-18-poc-cop-port22-whack]# echo "192.1.3.0/24 tcp 22 0" >> /etc/ipsec.d/policies/clear-or-private kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@east 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. 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@east 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@east 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@east newoe-18-poc-cop-port22-whack]# sleep 5 kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@east newoe-18-poc-cop-port22-whack]# echo "initdone" initdone kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@east newoe-18-poc-cop-port22-whack]# ../../pluto/bin/ipsec-look.sh ==== cut ==== start raw xfrm state: src 192.1.2.23/32 dst 192.1.3.209/32 proto tcp sport 22 \ dir out priority 3333 ptype main \ tmpl src 192.1.2.23 dst 192.1.3.209\ proto esp reqid 16429 mode tunnel\ src 192.1.3.209/32 dst 192.1.2.23/32 proto tcp \ dir fwd priority 3333 ptype main \ tmpl src 192.1.3.209 dst 192.1.2.23\ proto esp reqid 16429 mode tunnel\ src 192.1.3.209/32 dst 192.1.2.23/32 proto tcp \ dir in priority 3333 ptype main \ tmpl src 192.1.3.209 dst 192.1.2.23\ proto esp reqid 16429 mode tunnel\ src 192.1.2.253/32 dst 192.1.2.23/32 \ dir fwd priority 1564639 ptype main \ src 192.1.2.253/32 dst 192.1.2.23/32 \ dir in priority 1564639 ptype main \ src 192.1.2.23/32 dst 192.1.2.253/32 \ dir out priority 1564639 ptype main \ src 192.1.3.253/32 dst 192.1.2.23/32 \ dir fwd priority 1564639 ptype main \ src 192.1.3.253/32 dst 192.1.2.23/32 \ dir in priority 1564639 ptype main \ src 192.1.2.23/32 dst 192.1.3.253/32 \ dir out priority 1564639 ptype main \ src 192.1.3.254/32 dst 192.1.2.23/32 \ dir fwd priority 1564639 ptype main \ src 192.1.3.254/32 dst 192.1.2.23/32 \ dir in priority 1564639 ptype main \ src 192.1.2.23/32 dst 192.1.3.254/32 \ dir out priority 1564639 ptype main \ src 192.1.2.254/32 dst 192.1.2.23/32 \ dir fwd priority 1564639 ptype main \ src 192.1.2.254/32 dst 192.1.2.23/32 \ dir in priority 1564639 ptype main \ src 192.1.2.23/32 dst 192.1.2.254/32 \ dir out priority 1564639 ptype main \ end raw xfrm state: ==== tuc ==== east Sat Sep 21 07:32:43 UTC 2019 XFRM state: src 192.1.3.209 dst 192.1.2.23 proto esp spi 0x2fbb2317 reqid 16429 mode tunnel replay-window 32 flag af-unspec aead rfc4106(gcm(aes)) 0x27bbbae0282284c8df298d8ada14d2b85ba63828a6fb00594b3cba3764646bade560110c 128 anti-replay context: seq 0x1, oseq 0x0, bitmap 0x00000001 src 192.1.2.23 dst 192.1.3.209 proto esp spi 0xcb5dfebf reqid 16429 mode tunnel replay-window 32 flag af-unspec aead rfc4106(gcm(aes)) 0xd06b5f4781e8d5853eaf4146584298f2a3226198dfbd5c724d33474d1a2693b12ee663bb 128 anti-replay context: seq 0x0, oseq 0x1, bitmap 0x00000000 XFRM policy: src 192.1.2.23/32 dst 192.1.3.209/32 proto tcp sport 22 dir out priority 3333 ptype main tmpl src 192.1.2.23 dst 192.1.3.209 proto esp reqid 16429 mode tunnel src 192.1.3.209/32 dst 192.1.2.23/32 proto tcp dir fwd priority 3333 ptype main tmpl src 192.1.3.209 dst 192.1.2.23 proto esp reqid 16429 mode tunnel src 192.1.3.209/32 dst 192.1.2.23/32 proto tcp dir in priority 3333 ptype main tmpl src 192.1.3.209 dst 192.1.2.23 proto esp reqid 16429 mode tunnel src 192.1.2.23/32 dst 192.1.2.253/32 dir out priority 1564639 ptype main src 192.1.2.23/32 dst 192.1.2.254/32 dir out priority 1564639 ptype main src 192.1.2.23/32 dst 192.1.3.253/32 dir out priority 1564639 ptype main src 192.1.2.23/32 dst 192.1.3.254/32 dir out priority 1564639 ptype main src 192.1.2.253/32 dst 192.1.2.23/32 dir fwd priority 1564639 ptype main src 192.1.2.253/32 dst 192.1.2.23/32 dir in priority 1564639 ptype main src 192.1.2.254/32 dst 192.1.2.23/32 dir fwd priority 1564639 ptype main src 192.1.2.254/32 dst 192.1.2.23/32 dir in priority 1564639 ptype main src 192.1.3.253/32 dst 192.1.2.23/32 dir fwd priority 1564639 ptype main src 192.1.3.253/32 dst 192.1.2.23/32 dir in priority 1564639 ptype main src 192.1.3.254/32 dst 192.1.2.23/32 dir fwd priority 1564639 ptype main src 192.1.3.254/32 dst 192.1.2.23/32 dir in priority 1564639 ptype main XFRM done IPSEC mangle TABLES NEW_IPSEC_CONN mangle TABLES ROUTING TABLES default via 192.1.2.254 dev eth1 192.0.1.0/24 via 192.1.2.45 dev eth1 192.0.2.0/24 dev eth0 proto kernel scope link src 192.0.2.254 192.1.2.0/24 dev eth1 proto kernel scope link src 192.1.2.23 NSS_CERTIFICATES Certificate Nickname Trust Attributes SSL,S/MIME,JAR/XPI kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@east newoe-18-poc-cop-port22-whack]# # a tunnel should have established kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@east newoe-18-poc-cop-port22-whack]# grep "negotiated connection" /tmp/pluto.log "clear-or-private#192.1.3.0/24-(22--6--0)"[1] ...192.1.3.209 #2: negotiated connection [192.1.2.23-192.1.2.23:22-22 6] -> [192.1.3.209-192.1.3.209:0-65535 6] kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@east newoe-18-poc-cop-port22-whack]# : ==== cut ==== kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22-whack\[root@east 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@east 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' <<<<<<<<<