/testing/guestbin/swan-prep kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# cp policies/* /etc/ipsec.d/policies/ kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# 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. 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. 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-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# # ensure for tests acquires expire before our failureshunt=2m kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# echo 30 > /proc/sys/net/core/xfrm_acq_expires kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# /testing/pluto/bin/wait-until-pluto-started kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# # give OE policies time to load kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# sleep 5 kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# ip -s xfrm monitor > /tmp/xfrm-monitor.out & [1] 28169 kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# echo "initdone" initdone kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# ping -n -c 4 -I 192.1.3.209 192.1.2.23 PING 192.1.2.23 (192.1.2.23) from 192.1.3.209 : 56(84) bytes of data. 64 bytes from 192.1.2.23: icmp_seq=2 ttl=64 time=0.091 ms 64 bytes from 192.1.2.23: icmp_seq=3 ttl=64 time=0.097 ms 64 bytes from 192.1.2.23: icmp_seq=4 ttl=64 time=1.18 ms --- 192.1.2.23 ping statistics --- 4 packets transmitted, 3 received, 25% packet loss, time 95ms rtt min/avg/max/mdev = 0.091/0.457/1.183/0.513 ms [1]+ Terminated ip -s xfrm monitor > /tmp/xfrm-monitor.out kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# # wait on OE retransmits and rekeying kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# sleep 20 kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# ping -n -c 4 -I 192.1.3.209 192.1.2.23 PING 192.1.2.23 (192.1.2.23) from 192.1.3.209 : 56(84) bytes of data. 64 bytes from 192.1.2.23: icmp_seq=1 ttl=64 time=0.071 ms 64 bytes from 192.1.2.23: icmp_seq=2 ttl=64 time=0.064 ms 64 bytes from 192.1.2.23: icmp_seq=3 ttl=64 time=0.076 ms 64 bytes from 192.1.2.23: icmp_seq=4 ttl=64 time=0.085 ms --- 192.1.2.23 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 82ms rtt min/avg/max/mdev = 0.064/0.074/0.085/0.007 ms kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# sleep 20 kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# ping -n -c 4 -I 192.1.3.209 192.1.2.23 PING 192.1.2.23 (192.1.2.23) from 192.1.3.209 : 56(84) bytes of data. 64 bytes from 192.1.2.23: icmp_seq=1 ttl=64 time=0.097 ms 64 bytes from 192.1.2.23: icmp_seq=2 ttl=64 time=0.065 ms 64 bytes from 192.1.2.23: icmp_seq=3 ttl=64 time=0.083 ms 64 bytes from 192.1.2.23: icmp_seq=4 ttl=64 time=0.512 ms --- 192.1.2.23 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 97ms rtt min/avg/max/mdev = 0.065/0.189/0.512/0.186 ms kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# sleep 20 kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# ping -n -c 4 -I 192.1.3.209 192.1.2.23 PING 192.1.2.23 (192.1.2.23) from 192.1.3.209 : 56(84) bytes of data. 64 bytes from 192.1.2.23: icmp_seq=1 ttl=64 time=0.082 ms 64 bytes from 192.1.2.23: icmp_seq=2 ttl=64 time=0.094 ms 64 bytes from 192.1.2.23: icmp_seq=3 ttl=64 time=0.074 ms 64 bytes from 192.1.2.23: icmp_seq=4 ttl=64 time=0.076 ms --- 192.1.2.23 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 109ms rtt min/avg/max/mdev = 0.074/0.081/0.094/0.011 ms kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# sleep 20 kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# ping -n -c 4 -I 192.1.3.209 192.1.2.23 PING 192.1.2.23 (192.1.2.23) from 192.1.3.209 : 56(84) bytes of data. 64 bytes from 192.1.2.23: icmp_seq=1 ttl=64 time=0.068 ms 64 bytes from 192.1.2.23: icmp_seq=2 ttl=64 time=0.078 ms 64 bytes from 192.1.2.23: icmp_seq=3 ttl=64 time=0.093 ms 64 bytes from 192.1.2.23: icmp_seq=4 ttl=64 time=0.078 ms --- 192.1.2.23 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 91ms rtt min/avg/max/mdev = 0.068/0.079/0.093/0.010 ms kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# # Should show state #4 to indicate it has rekeyed kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# 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-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 roadrun.sh 'ipsec whack --trafficstatus' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 roadrun.sh 'ipsec whack --shuntstatus' <<<<<<<<< /dev/null 2> /dev/null kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# echo done done kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# ../../pluto/bin/ipsec-look.sh ==== cut ==== start raw xfrm state: src 192.1.3.209/32 dst 192.1.2.23/32 \ dir out priority 2088927 ptype main \ tmpl src 192.1.3.209 dst 192.1.2.23\ proto esp reqid 16433 mode tunnel\ src 192.1.2.23/32 dst 192.1.3.209/32 \ dir fwd priority 2088927 ptype main \ tmpl src 192.1.2.23 dst 192.1.3.209\ proto esp reqid 16433 mode tunnel\ src 192.1.2.23/32 dst 192.1.3.209/32 \ dir in priority 2088927 ptype main \ tmpl src 192.1.2.23 dst 192.1.3.209\ proto esp reqid 16433 mode tunnel\ src 192.1.3.209/32 dst 192.1.2.0/24 \ dir out priority 2088935 ptype main \ tmpl src 0.0.0.0 dst 0.0.0.0\ proto esp reqid 0 mode transport\ src 192.1.3.209/32 dst 192.1.3.0/24 \ dir out priority 2088935 ptype main \ tmpl src 0.0.0.0 dst 0.0.0.0\ proto esp reqid 0 mode transport\ src 192.1.2.253/32 dst 192.1.3.209/32 \ dir fwd priority 1564639 ptype main \ src 192.1.2.253/32 dst 192.1.3.209/32 \ dir in priority 1564639 ptype main \ src 192.1.3.209/32 dst 192.1.2.253/32 \ dir out priority 1564639 ptype main \ src 192.1.3.253/32 dst 192.1.3.209/32 \ dir fwd priority 1564639 ptype main \ src 192.1.3.253/32 dst 192.1.3.209/32 \ dir in priority 1564639 ptype main \ src 192.1.3.209/32 dst 192.1.3.253/32 \ dir out priority 1564639 ptype main \ src 192.1.3.254/32 dst 192.1.3.209/32 \ dir fwd priority 1564639 ptype main \ src 192.1.3.254/32 dst 192.1.3.209/32 \ dir in priority 1564639 ptype main \ src 192.1.3.209/32 dst 192.1.3.254/32 \ dir out priority 1564639 ptype main \ src 192.1.2.254/32 dst 192.1.3.209/32 \ dir fwd priority 1564639 ptype main \ src 192.1.2.254/32 dst 192.1.3.209/32 \ dir in priority 1564639 ptype main \ src 192.1.3.209/32 dst 192.1.2.254/32 \ dir out priority 1564639 ptype main \ end raw xfrm state: ==== tuc ==== road Sat Sep 21 07:31:31 UTC 2019 XFRM state: src 192.1.2.23 dst 192.1.3.209 proto esp spi 0x1940da16 reqid 16433 mode tunnel replay-window 32 flag af-unspec aead rfc4106(gcm(aes)) 0xad9acaf924356e8cc7c65edf992fe538d5dfe853e030734e5571ec2ff92e68d3a121e636 128 anti-replay context: seq 0x4, oseq 0x0, bitmap 0x0000000f src 192.1.3.209 dst 192.1.2.23 proto esp spi 0xa668db9b reqid 16433 mode tunnel replay-window 32 flag af-unspec aead rfc4106(gcm(aes)) 0x32f8bcf6a8fd16f1a60bae0eefeba2d28279d77cffb84d08e8abdf3d62155efc99481bf6 128 anti-replay context: seq 0x0, oseq 0x4, bitmap 0x00000000 XFRM policy: src 192.1.2.253/32 dst 192.1.3.209/32 dir fwd priority 1564639 ptype main src 192.1.2.253/32 dst 192.1.3.209/32 dir in priority 1564639 ptype main src 192.1.2.254/32 dst 192.1.3.209/32 dir fwd priority 1564639 ptype main src 192.1.2.254/32 dst 192.1.3.209/32 dir in priority 1564639 ptype main src 192.1.3.209/32 dst 192.1.2.253/32 dir out priority 1564639 ptype main src 192.1.3.209/32 dst 192.1.2.254/32 dir out priority 1564639 ptype main src 192.1.3.209/32 dst 192.1.3.253/32 dir out priority 1564639 ptype main src 192.1.3.209/32 dst 192.1.3.254/32 dir out priority 1564639 ptype main src 192.1.3.253/32 dst 192.1.3.209/32 dir fwd priority 1564639 ptype main src 192.1.3.253/32 dst 192.1.3.209/32 dir in priority 1564639 ptype main src 192.1.3.254/32 dst 192.1.3.209/32 dir fwd priority 1564639 ptype main src 192.1.3.254/32 dst 192.1.3.209/32 dir in priority 1564639 ptype main src 192.1.2.23/32 dst 192.1.3.209/32 dir fwd priority 2088927 ptype main tmpl src 192.1.2.23 dst 192.1.3.209 proto esp reqid 16433 mode tunnel src 192.1.2.23/32 dst 192.1.3.209/32 dir in priority 2088927 ptype main tmpl src 192.1.2.23 dst 192.1.3.209 proto esp reqid 16433 mode tunnel src 192.1.3.209/32 dst 192.1.2.23/32 dir out priority 2088927 ptype main tmpl src 192.1.3.209 dst 192.1.2.23 proto esp reqid 16433 mode tunnel src 192.1.3.209/32 dst 192.1.2.0/24 dir out priority 2088935 ptype main tmpl src 0.0.0.0 dst 0.0.0.0 proto esp reqid 0 mode transport src 192.1.3.209/32 dst 192.1.3.0/24 dir out priority 2088935 ptype main tmpl src 0.0.0.0 dst 0.0.0.0 proto esp reqid 0 mode transport XFRM done IPSEC mangle TABLES NEW_IPSEC_CONN mangle TABLES ROUTING TABLES default via 192.1.3.254 dev eth0 192.1.3.0/24 dev eth0 proto kernel scope link src 192.1.3.209 NSS_CERTIFICATES Certificate Nickname Trust Attributes SSL,S/MIME,JAR/XPI kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# : ==== cut ==== kroot@swantest:/home/build/libreswan/testing/pluto/newoe-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp]# 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-07-ike-replace-initiator-esp\[root@road newoe-07-ike-replace-initiator-esp 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' <<<<<<<<<