/testing/guestbin/swan-prep kroot@swantest:/home/build/libreswan/testing/pluto/xauth-pluto-28-twobehindnat\[root@road xauth-pluto-28-twobehindnat]# 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. 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. 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/xauth-pluto-28-twobehindnat\[root@road xauth-pluto-28-twobehindnat]# /testing/pluto/bin/wait-until-pluto-started kroot@swantest:/home/build/libreswan/testing/pluto/xauth-pluto-28-twobehindnat\[root@road xauth-pluto-28-twobehindnat]# ../bin/block-non-ipsec.sh Another app is currently holding the xtables lock. Perhaps you want to use the -w option? kroot@swantest:/home/build/libreswan/testing/pluto/xauth-pluto-28-twobehindnat\[root@road xauth-pluto-28-twobehindnat 4]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 4 roadinit.sh '../bin/block-non-ipsec.sh' <<<<<<<<<0x9ca82e1d <0xcd6e468d xfrm=AES_CBC_128-HMAC_SHA1_96 NATOA=none NATD=192.1.2.23:4500 DPD=passive username=xroad} kroot@swantest:/home/build/libreswan/testing/pluto/xauth-pluto-28-twobehindnat\[root@road xauth-pluto-28-twobehindnat]# ping -n -c 4 -I 192.0.2.102 192.0.2.254 PING 192.0.2.254 (192.0.2.254) from 192.0.2.102 : 56(84) bytes of data. 64 bytes from 192.0.2.254: icmp_seq=1 ttl=64 time=0.096 ms 64 bytes from 192.0.2.254: icmp_seq=2 ttl=64 time=0.122 ms 64 bytes from 192.0.2.254: icmp_seq=3 ttl=64 time=0.103 ms 64 bytes from 192.0.2.254: icmp_seq=4 ttl=64 time=0.095 ms --- 192.0.2.254 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 82ms rtt min/avg/max/mdev = 0.095/0.104/0.122/0.010 ms kroot@swantest:/home/build/libreswan/testing/pluto/xauth-pluto-28-twobehindnat\[root@road xauth-pluto-28-twobehindnat]# ipsec whack --trafficstatus 006 #2: "road-east", username=xroad, type=ESP, add_time=0, inBytes=336, outBytes=336 kroot@swantest:/home/build/libreswan/testing/pluto/xauth-pluto-28-twobehindnat\[root@road xauth-pluto-28-twobehindnat]# echo done done kroot@swantest:/home/build/libreswan/testing/pluto/xauth-pluto-28-twobehindnat\[root@road xauth-pluto-28-twobehindnat]# # on east this should show 2 sets of in/fwd/out policies kroot@swantest:/home/build/libreswan/testing/pluto/xauth-pluto-28-twobehindnat\[root@road xauth-pluto-28-twobehindnat]# ../../pluto/bin/ipsec-look.sh ==== cut ==== start raw xfrm state: src 192.0.2.102/32 dst 0.0.0.0/0 \ dir out priority 1040383 ptype main \ tmpl src 192.1.3.209 dst 192.1.2.23\ proto esp reqid 16389 mode tunnel\ src 0.0.0.0/0 dst 192.0.2.102/32 \ dir fwd priority 1040383 ptype main \ tmpl src 192.1.2.23 dst 192.1.3.209\ proto esp reqid 16389 mode tunnel\ src 0.0.0.0/0 dst 192.0.2.102/32 \ dir in priority 1040383 ptype main \ tmpl src 192.1.2.23 dst 192.1.3.209\ proto esp reqid 16389 mode tunnel\ end raw xfrm state: ==== tuc ==== road Mon Aug 26 18:36:18 UTC 2019 XFRM state: src 192.1.2.23 dst 192.1.3.209 proto esp spi 0xcd6e468d reqid 16389 mode tunnel replay-window 32 flag af-unspec auth-trunc hmac(sha1) 0x00ba669b7a3bdbd39c8bd0f7e1a7ca5840e8d723 96 enc cbc(aes) 0x4fe5f86c889192ee6745e75628acbf29 encap type espinudp sport 4500 dport 4500 addr 0.0.0.0 anti-replay context: seq 0x4, oseq 0x0, bitmap 0x0000000f src 192.1.3.209 dst 192.1.2.23 proto esp spi 0x9ca82e1d reqid 16389 mode tunnel replay-window 32 flag af-unspec auth-trunc hmac(sha1) 0x6f02642973d88fb82bf56909aeb49c0036238f48 96 enc cbc(aes) 0x14c2412fe66559ce2fdb207b50ddeb03 encap type espinudp sport 4500 dport 4500 addr 0.0.0.0 anti-replay context: seq 0x0, oseq 0x4, bitmap 0x00000000 XFRM policy: src 0.0.0.0/0 dst 192.0.2.102/32 dir fwd priority 1040383 ptype main tmpl src 192.1.2.23 dst 192.1.3.209 proto esp reqid 16389 mode tunnel src 0.0.0.0/0 dst 192.0.2.102/32 dir in priority 1040383 ptype main tmpl src 192.1.2.23 dst 192.1.3.209 proto esp reqid 16389 mode tunnel src 192.0.2.102/32 dst 0.0.0.0/0 dir out priority 1040383 ptype main tmpl src 192.1.3.209 dst 192.1.2.23 proto esp reqid 16389 mode tunnel XFRM done IPSEC mangle TABLES NEW_IPSEC_CONN mangle TABLES ROUTING TABLES 0.0.0.0/1 via 192.1.3.254 dev eth0 src 192.0.2.102 default via 192.1.3.254 dev eth0 128.0.0.0/1 via 192.1.3.254 dev eth0 src 192.0.2.102 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/xauth-pluto-28-twobehindnat\[root@road xauth-pluto-28-twobehindnat]# ../bin/check-for-core.sh kroot@swantest:/home/build/libreswan/testing/pluto/xauth-pluto-28-twobehindnat\[root@road xauth-pluto-28-twobehindnat]# if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi type=AVC msg=audit(1566844133.486:265910): avc: denied { write } for pid=7504 comm="ip" path="/tmp/pluto.log" dev="dm-0" ino=295084539 scontext=unconfined_u:system_r:ifconfig_t:s0 tcontext=unconfined_u:object_r:container_file_t:s0:c718,c778 tclass=file permissive=1 type=AVC msg=audit(1566844133.996:266013): avc: denied { write } for pid=8463 comm="ip" path="/tmp/pluto.log" dev="dm-0" ino=63889669 scontext=unconfined_u:system_r:ifconfig_t:s0 tcontext=unconfined_u:object_r:container_file_t:s0:c718,c778 tclass=file permissive=1 kroot@swantest:/home/build/libreswan/testing/pluto/xauth-pluto-28-twobehindnat\[root@road xauth-pluto-28-twobehindnat]# : ==== end ==== kroot@swantest:/home/build/libreswan/testing/pluto/xauth-pluto-28-twobehindnat\[root@road xauth-pluto-28-twobehindnat]#