--- road.console.txt 2019-09-20 17:49:12.288191784 +0000 +++ OUTPUT/road.console.txt 2019-09-21 07:23:28.848861789 +0000 @@ -38,10 +38,8 @@ road # ping -n -c 2 -I 192.1.3.209 192.1.2.23 PING 192.1.2.23 (192.1.2.23) from 192.1.3.209 : 56(84) bytes of data. -64 bytes from 192.1.2.23: icmp_seq=2 ttl=64 time=0.XXX ms --- 192.1.2.23 ping statistics --- -2 packets transmitted, 1 received, 50% packet loss, time XXXX -rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms +2 packets transmitted, 0 received, 100% packet loss, time XXXX road # # wait on OE IKE negotiation road # @@ -50,50 +48,23 @@ # should show established tunnel and no bare shunts road # ipsec whack --trafficstatus -006 #2: "private-or-clear#192.1.2.0/24"[1] 10.0.10.1/32=== ...192.1.2.23, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org', lease=10.0.10.1/32 +whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) road # ipsec whack --shuntstatus -000 Bare Shunt list: -000 +whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) road # ../../pluto/bin/ipsec-look.sh road NOW XFRM state: -src 192.1.2.23 dst 192.1.3.209 - proto esp spi 0xSPISPI reqid REQID mode tunnel - replay-window 32 flag af-unspec - aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128 - encap type espinudp sport 4500 dport 4500 addr 0.0.0.0 -src 192.1.3.209 dst 192.1.2.23 - proto esp spi 0xSPISPI reqid REQID mode tunnel - replay-window 32 flag af-unspec - aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128 - encap type espinudp sport 4500 dport 4500 addr 0.0.0.0 src 192.1.3.209 dst 192.1.2.23 proto esp spi 0xSPISPI reqid REQID mode transport replay-window 0 sel src 192.1.3.209/32 dst 192.1.2.23/32 proto icmp type 8 code 0 dev eth0 XFRM policy: -src 10.0.10.1/32 dst 192.1.2.23/32 - dir out priority 1564639 ptype main - tmpl src 192.1.3.209 dst 192.1.2.23 - proto esp reqid REQID mode tunnel -src 192.1.2.23/32 dst 10.0.10.1/32 - dir fwd priority 1564639 ptype main - tmpl src 192.1.2.23 dst 192.1.3.209 - proto esp reqid REQID mode tunnel -src 192.1.2.23/32 dst 10.0.10.1/32 - dir in priority 1564639 ptype main - tmpl src 192.1.2.23 dst 192.1.3.209 - proto esp reqid REQID mode tunnel src 192.1.2.253/32 dst 192.1.3.209/32 dir fwd priority 1564639 ptype main src 192.1.2.253/32 dst 192.1.3.209/32 dir in priority 1564639 ptype main -src 192.1.3.209/32 dst 192.1.2.23/32 - dir out priority 1564639 ptype main - tmpl src 192.1.3.209 dst 192.1.2.23 - proto esp reqid REQID mode tunnel src 192.1.3.209/32 dst 192.1.2.253/32 dir out priority 1564639 ptype main src 192.1.3.209/32 dst 192.1.3.253/32 @@ -112,6 +83,8 @@ dir out priority 1564647 ptype main tmpl src 0.0.0.0 dst 0.0.0.0 proto esp reqid REQID mode transport +src 192.1.3.209/32 dst 192.1.2.23/32 + dir out priority 1564647 ptype main XFRM done IPSEC mangle TABLES NEW_IPSEC_CONN mangle TABLES @@ -132,14 +105,12 @@ iptables -t nat -L -n Chain PREROUTING (policy ACCEPT) target prot opt source destination -DNAT all -- 192.1.2.23 10.0.10.1 policy match dir in pol ipsec to:192.1.3.209 Chain INPUT (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination -SNAT all -- 0.0.0.0/0 192.1.2.23 policy match dir out pol ipsec to:10.0.10.1 road # killall ip > /dev/null 2> /dev/null road # @@ -149,11 +120,8 @@ road # ping -n -c 2 -I 192.1.3.209 192.1.2.23 PING 192.1.2.23 (192.1.2.23) from 192.1.3.209 : 56(84) bytes of data. -64 bytes from 192.1.2.23: icmp_seq=1 ttl=64 time=0.XXX ms -64 bytes from 192.1.2.23: icmp_seq=2 ttl=64 time=0.XXX ms --- 192.1.2.23 ping statistics --- -2 packets transmitted, 2 received, 0% packet loss, time XXXX -rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms +2 packets transmitted, 0 received, 100% packet loss, time XXXX road # echo done done @@ -161,16 +129,65 @@ # A tunnel should have established with non-zero byte counters road # ipsec whack --trafficstatus -006 #2: "private-or-clear#192.1.2.0/24"[1] 10.0.10.1/32=== ...192.1.2.23, type=ESP, add_time=1234567890, inBytes=252, outBytes=252, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org', lease=10.0.10.1/32 +whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) road # # you should see both RSA and NULL road # grep IKEv2_AUTH_ /tmp/pluto.log -| auth method: IKEv2_AUTH_NULL (0xd) -| auth method: IKEv2_AUTH_RSA (0x1) road # road # ../bin/check-for-core.sh +CORE FOUND: /tmp/core.road.pluto.16110 +[New LWP 16110] +[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 SIGABRT, Aborted. +#0 0x00007f99ab192e75 in raise () from /lib64/libc.so.6 +#0 0x00007f99ab192e75 in raise () from /lib64/libc.so.6 +#1 0x00007f99ab17d895 in abort () from /lib64/libc.so.6 +#2 0x000055681ee6decb in lswlog_passert_suffix (buf=buf@entry=0x7ffd2ffd8e80, where=...) at /home/build/libreswan/lib/libswan/lswlog_passert.c:32 +#3 0x000055681ee5f2e8 in lsw_passert_fail (where=..., fmt=fmt@entry=0x55681eebc624 "%s") at /home/build/libreswan/lib/libswan/lsw_passert_fail.c:31 +#4 0x000055681edfb586 in free_signal_handlers () at /home/build/libreswan/programs/pluto/server.c:624 +#5 free_pluto_event_list () at /home/build/libreswan/programs/pluto/server.c:671 +#6 0x000055681edf80c9 in exit_pluto (status=10) at /home/build/libreswan/programs/pluto/plutomain.c:1850 +#7 0x000055681edbe907 in create_lock () at /home/build/libreswan/programs/pluto/plutomain.c:272 +#8 main (argc=, argv=) at /home/build/libreswan/programs/pluto/plutomain.c:1458 +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +Warning: couldn't activate thread debugging using libthread_db: Cannot find new threads: generic error +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +Warning: couldn't activate thread debugging using libthread_db: Cannot find new threads: generic error +warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +Failed to read a valid object file image from memory. +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +Warning: couldn't activate thread debugging using libthread_db: Cannot find new threads: generic error +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +Warning: couldn't activate thread debugging using libthread_db: Cannot find new threads: generic error +warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +warning: Couldn't read general-purpose registers from `.reg/16110' section in core file. +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +warning: Couldn't read floating-point registers from `.reg2/16110' section in core file. +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +warning: Couldn't read XSAVE extended state registers from `.reg-xstate/16110' section in core file. +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +BFD: reopening /tmp/core.road.pluto.16110: No such file or directory +mv: cannot stat '/tmp/core.road.pluto.16110': No such file or directory road # if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi