/testing/guestbin/swan-prep kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# 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. Redirecting to: namespaces direct start via ipsec pluto kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# /testing/pluto/bin/wait-until-pluto-started kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# ipsec auto --add west-east 002 added connection description "west-east" kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# echo "initdone" initdone kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# #!/bin/sh kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# # we can transmit in the clear kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# ping -q -c 8 -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 --- 8 packets transmitted, 8 received, 0% packet loss, time 160ms rtt min/avg/max/mdev = 0.032/0.043/0.063/0.010 ms kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# # bring up the tunnel kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# ipsec auto --up west-east 002 "west-east" #1: initiating Main Mode 102 "west-east" #1: STATE_MAIN_I1: initiate 104 "west-east" #1: STATE_MAIN_I2: sent MI2, expecting MR2 106 "west-east" #1: STATE_MAIN_I3: sent MI3, expecting MR3 002 "west-east" #1: Peer ID is ID_FQDN: '@east' 003 "west-east" #1: Authenticated using RSA 004 "west-east" #1: STATE_MAIN_I4: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048} 002 "west-east" #2: initiating Quick Mode RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO {using isakmp#1 msgid:088574e2 proposal=defaults pfsgroup=MODP2048} 115 "west-east" #2: STATE_QUICK_I1: initiate 004 "west-east" #2: STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode {ESP=>0x6394b7f8 <0x7ec0bb48 xfrm=AES_CBC_128-HMAC_SHA1_96 NATOA=none NATD=none DPD=passive} kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# # use the tunnel kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# ping -q -c 8 -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 --- 8 packets transmitted, 8 received, 0% packet loss, time 153ms rtt min/avg/max/mdev = 0.053/0.072/0.082/0.010 ms kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# # show the tunnel! kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# echo "Tunnel should be up" Tunnel should be up kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# ipsec whack --trafficstatus 006 #2: "west-east", type=ESP, add_time=0, inBytes=672, outBytes=672, id='@east' kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# # Let R_U_THERE packets flow kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# echo "Waiting 15 seconds..." Waiting 15 seconds... kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# sleep 15 kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# echo "Setting up block via iptables" Setting up block via iptables kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# iptables -I INPUT -s 192.1.2.23/32 -d 0/0 -j DROP kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# iptables -I OUTPUT -d 192.1.2.23/32 -s 0/0 -j DROP kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# : ==== cut ==== kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# sleep 10 kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# ipsec whack --trafficstatus 006 #2: "west-east", type=ESP, add_time=1569051202, inBytes=672, outBytes=672, id='@east' kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# sleep 10 kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# ipsec whack --trafficstatus 006 #2: "west-east", type=ESP, add_time=1569051202, inBytes=672, outBytes=672, id='@east' kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# sleep 10 kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# : ==== tuc ==== kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# # DPD should have triggered now kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# echo "Tunnel should be still be up because we don't do DPD" Tunnel should be still be up because we don't do DPD kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# ipsec whack --trafficstatus 006 #2: "west-east", type=ESP, add_time=1569051202, inBytes=672, outBytes=672, id='@east' kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# # Remove the Blockage kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# echo "Removing block" Removing block kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# iptables -D INPUT -s 192.1.2.23/32 -d 0/0 -j DROP kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# iptables -D OUTPUT -d 192.1.2.23/32 -s 0/0 -j DROP kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# sleep 10 kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02]# ping -q -c 8 -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 --- 8 packets transmitted, 0 received, 100% packet loss, time 210ms kroot@swantest:/home/build/libreswan/testing/pluto/dpd-02\[root@west dpd-02 1]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 westrun.sh 'ping -q -c 8 -n 192.1.2.23' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 westrun.sh '# Tunnel should be still be up, east rekeyed it' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 westrun.sh 'ipsec whack --trafficstatus' <<<<<<<<<>>>>>>>>>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' <<<<<<<<<