/testing/guestbin/swan-prep kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# 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. 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. Starting pluto IKE daemon for IPsec: kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# /testing/pluto/bin/wait-until-pluto-started kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# # left as example/test for manually calling whack kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# ipsec whack --label 'SAwest-east leftrsasigkey' --keyid "@west" --pubkeyrsa "0sAQOm9dY/449sAWr8e3xtV4tJOQ1396zihfGYHkttpT6zlprRmVq8EPKX3vIo+V+SCfDI1BLkYG6cYJgQAX0mt4+VYi2H3c3e9tOPNbBQ0Bj1mfgE8f9hW7x/H8AE2OSMrDStesHaPC2MMK7WPFmxOpTT1Spzkb1ZXz5yv0obncWyK03nDSQ+d/l/LdadKe9wfXptorhhDEsJSgZxhHCFmo9SoYAG/cb8Pif6Fvoyg6nKgNsPSr/36VWOvSlNI6bcKrNdYqkhHr6D2Gk8AwpIjtM6EfKGWtEwZb3I9IOH/wSHMwVP4NiM/rMZTN2FQPNNbuhJFAYsH1lZBY8gsMpGP8kgfgQwfZqAbD8KiffTr9gVBDf5" kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# ipsec whack --label 'SAwest-east rightrsasigkey' --keyid "@east" --pubkeyrsa "0sAQO9bJbr33iJs+13DaF/e+UWwsnkfZIKkJ1VQ7RiEwOFeuAme1QfygmTz/8lyQJMeMqU5T6s0fmo5bt/zCCE4CHJ8A3FRLrzSGRhWPYPYw3SZx5Zi+zzUDlx+znaEWS2Ys1f040uwVDtnG4iDDmnzmK1r4qADy5MBVyCx40pAi67I1/b8p61feIgcBpj845drEfwXCZOsdBCYFJKsHclzuCYK0P0x1kaZAGD6k7jGiqSuFWrY91LcEcp3Om0YL9DTViPZHOVcKw1ibLCnNRiwF9WX60b5d1Jk2r1I4Lt1OfV8VXyLaImpjZTL5T7mSJcR8xtgDCIljgM9fLtN9AJ1QePae+pmc5NGneeOcQ488VRUUjv" kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# ipsec whack --name SAwest-east --ikev1-allow --encrypt --tunnel --pfs --rsasig --host "192.1.2.45" --nexthop "192.1.2.23" --updown "ipsec _updown" --id "@west" --to --host "192.1.2.23" --nexthop "192.1.2.45" --updown "ipsec _updown" --id "@east" --ipseclifetime "28800" --keyingtries "3" --no-esn 002 added connection description "SAwest-east" kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# # we can transmit in the clear kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# ping -q -c 4 -n 192.1.2.23 PING 192.1.2.23 (192.1.2.23) 56(84) bytes of data. --- 192.1.2.23 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 77ms rtt min/avg/max/mdev = 0.076/0.098/0.111/0.013 ms kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# # bring up the tunnel kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# ipsec auto --up SAwest-east 002 "SAwest-east" #1: initiating Main Mode 102 "SAwest-east" #1: STATE_MAIN_I1: initiate 104 "SAwest-east" #1: STATE_MAIN_I2: sent MI2, expecting MR2 106 "SAwest-east" #1: STATE_MAIN_I3: sent MI3, expecting MR3 002 "SAwest-east" #1: Peer ID is ID_FQDN: '@east' 003 "SAwest-east" #1: Authenticated using RSA 004 "SAwest-east" #1: STATE_MAIN_I4: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048} 002 "SAwest-east" #2: initiating Quick Mode RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+ESN_NO {using isakmp#1 msgid:e3b6b2dc proposal=defaults pfsgroup=MODP2048} 115 "SAwest-east" #2: STATE_QUICK_I1: initiate 004 "SAwest-east" #2: STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode {ESP=>0x33d09217 <0xeada357f xfrm=AES_CBC_128-HMAC_SHA1_96 NATOA=none NATD=none DPD=passive} kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# # use the tunnel kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# ping -q -c 4 -n 192.1.2.23 PING 192.1.2.23 (192.1.2.23) 56(84) bytes of data. --- 192.1.2.23 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 70ms rtt min/avg/max/mdev = 0.063/0.133/0.223/0.067 ms kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# # show the tunnel! kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# ipsec whack --trafficstatus 006 #2: "SAwest-east", type=ESP, add_time=0, inBytes=336, outBytes=336, id='@east' kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# # "Time to shut down my computer!"... kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# ipsec whack --shutdown 002 shutting down kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# # ...but unless the delete SA is acknowledged, this ping will fail, kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# # as our peer still routed us kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# sleep 5 kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# ping -q -c 4 -n 192.1.2.23 PING 192.1.2.23 (192.1.2.23) 56(84) bytes of data. --- 192.1.2.23 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 77ms rtt min/avg/max/mdev = 0.038/0.042/0.048/0.006 ms kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# echo done done kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# ../../pluto/bin/ipsec-look.sh ==== cut ==== start raw xfrm state: end raw xfrm state: ==== tuc ==== west Mon Aug 26 13:24:22 UTC 2019 XFRM state: XFRM policy: 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 dev eth0 proto kernel scope link src 192.0.1.254 192.0.2.0/24 via 192.1.2.23 dev eth1 192.1.2.0/24 dev eth1 proto kernel scope link src 192.1.2.45 NSS_CERTIFICATES Certificate Nickname Trust Attributes SSL,S/MIME,JAR/XPI kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# # up to 3.26 we printed a bogus message, this is checking that no longer happens kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01]# grep "received and ignored empty informational" /tmp/pluto.log kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-01\[root@west delete-sa-01 1]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 final.sh 'grep "received and ignored empty informational" /tmp/pluto.log' <<<<<<<<<>>>>>>>>>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' <<<<<<<<<