--- road.console.txt 2019-08-24 18:12:56.098680093 +0000 +++ OUTPUT/road.console.txt 2019-08-26 13:19:59.666825224 +0000 @@ -37,9 +37,11 @@ ipsec whack --oppohere 192.1.3.209 --oppothere 192.1.2.23 002 initiate on demand from 192.1.3.209:0 to 192.1.2.23:0 proto=0 because: whack 1v2 "private-or-clear#192.1.2.0/24"[1] ...192.1.2.23 #1: initiate -002 "private-or-clear#192.1.2.0/24"[1] ...192.1.2.23 #2: certificate verified OK: E=user-east@testing.libreswan.org,CN=east.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA -003 "private-or-clear#192.1.2.0/24"[1] ...192.1.2.23 #2: Authenticated using RSA -002 "private-or-clear#192.1.2.0/24"[1] ...192.1.2.23 #2: negotiated connection [192.1.3.209-192.1.3.209:0-65535 0] -> [192.1.2.23-192.1.2.23:0-65535 0] +003 "private-or-clear#192.1.2.0/24"[1] ...192.1.2.23 #2: Certificate E=testing@libreswan.org,CN=Libreswan test CA for mainca,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA failed IPsec verification +003 "private-or-clear#192.1.2.0/24"[1] ...192.1.2.23 #2: ERROR: The certificate was signed using a signature algorithm that is disabled because it is not secure. +002 "private-or-clear#192.1.2.0/24"[1] ...192.1.2.23 #2: X509: Certificate rejected for this connection +002 "private-or-clear#192.1.2.0/24"[1] ...192.1.2.23 #2: X509: CERT payload bogus or revoked +036 "private-or-clear#192.1.2.0/24"[1] ...192.1.2.23 #2: encountered fatal error in state STATE_PARENT_I2 road # # wait on OE retransmits and rekeying road # @@ -48,7 +50,6 @@ # should show established tunnel and no bare shunts road # ipsec whack --trafficstatus -006 #2: "private-or-clear#192.1.2.0/24"[1] ...192.1.2.23, type=ESP, add_time=1234567890, inBytes=0, outBytes=0, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org' road # ipsec whack --shuntstatus 000 Bare Shunt list: @@ -59,21 +60,9 @@ 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 -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 + replay-window 0 + sel src 192.1.2.23/32 dst 192.1.3.209/32 XFRM policy: -src 192.1.2.23/32 dst 192.1.3.209/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 192.1.3.209/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 @@ -82,10 +71,6 @@ dir fwd priority 1564639 ptype main src 192.1.2.254/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.2.254/32 @@ -131,14 +116,11 @@ 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 # ipsec whack --trafficstatus -006 #2: "private-or-clear#192.1.2.0/24"[1] ...192.1.2.23, type=ESP, add_time=1234567890, inBytes=168, outBytes=168, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org' +whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) road # echo done done @@ -146,23 +128,15 @@ ../../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 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 +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 + replay-window 0 + sel src 192.1.2.23/32 dst 192.1.3.209/32 XFRM policy: -src 192.1.2.23/32 dst 192.1.3.209/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 192.1.3.209/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 @@ -171,10 +145,6 @@ dir fwd priority 1564639 ptype main src 192.1.2.254/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.2.254/32 @@ -213,12 +183,11 @@ west-ec P,, road # ipsec whack --trafficstatus -006 #2: "private-or-clear#192.1.2.0/24"[1] ...192.1.2.23, type=ESP, add_time=1234567890, inBytes=168, outBytes=168, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org' +whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) road # # A tunnel should have established road # grep "negotiated connection" /tmp/pluto.log -"private-or-clear#192.1.2.0/24"[1] ...192.1.2.23 #2: negotiated connection [192.1.3.209-192.1.3.209:0-65535 0] -> [192.1.2.23-192.1.2.23:0-65535 0] road # # you should see both RSA and NULL road #