/testing/guestbin/swan-prep --x509
Preparing X.509 files
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# 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.
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/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# /testing/pluto/bin/wait-until-pluto-started
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# ipsec auto --add northnet-eastnet-ipv4
002 added connection description "northnet-eastnet-ipv4"
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# ipsec auto --status | grep northnet-eastnet-ipv4
000 "northnet-eastnet-ipv4": 192.0.3.0/24===192.1.3.33<192.1.3.33>[@north]...192.1.2.23<192.1.2.23>[@east]===192.0.2.0/24; unrouted; eroute owner: #0
000 "northnet-eastnet-ipv4":     oriented; my_ip=unset; their_ip=unset; my_updown=ipsec _updown;
000 "northnet-eastnet-ipv4":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
000 "northnet-eastnet-ipv4":   our auth:rsasig, their auth:rsasig
000 "northnet-eastnet-ipv4":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, banner:unset, cat:unset;
000 "northnet-eastnet-ipv4":   labeled_ipsec:no;
000 "northnet-eastnet-ipv4":   policy_label:unset;
000 "northnet-eastnet-ipv4":   ike_life: 50s; ipsec_life: 180s; replay_window: 32; rekey_margin: 5s; rekey_fuzz: 100%; keyingtries: 0;
000 "northnet-eastnet-ipv4":   retransmit-interval: 500ms; retransmit-timeout: 60s;
000 "northnet-eastnet-ipv4":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
000 "northnet-eastnet-ipv4":   policy: RSASIG+ENCRYPT+TUNNEL+PFS+IKEV2_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO;
000 "northnet-eastnet-ipv4":   conn_prio: 24,24; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
000 "northnet-eastnet-ipv4":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:auto;
000 "northnet-eastnet-ipv4":   our idtype: ID_FQDN; our id=@north; their idtype: ID_FQDN; their id=@east
000 "northnet-eastnet-ipv4":   dpd: action:hold; delay:0; timeout:0; nat-t: encaps:auto; nat_keepalive:yes; ikev1_natt:both
000 "northnet-eastnet-ipv4":   newest ISAKMP SA: #0; newest IPsec SA: #0;
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# echo "initdone"
initdone
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# ipsec auto --up northnet-eastnet-ipv4
002 "northnet-eastnet-ipv4" #1: initiating v2 parent SA
181 "northnet-eastnet-ipv4" #1: initiate
002 "northnet-eastnet-ipv4": constructed local IKE proposals for northnet-eastnet-ipv4 (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519
181 "northnet-eastnet-ipv4" #1: STATE_PARENT_I1: sent v2I1, expected v2R1
003 "northnet-eastnet-ipv4" #1: Can't find the certificate or private key from the NSS CKA_ID
003 "northnet-eastnet-ipv4" #1: Failed to find our RSA key
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# ping -n -c 2 -I 192.0.3.254 192.0.2.254
PING 192.0.2.254 (192.0.2.254) from 192.0.3.254 : 56(84) bytes of data.
64 bytes from 192.0.2.254: icmp_seq=1 ttl=63 time=0.039 ms
64 bytes from 192.0.2.254: icmp_seq=2 ttl=63 time=0.041 ms

--- 192.0.2.254 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 18ms
rtt min/avg/max/mdev = 0.039/0.040/0.041/0.001 ms
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# ipsec whack --trafficstatus
whack: is Pluto running?  connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused)
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 northrun.sh 'ipsec whack --trafficstatus' <<<<<<<<<<tuc<<<<<<<<<<# waiting 2 minutes in chunks of 15 seconds
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 northrun.sh '# waiting 2 minutes in chunks of 15 seconds' <<<<<<<<<<tuc<<<<<<<<<<sleep 15
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# sleep 15
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# sleep 15
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# sleep 15
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# echo one minute
one minute
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# sleep 15
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# sleep 15
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# sleep 15
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# sleep 15
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# echo two minutes
two minutes
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# ipsec auto --status | grep northnet-eastnet-ipv4
whack: is Pluto running?  connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused)
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start 1]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 northrun.sh 'ipsec auto --status | grep northnet-eastnet-ipv4' <<<<<<<<<<tuc<<<<<<<<<<ping -n -c 2 -I 192.0.3.254 192.0.2.254
PING 192.0.2.254 (192.0.2.254) from 192.0.3.254 : 56(84) bytes of data.
64 bytes from 192.0.2.254: icmp_seq=1 ttl=63 time=0.061 ms
64 bytes from 192.0.2.254: icmp_seq=2 ttl=63 time=0.036 ms

--- 192.0.2.254 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 64ms
rtt min/avg/max/mdev = 0.036/0.048/0.061/0.014 ms
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# echo done
done
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# ipsec whack --trafficstatus
whack: is Pluto running?  connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused)
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 final.sh 'ipsec whack --trafficstatus' <<<<<<<<<<tuc<<<<<<<<<<: ==== cut ====
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# ipsec look # ../../pluto/bin/ipsec-look.sh
north Sat Sep 21 07:18:57 UTC 2019
XFRM state:
XFRM policy:
XFRM done
IPSEC mangle TABLES
NEW_IPSEC_CONN mangle TABLES
ROUTING TABLES
default via 192.1.3.254 dev eth1
192.0.3.0/24 dev eth0 proto kernel scope link src 192.0.3.254
192.1.3.0/24 dev eth1 proto kernel scope link src 192.1.3.33
NSS_CERTIFICATES

Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI

Libreswan test CA for mainca - Libreswan                     CT,, 
east                                                         P,,  
east-ec                                                      P,,  
hashsha1                                                     P,,  
nic                                                          P,,  
north                                                        u,u,u
road                                                         P,,  
west                                                         P,,  
west-ec                                                      P,,  
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# ipsec auto --status
whack: is Pluto running?  connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused)
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 final.sh 'ipsec auto --status' <<<<<<<<<<tuc<<<<<<<<<<: ==== tuc ====
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# ../bin/check-for-core.sh
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]# if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start 1]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 final.sh 'if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi' <<<<<<<<<<tuc<<<<<<<<<<: ==== end ====
kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-19-x509-auto-start\[root@north ikev2-19-x509-auto-start]#