/testing/guestbin/swan-prep kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# 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. 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. 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/dpd-07\[root@west dpd-07]# /testing/pluto/bin/wait-until-pluto-started kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# ipsec auto --add west-east 002 added connection description "west-east" kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# echo "initdone" initdone kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# # we can transmit in the clear kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# 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 78ms rtt min/avg/max/mdev = 0.038/0.052/0.061/0.011 ms kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# # bring up the tunnel kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# ipsec auto --up west-east 003 "west-east" #1: multiple DH groups in aggressive mode can cause interop failure 003 "west-east" #1: Deleting previous proposal in the hopes of selecting DH 2 or DH 5 002 "west-east" #1: initiating Aggressive Mode 003 "west-east" #1: multiple DH groups in aggressive mode can cause interop failure 003 "west-east" #1: Deleting previous proposal in the hopes of selecting DH 2 or DH 5 110 "west-east" #1: STATE_AGGR_I1: initiate 002 "west-east" #1: Peer ID is ID_FQDN: '@east' 002 "west-east" #1: Peer ID is ID_FQDN: '@east' 003 "west-east" #1: Authenticated using RSA 004 "west-east" #1: STATE_AGGR_I2: sent AI2, ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA1 group=MODP1536} 002 "west-east" #2: initiating Quick Mode RSASIG+ENCRYPT+TUNNEL+PFS+UP+AGGRESSIVE+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO {using isakmp#1 msgid:7bfd0dfc proposal=defaults pfsgroup=MODP1536} 115 "west-east" #2: STATE_QUICK_I1: initiate 004 "west-east" #2: STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode {ESP=>0x2b3867b9 <0xeece05e2 xfrm=AES_CBC_128-HMAC_SHA1_96 NATOA=none NATD=none DPD=active} kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# # use the tunnel kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# 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 106ms rtt min/avg/max/mdev = 0.076/0.082/0.089/0.005 ms kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# # show the tunnel! kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# echo "Tunnel should be up" Tunnel should be up kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# ipsec whack --trafficstatus 006 #2: "west-east", type=ESP, add_time=1566825694, inBytes=336, outBytes=336, id='@east' kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# # Let R_U_THERE packets flow kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# echo "Waiting 15 seconds..." Waiting 15 seconds... kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# sleep 15 kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# echo "Setting up block via iptables" Setting up block via iptables kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# iptables -I INPUT -s 192.1.2.23/32 -d 0/0 -j DROP kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# iptables -I OUTPUT -d 192.1.2.23/32 -s 0/0 -j DROP kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# : ==== cut ==== kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# sleep 10 kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# ipsec whack --trafficstatus 006 #2: "west-east", type=ESP, add_time=1566825694, inBytes=336, outBytes=336, id='@east' kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# sleep 10 kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# ipsec whack --trafficstatus kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# sleep 10 kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# : ==== tuc ==== kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# # DPD should have triggered now kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# echo "Tunnel should be down" Tunnel should be down kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# ipsec whack --trafficstatus kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# # Remove the Blockage kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# echo "Removing block" Removing block kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# iptables -D INPUT -s 192.1.2.23/32 -d 0/0 -j DROP kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# iptables -D OUTPUT -d 192.1.2.23/32 -s 0/0 -j DROP kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# sleep 20 kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# sleep 20 kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# 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 78ms rtt min/avg/max/mdev = 0.068/0.359/1.075/0.415 ms kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# # Tunnel should be back up now kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# echo "Tunnel should be up" Tunnel should be up kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07]# ipsec whack --trafficstatus whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) kroot@swantest:/home/build/libreswan/testing/pluto/dpd-07\[root@west dpd-07 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 westrun.sh 'ipsec whack --trafficstatus' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 final.sh 'ipsec auto --status' <<<<<<<<<