/testing/guestbin/swan-prep kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22\[root@east newoe-18-poc-cop-port22]# cp east-ikev2-oe.conf /etc/ipsec.d/ikev2-oe.conf kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22\[root@east newoe-18-poc-cop-port22]# cp policies/* /etc/ipsec.d/policies/ kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22\[root@east newoe-18-poc-cop-port22]# 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\[root@east newoe-18-poc-cop-port22]# 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. Redirecting to: namespaces direct start via ipsec pluto kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22\[root@east newoe-18-poc-cop-port22]# /testing/pluto/bin/wait-until-pluto-started kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22\[root@east newoe-18-poc-cop-port22]# # give OE policies time to load kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22\[root@east newoe-18-poc-cop-port22]# sleep 5 kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22\[root@east newoe-18-poc-cop-port22]# echo "initdone" initdone kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22\[root@east newoe-18-poc-cop-port22]# ../../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 0x22b25037 reqid 16429 mode tunnel replay-window 32 flag af-unspec aead rfc4106(gcm(aes)) 0xf5ea76b25171c108b6db723703f26622d67ef711c3ed8c5d1edd8939c6f1c1befa404d2f 128 anti-replay context: seq 0x1, oseq 0x0, bitmap 0x00000001 src 192.1.2.23 dst 192.1.3.209 proto esp spi 0xa0418ca4 reqid 16429 mode tunnel replay-window 32 flag af-unspec aead rfc4106(gcm(aes)) 0x10498ef6927c25c63148e3a27306d082ca9cc08175fbe83d2dbf89f1c45a588d09bbd15d 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\[root@east newoe-18-poc-cop-port22]# # a tunnel should have established kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22\[root@east newoe-18-poc-cop-port22]# 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\[root@east newoe-18-poc-cop-port22]# : ==== cut ==== kroot@swantest:/home/build/libreswan/testing/pluto/newoe-18-poc-cop-port22\[root@east newoe-18-poc-cop-port22]# 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\[root@east newoe-18-poc-cop-port22 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' <<<<<<<<<