--- west.console.txt 1970-01-01 00:00:00.000000000 +0000 +++ OUTPUT/west.console.txt 2019-09-21 07:38:20.801375208 +0000 @@ -0,0 +1,173 @@ +/testing/guestbin/swan-prep +west # + # confirm that the network is alive +west # + ../../pluto/bin/wait-until-alive -I 192.0.1.254 192.0.2.254 +destination -I 192.0.1.254 192.0.2.254 is alive +west # + # ensure that clear text does not get through +west # + iptables -A INPUT -i eth1 -s 192.0.2.0/24 -j LOGDROP +west # + # confirm clear text does not get through +west # + ../../pluto/bin/ping-once.sh --down -I 192.0.1.254 192.0.2.254 +down +west # + ipsec start +Redirecting to: [initsystem] +west # + /testing/pluto/bin/wait-until-pluto-started +west # + ipsec auto --add labeled +002 added connection description "labeled" +west # + echo "initdone" +initdone +west # + # for port re-use in tests with protoport selectors +west # + echo 1 >/proc/sys/net/ipv4/tcp_tw_reuse +west # + ipsec auto --up labeled +002 "labeled" #1: initiating Main Mode +1v1 "labeled" #1: STATE_MAIN_I1: initiate +1v1 "labeled" #1: STATE_MAIN_I2: sent MI2, expecting MR2 +1v1 "labeled" #1: STATE_MAIN_I3: sent MI3, expecting MR3 +002 "labeled" #1: Peer ID is ID_FQDN: '@east' +003 "labeled" #1: Authenticated using RSA +004 "labeled" #1: STATE_MAIN_I4: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048} +002 "labeled" #2: initiating Quick Mode RSASIG+AUTHENTICATE+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO +1v1 "labeled" #2: STATE_QUICK_I1: initiate +003 "labeled" #2: ERROR: netlink XFRM_MSG_UPDPOLICY response for flow esp.ESPSPIi@192.1.2.45 included errno 22: Invalid argument +002 "labeled" #2: raw_eroute() in setup_half_ipsec_sa() failed to add inbound +003 "labeled" #2: ERROR: netlink XFRM_MSG_UPDPOLICY response for flow ah.AHSPIi@192.1.2.23 included errno 22: Invalid argument +003 "labeled" #2: ERROR: netlink XFRM_MSG_DELPOLICY response for flow esp.ESPSPIi@192.1.2.45 included errno 22: Invalid argument +003 "labeled" #2: ERROR: netlink XFRM_MSG_DELPOLICY response for flow esp.ESPSPIi@192.1.2.45 included errno 22: Invalid argument +002 "labeled" #2: raw_eroute in teardown_half_ipsec_sa() failed to delete inbound +032 "labeled" #2: STATE_QUICK_I1: internal error +002 "labeled" #2: deleting state (STATE_QUICK_I1) and NOT sending notification +003 "labeled" #2: ERROR: netlink response for Del SA ah.AHSPIi@192.1.2.23 included errno 3: No such process +003 "labeled" #2: ERROR: netlink XFRM_MSG_DELPOLICY response for flow esp.ESPSPIi@192.1.2.45 included errno 22: Invalid argument +003 "labeled" #2: ERROR: netlink XFRM_MSG_DELPOLICY response for flow esp.ESPSPIi@192.1.2.45 included errno 22: Invalid argument +002 "labeled" #2: raw_eroute in teardown_half_ipsec_sa() failed to delete inbound +003 "labeled" #2: ERROR: netlink response for Del SA ah.AHSPIi@192.1.2.45 included errno 3: No such process +west # + echo test | nc -p 4301 -vvv 192.0.1.254 4300 +Ncat: Version 7.70 ( https://nmap.org/ncat ) +NCAT DEBUG: Using system default trusted CA certificates and those in PATH/share/ncat/ca-bundle.crt. +NCAT DEBUG: Unable to load trusted CA certificates from PATH/share/ncat/ca-bundle.crt: error:02001002:system library:fopen:No such file or directory +libnsock nsock_iod_new2(): nsock_iod_new (IOD #1) +libnsock nsock_connect_tcp(): TCP connection requested to 192.0.1.254:4300 (IOD #1) EID 8 +libnsock mksock_bind_addr(): Binding to 0.0.0.0:4301 (IOD #1) +libnsock nsock_trace_handler_callback(): Callback: CONNECT ERROR [Connection refused (111)] for EID 8 [192.0.1.254:4300] +Ncat: Connection refused. +west # + echo done +done +west # + ../../pluto/bin/ipsec-look.sh +west NOW +XFRM state: +XFRM policy: +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 dev eth0 proto kernel scope link src 192.0.1.254 +192.0.2.0/24 via 192.1.2.23 dev eth1 +192.1.2.0/24 dev eth1 proto kernel scope link src 192.1.2.45 +NSS_CERTIFICATES +Certificate Nickname Trust Attributes + SSL,S/MIME,JAR/XPI +west # +west # + ipsec whack --shutdown +002 shutting down +west # +west # + ../bin/check-for-core.sh +CORE FOUND: /tmp/core.west.pluto.2971 +[New LWP 2971] +[Thread debugging using libthread_db enabled] +Using host libthread_db library "/lib64/libthread_db.so.1". +Core was generated by `PATH/libexec/ipsec/pluto --config /etc/ipsec.conf'. +Program terminated with signal SIGSEGV, Segmentation fault. +#0 0x0000000000000000 in ?? () +#0 0x0000000000000000 in ?? () +#1 0x00007fcef6aa44d5 in time () from PATH/lib64/faketime/libfaketime.so.1 +#2 0x00007fcef5c9f4cd in ?? () from /lib64/libcrypto.so.1.1 +#3 0x00007fcef5c9e741 in ?? () from /lib64/libcrypto.so.1.1 +#4 0x00007fcef5c9c8de in RAND_DRBG_instantiate () from /lib64/libcrypto.so.1.1 +#5 0x00007fcef5c9d81b in ?? () from /lib64/libcrypto.so.1.1 +#6 0x00007fcef5c9d8b7 in ?? () from /lib64/libcrypto.so.1.1 +#7 0x00007fcef66d2e7f in __pthread_once_slow () from /lib64/libpthread.so.0 +#8 0x00007fcef5cdbedd in CRYPTO_THREAD_run_once () from /lib64/libcrypto.so.1.1 +#9 0x00007fcef5c9dc69 in RAND_DRBG_get0_private () from /lib64/libcrypto.so.1.1 +#10 0x00007fcef5c9ef75 in RAND_priv_bytes () from /lib64/libcrypto.so.1.1 +#11 0x00007fcef5bb3cbd in ?? () from /lib64/libcrypto.so.1.1 +#12 0x00007fcef5bb3eae in ?? () from /lib64/libcrypto.so.1.1 +#13 0x00007fcef5ba800e in BN_BLINDING_create_param () from /lib64/libcrypto.so.1.1 +#14 0x00007fcef5ca7311 in RSA_setup_blinding () from /lib64/libcrypto.so.1.1 +#15 0x00007fcef5cab613 in ?? () from /lib64/libcrypto.so.1.1 +#16 0x00007fcef5cac960 in ?? () from /lib64/libcrypto.so.1.1 +#17 0x00007fcef5cafa3c in RSA_sign () from /lib64/libcrypto.so.1.1 +#18 0x00007fcef5cae7fa in ?? () from /lib64/libcrypto.so.1.1 +#19 0x00007fcef5c61c7e in EVP_DigestSignFinal () from /lib64/libcrypto.so.1.1 +#20 0x00007fcef5c6cf5f in ?? () from /lib64/libcrypto.so.1.1 +#21 0x00007fcef5c6d8a0 in ?? () from /lib64/libcrypto.so.1.1 +#22 0x00007fcef5c6ce31 in FIPS_selftest () from /lib64/libcrypto.so.1.1 +#23 0x00007fcef5c6815f in ?? () from /lib64/libcrypto.so.1.1 +#24 0x00007fcef5b68073 in ?? () from /lib64/libcrypto.so.1.1 +#25 0x00007fcef6cbbf5a in call_init.part () from /lib64/ld-linux-x86-64.so.2 +#26 0x00007fcef6cbc061 in _dl_init () from /lib64/ld-linux-x86-64.so.2 +#27 0x00007fcef6cad14a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2 +#28 0x0000000000000003 in ?? () +#29 0x00007ffd1005ebda in ?? () +#30 0x00007ffd1005ebf9 in ?? () +#31 0x00007ffd1005ec02 in ?? () +#32 0x0000000000000000 in ?? () +CORE FOUND: /tmp/core.west.pluto.3263 +[New LWP 3263] +[Thread debugging using libthread_db enabled] +Using host libthread_db library "/lib64/libthread_db.so.1". +Core was generated by `PATH/libexec/ipsec/pluto --config /etc/ipsec.conf'. +Program terminated with signal SIGSEGV, Segmentation fault. +#0 0x0000000000000000 in ?? () +#0 0x0000000000000000 in ?? () +#1 0x00007fc3680e84d5 in time () from PATH/lib64/faketime/libfaketime.so.1 +#2 0x00007fc3672e34cd in ?? () from /lib64/libcrypto.so.1.1 +#3 0x00007fc3672e2741 in ?? () from /lib64/libcrypto.so.1.1 +#4 0x00007fc3672e08de in RAND_DRBG_instantiate () from /lib64/libcrypto.so.1.1 +#5 0x00007fc3672e181b in ?? () from /lib64/libcrypto.so.1.1 +#6 0x00007fc3672e18b7 in ?? () from /lib64/libcrypto.so.1.1 +#7 0x00007fc367d16e7f in __pthread_once_slow () from /lib64/libpthread.so.0 +#8 0x00007fc36731fedd in CRYPTO_THREAD_run_once () from /lib64/libcrypto.so.1.1 +#9 0x00007fc3672e1c69 in RAND_DRBG_get0_private () from /lib64/libcrypto.so.1.1 +#10 0x00007fc3672e2f75 in RAND_priv_bytes () from /lib64/libcrypto.so.1.1 +#11 0x00007fc3671f7cbd in ?? () from /lib64/libcrypto.so.1.1 +#12 0x00007fc3671f7eae in ?? () from /lib64/libcrypto.so.1.1 +#13 0x00007fc3671ec00e in BN_BLINDING_create_param () from /lib64/libcrypto.so.1.1 +#14 0x00007fc3672eb311 in RSA_setup_blinding () from /lib64/libcrypto.so.1.1 +#15 0x00007fc3672ef613 in ?? () from /lib64/libcrypto.so.1.1 +#16 0x00007fc3672f0960 in ?? () from /lib64/libcrypto.so.1.1 +#17 0x00007fc3672f3a3c in RSA_sign () from /lib64/libcrypto.so.1.1 +#18 0x00007fc3672f27fa in ?? () from /lib64/libcrypto.so.1.1 +#19 0x00007fc3672a5c7e in EVP_DigestSignFinal () from /lib64/libcrypto.so.1.1 +#20 0x00007fc3672b0f5f in ?? () from /lib64/libcrypto.so.1.1 +#21 0x00007fc3672b18a0 in ?? () from /lib64/libcrypto.so.1.1 +#22 0x00007fc3672b0e31 in FIPS_selftest () from /lib64/libcrypto.so.1.1 +#23 0x00007fc3672ac15f in ?? () from /lib64/libcrypto.so.1.1 +#24 0x00007fc3671ac073 in ?? () from /lib64/libcrypto.so.1.1 +#25 0x00007fc3682fff5a in call_init.part () from /lib64/ld-linux-x86-64.so.2 +#26 0x00007fc368300061 in _dl_init () from /lib64/ld-linux-x86-64.so.2 +#27 0x00007fc3682f114a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2 +#28 0x0000000000000003 in ?? () +#29 0x00007ffdeb7bbbc2 in ?? () +#30 0x00007ffdeb7bbbe1 in ?? () +#31 0x00007ffdeb7bbbea in ?? () +#32 0x0000000000000000 in ?? () +west # + if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi +