/testing/guestbin/swan-prep kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# cp policies/* /etc/ipsec.d/policies/ kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# echo "192.1.3.0/24" >> /etc/ipsec.d/policies/private-or-clear kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# 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. 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. Starting pluto IKE daemon for IPsec: kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# /testing/pluto/bin/wait-until-pluto-started kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# # give OE policies time to load kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# sleep 5 kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# ipsec auto --add passthrough-in 002 added connection description "passthrough-in" kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# ipsec auto --route passthrough-in kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# ipsec auto --add passthrough-out 002 added connection description "passthrough-out" kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# ipsec auto --route passthrough-out kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# echo "initdone" initdone kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# ../../pluto/bin/ipsec-look.sh ==== cut ==== start raw xfrm state: src 192.1.2.23/32 dst 192.1.3.209/32 \ dir out priority 2088927 ptype main \ tmpl src 192.1.2.23 dst 192.1.3.209\ proto esp reqid 16437 mode tunnel\ src 192.1.3.209/32 dst 192.1.2.23/32 \ dir fwd priority 2088927 ptype main \ tmpl src 192.1.3.209 dst 192.1.2.23\ proto esp reqid 16437 mode tunnel\ src 192.1.3.209/32 dst 192.1.2.23/32 \ dir in priority 2088927 ptype main \ tmpl src 192.1.3.209 dst 192.1.2.23\ proto esp reqid 16437 mode tunnel\ src 0.0.0.0/0 dst 192.1.2.23/32 proto tcp sport 22 \ dir fwd priority 843743 ptype main \ src 0.0.0.0/0 dst 192.1.2.23/32 proto tcp sport 22 \ dir in priority 843743 ptype main \ src 192.1.2.23/32 dst 0.0.0.0/0 proto tcp dport 22 \ dir out priority 843743 ptype main \ src 0.0.0.0/0 dst 192.1.2.23/32 proto tcp dport 22 \ dir fwd priority 843743 ptype main \ src 0.0.0.0/0 dst 192.1.2.23/32 proto tcp dport 22 \ dir in priority 843743 ptype main \ src 192.1.2.23/32 dst 0.0.0.0/0 proto tcp sport 22 \ dir out priority 843743 ptype main \ src 192.1.2.23/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.2.23/32 \ dir fwd priority 1564639 ptype main \ src 192.1.2.253/32 dst 192.1.2.23/32 \ dir in priority 1564639 ptype main \ src 192.1.2.23/32 dst 192.1.2.253/32 \ dir out priority 1564639 ptype main \ src 192.1.3.253/32 dst 192.1.2.23/32 \ dir fwd priority 1564639 ptype main \ src 192.1.3.253/32 dst 192.1.2.23/32 \ dir in priority 1564639 ptype main \ src 192.1.2.23/32 dst 192.1.3.253/32 \ dir out priority 1564639 ptype main \ src 192.1.3.254/32 dst 192.1.2.23/32 \ dir fwd priority 1564639 ptype main \ src 192.1.3.254/32 dst 192.1.2.23/32 \ dir in priority 1564639 ptype main \ src 192.1.2.23/32 dst 192.1.3.254/32 \ dir out priority 1564639 ptype main \ src 192.1.2.254/32 dst 192.1.2.23/32 \ dir fwd priority 1564639 ptype main \ src 192.1.2.254/32 dst 192.1.2.23/32 \ dir in priority 1564639 ptype main \ src 192.1.2.23/32 dst 192.1.2.254/32 \ dir out priority 1564639 ptype main \ end raw xfrm state: ==== tuc ==== east Mon Aug 26 13:16:39 UTC 2019 XFRM state: src 192.1.3.209 dst 192.1.2.23 proto esp spi 0xb8d1a880 reqid 16437 mode tunnel replay-window 32 flag af-unspec aead rfc4106(gcm(aes)) 0x499025158e01ec3a5ffdc09b28c7401c6eaa0a0f9d5a7395b96607f30cf827bd05f1eb84 128 anti-replay context: seq 0x2, oseq 0x0, bitmap 0x00000003 src 192.1.2.23 dst 192.1.3.209 proto esp spi 0xa9ebb061 reqid 16437 mode tunnel replay-window 32 flag af-unspec aead rfc4106(gcm(aes)) 0x775ce0027043459b165a7f46ffab101d9c43b3befca2c3e11d089bdb5eaf355006942ef6 128 anti-replay context: seq 0x0, oseq 0x2, bitmap 0x00000000 XFRM policy: src 0.0.0.0/0 dst 192.1.2.23/32 proto tcp dport 22 dir fwd priority 843743 ptype main src 0.0.0.0/0 dst 192.1.2.23/32 proto tcp dport 22 dir in priority 843743 ptype main src 0.0.0.0/0 dst 192.1.2.23/32 proto tcp sport 22 dir fwd priority 843743 ptype main src 0.0.0.0/0 dst 192.1.2.23/32 proto tcp sport 22 dir in priority 843743 ptype main src 192.1.2.23/32 dst 0.0.0.0/0 proto tcp dport 22 dir out priority 843743 ptype main src 192.1.2.23/32 dst 0.0.0.0/0 proto tcp sport 22 dir out priority 843743 ptype main src 192.1.2.23/32 dst 192.1.2.253/32 dir out priority 1564639 ptype main src 192.1.2.23/32 dst 192.1.2.254/32 dir out priority 1564639 ptype main src 192.1.2.23/32 dst 192.1.3.253/32 dir out priority 1564639 ptype main src 192.1.2.23/32 dst 192.1.3.254/32 dir out priority 1564639 ptype main src 192.1.2.253/32 dst 192.1.2.23/32 dir fwd priority 1564639 ptype main src 192.1.2.253/32 dst 192.1.2.23/32 dir in priority 1564639 ptype main src 192.1.2.254/32 dst 192.1.2.23/32 dir fwd priority 1564639 ptype main src 192.1.2.254/32 dst 192.1.2.23/32 dir in priority 1564639 ptype main src 192.1.3.253/32 dst 192.1.2.23/32 dir fwd priority 1564639 ptype main src 192.1.3.253/32 dst 192.1.2.23/32 dir in priority 1564639 ptype main src 192.1.3.254/32 dst 192.1.2.23/32 dir fwd priority 1564639 ptype main src 192.1.3.254/32 dst 192.1.2.23/32 dir in priority 1564639 ptype main src 192.1.2.23/32 dst 192.1.3.209/32 dir out priority 2088927 ptype main tmpl src 192.1.2.23 dst 192.1.3.209 proto esp reqid 16437 mode tunnel src 192.1.3.209/32 dst 192.1.2.23/32 dir fwd priority 2088927 ptype main tmpl src 192.1.3.209 dst 192.1.2.23 proto esp reqid 16437 mode tunnel src 192.1.3.209/32 dst 192.1.2.23/32 dir in priority 2088927 ptype main tmpl src 192.1.3.209 dst 192.1.2.23 proto esp reqid 16437 mode tunnel src 192.1.2.23/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.2.254 dev eth1 192.0.1.0/24 via 192.1.2.45 dev eth1 192.0.2.0/24 dev eth0 proto kernel scope link src 192.0.2.254 192.1.2.0/24 dev eth1 proto kernel scope link src 192.1.2.23 NSS_CERTIFICATES Certificate Nickname Trust Attributes SSL,S/MIME,JAR/XPI kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# # A tunnel should have established kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# grep "negotiated connection" /tmp/pluto.log "private-or-clear#192.1.3.0/24"[1] ...192.1.3.209 #2: negotiated connection [192.1.2.23-192.1.2.23:0-65535 0] -> [192.1.3.209-192.1.3.209:0-65535 0] kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# : ==== cut ==== kroot@swantest:/home/build/libreswan/testing/pluto/newoe-15-portpass\[root@east newoe-15-portpass]# 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-15-portpass\[root@east newoe-15-portpass 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 final.sh 'ipsec auto --status' <<<<<<<<<