/testing/guestbin/swan-prep --x509 Preparing X.509 files kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-whack]# certutil -D -n road -d sql:/etc/ipsec.d kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-whack]# cp east-ikev2-oe.conf /etc/ipsec.d/ikev2-oe.conf kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-whack]# cp policies/* /etc/ipsec.d/policies/ kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-whack]# echo "192.1.3.0/24" >> /etc/ipsec.d/policies/clear-or-private kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-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. 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/certoe-03-poc-whack\[root@east certoe-03-poc-whack]# /testing/pluto/bin/wait-until-pluto-started kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-whack]# ipsec whack --impair suppress-retransmits kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-whack]# # give OE policies time to load kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-whack]# sleep 5 kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-whack]# echo "initdone" initdone kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-whack]# ../../pluto/bin/ipsec-look.sh ==== cut ==== start raw xfrm state: src 192.1.2.23/32 dst 192.1.3.209/32 \ dir out priority 1564639 ptype main \ tmpl src 192.1.2.23 dst 192.1.3.209\ proto esp reqid 16437 mode tunnel\ src 192.1.3.209/32 dst 192.1.2.23/32 \ dir fwd priority 1564639 ptype main \ tmpl src 192.1.3.209 dst 192.1.2.23\ proto esp reqid 16437 mode tunnel\ src 192.1.3.209/32 dst 192.1.2.23/32 \ dir in priority 1564639 ptype main \ tmpl src 192.1.3.209 dst 192.1.2.23\ proto esp reqid 16437 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 Mon Aug 26 13:19:33 UTC 2019 XFRM state: src 192.1.3.209 dst 192.1.2.23 proto esp spi 0x60ab47bd reqid 16437 mode tunnel replay-window 32 flag af-unspec aead rfc4106(gcm(aes)) 0xc0e172f3b8b3c8e2566520c8d583fc6d9ffb8880174da0e95dd72b7d3f0806a0bc7af7eb 128 anti-replay context: seq 0x0, oseq 0x0, bitmap 0x00000000 src 192.1.2.23 dst 192.1.3.209 proto esp spi 0x7e2c8db8 reqid 16437 mode tunnel replay-window 32 flag af-unspec aead rfc4106(gcm(aes)) 0xc2b7ea9db73f06bbe37d05aacb8e3d46fbed8c65904d1c2028d3505b1a93c8d94432ff59 128 anti-replay context: seq 0x0, oseq 0x0, bitmap 0x00000000 XFRM policy: 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.209/32 dir out priority 1564639 ptype main tmpl src 192.1.2.23 dst 192.1.3.209 proto esp reqid 16437 mode tunnel 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.209/32 dst 192.1.2.23/32 dir fwd priority 1564639 ptype main tmpl src 192.1.3.209 dst 192.1.2.23 proto esp reqid 16437 mode tunnel src 192.1.3.209/32 dst 192.1.2.23/32 dir in priority 1564639 ptype main tmpl src 192.1.3.209 dst 192.1.2.23 proto esp reqid 16437 mode tunnel 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 Libreswan test CA for mainca - Libreswan CT,, east u,u,u hashsha1 P,, nic P,, north P,, west P,, west-ec P,, kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-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/certoe-03-poc-whack\[root@east certoe-03-poc-whack 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 final.sh 'ipsec whack --trafficstatus' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 final.sh '# A tunnel should have established' <<<<<<<<< [192.1.3.209-192.1.3.209:0-65535 0] kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-whack]# # you should see both RSA and NULL kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-whack]# grep IKEv2_AUTH_ /tmp/pluto.log | auth method: IKEv2_AUTH_NULL (0xd) | auth method: IKEv2_AUTH_RSA (0x1) kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-whack]# : ==== cut ==== kroot@swantest:/home/build/libreswan/testing/pluto/certoe-03-poc-whack\[root@east certoe-03-poc-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/certoe-03-poc-whack\[root@east certoe-03-poc-whack 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 final.sh 'ipsec auto --status' <<<<<<<<<