--- road.console.txt 2019-08-24 18:12:56.316672409 +0000 +++ OUTPUT/road.console.txt 2019-08-26 13:20:46.388189429 +0000 @@ -128,7 +128,7 @@ 000 "block": policy: AUTH_NEVER+GROUP+GROUTED+REJECT+NEVER_NEGOTIATE; 000 "block": conn_prio: 32,32; interface: eth0; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none; 000 "block": nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no; -000 "block": our idtype: ID_IPV4_ADDR; our id=192.1.3.209; their idtype: %none; their id=(none) +000 "block": our idtype: ID_IPV4_ADDR; our id=%any; their idtype: %none; their id=(none) 000 "block": dpd: action:disabled; delay:0; timeout:0; nat-t: encaps:no; nat_keepalive:no; ikev1_natt:both 000 "block": newest ISAKMP SA: #0; newest IPsec SA: #0; 000 "clear": 192.1.3.209---192.1.3.254...%group; unrouted; eroute owner: #0 @@ -144,7 +144,7 @@ 000 "clear": policy: AUTH_NEVER+GROUP+GROUTED+PASS+NEVER_NEGOTIATE; 000 "clear": conn_prio: 32,32; interface: eth0; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none; 000 "clear": nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no; -000 "clear": our idtype: ID_IPV4_ADDR; our id=192.1.3.209; their idtype: %none; their id=(none) +000 "clear": our idtype: ID_IPV4_ADDR; our id=%any; their idtype: %none; their id=(none) 000 "clear": dpd: action:disabled; delay:0; timeout:0; nat-t: encaps:no; nat_keepalive:no; ikev1_natt:both 000 "clear": newest ISAKMP SA: #0; newest IPsec SA: #0; 000 "clear#192.1.2.253/32": 192.1.3.209---192.1.3.254...%any; prospective erouted; eroute owner: #0 @@ -160,7 +160,7 @@ 000 "clear#192.1.2.253/32": policy: AUTH_NEVER+GROUPINSTANCE+PASS+NEVER_NEGOTIATE; 000 "clear#192.1.2.253/32": conn_prio: 32,32; interface: eth0; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none; 000 "clear#192.1.2.253/32": nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no; -000 "clear#192.1.2.253/32": our idtype: ID_IPV4_ADDR; our id=192.1.3.209; their idtype: %none; their id=(none) +000 "clear#192.1.2.253/32": our idtype: ID_IPV4_ADDR; our id=%any; their idtype: %none; their id=(none) 000 "clear#192.1.2.253/32": dpd: action:disabled; delay:0; timeout:0; nat-t: encaps:no; nat_keepalive:no; ikev1_natt:both 000 "clear#192.1.2.253/32": newest ISAKMP SA: #0; newest IPsec SA: #0; 000 "clear#192.1.3.253/32": 192.1.3.209---192.1.3.254...%any; prospective erouted; eroute owner: #0 @@ -176,7 +176,7 @@ 000 "clear#192.1.3.253/32": policy: AUTH_NEVER+GROUPINSTANCE+PASS+NEVER_NEGOTIATE; 000 "clear#192.1.3.253/32": conn_prio: 32,32; interface: eth0; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none; 000 "clear#192.1.3.253/32": nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no; -000 "clear#192.1.3.253/32": our idtype: ID_IPV4_ADDR; our id=192.1.3.209; their idtype: %none; their id=(none) +000 "clear#192.1.3.253/32": our idtype: ID_IPV4_ADDR; our id=%any; their idtype: %none; their id=(none) 000 "clear#192.1.3.253/32": dpd: action:disabled; delay:0; timeout:0; nat-t: encaps:no; nat_keepalive:no; ikev1_natt:both 000 "clear#192.1.3.253/32": newest ISAKMP SA: #0; newest IPsec SA: #0; 000 "clear#192.1.3.254/32": 192.1.3.209---192.1.3.254...%any; prospective erouted; eroute owner: #0 @@ -192,7 +192,7 @@ 000 "clear#192.1.3.254/32": policy: AUTH_NEVER+GROUPINSTANCE+PASS+NEVER_NEGOTIATE; 000 "clear#192.1.3.254/32": conn_prio: 32,32; interface: eth0; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none; 000 "clear#192.1.3.254/32": nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no; -000 "clear#192.1.3.254/32": our idtype: ID_IPV4_ADDR; our id=192.1.3.209; their idtype: %none; their id=(none) +000 "clear#192.1.3.254/32": our idtype: ID_IPV4_ADDR; our id=%any; their idtype: %none; their id=(none) 000 "clear#192.1.3.254/32": dpd: action:disabled; delay:0; timeout:0; nat-t: encaps:no; nat_keepalive:no; ikev1_natt:both 000 "clear#192.1.3.254/32": newest ISAKMP SA: #0; newest IPsec SA: #0; 000 "clear-or-private": 192.1.3.209[ID_NULL,+MC+CAT+S=C]---192.1.3.254...%opportunisticgroup[ID_NULL,MS+S=C]; unrouted; eroute owner: #0 @@ -275,10 +275,10 @@ sleep 5 road # ipsec whack --trafficstatus +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 @@ -319,27 +319,18 @@ killall ip > /dev/null 2> /dev/null road # cp /tmp/xfrm-monitor.out OUTPUT/road.xfrm-monitor.txt -cp: cannot stat '/tmp/xfrm-monitor.out': No such file or directory road # # ping should succeed through tunnel road # ping -n -c 4 -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 -64 bytes from 192.1.2.23: icmp_seq=3 ttl=64 time=0.XXX ms -64 bytes from 192.1.2.23: icmp_seq=4 ttl=64 time=0.XXX ms --- 192.1.2.23 ping statistics --- -4 packets transmitted, 3 received, 25% packet loss, time XXXX -rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms +4 packets transmitted, 0 received, 100% packet loss, time XXXX road # ping -n -c 4 -I 192.1.3.209 192.1.2.45 PING 192.1.2.45 (192.1.2.45) from 192.1.3.209 : 56(84) bytes of data. -64 bytes from 192.1.2.45: icmp_seq=2 ttl=64 time=0.XXX ms -64 bytes from 192.1.2.45: icmp_seq=3 ttl=64 time=0.XXX ms -64 bytes from 192.1.2.45: icmp_seq=4 ttl=64 time=0.XXX ms --- 192.1.2.45 ping statistics --- -4 packets transmitted, 3 received, 25% packet loss, time XXXX -rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms +4 packets transmitted, 0 received, 100% packet loss, time XXXX road # echo done done @@ -354,54 +345,21 @@ 4 packets transmitted, 0 received, +4 errors, 100% packet loss, time XXXX road # ipsec whack --trafficstatus -006 #2: "private-or-clear#192.1.2.0/24"[1] 192.1.2.45/32=== ...192.1.2.23, type=ESP, add_time=1234567890, inBytes=252, outBytes=252, id='ID_NULL', lease=192.1.2.45/32 -006 #4: "private-or-clear#192.1.2.0/24"[2] 10.0.10.1/32=== ...192.1.2.45, type=ESP, add_time=1234567890, inBytes=252, outBytes=252, id='ID_NULL', lease=10.0.10.1/32 +whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) road # iptables -t nat -L -n Chain PREROUTING (policy ACCEPT) target prot opt source destination -DNAT all -- 192.1.2.45 10.0.10.1 policy match dir in pol ipsec to:192.1.3.209 -DNAT all -- 192.1.2.23 192.1.2.45 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.45 policy match dir out pol ipsec to:10.0.10.1 -SNAT all -- 0.0.0.0/0 192.1.2.23 policy match dir out pol ipsec to:192.1.2.45 road # ../../pluto/bin/ipsec-look.sh road NOW XFRM state: -src 192.1.2.45 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.45 - 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.45 - proto esp spi 0xSPISPI reqid REQID mode transport - replay-window 0 - sel src 192.1.3.209/32 dst 192.1.2.45/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 - 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 192.1.2.253/32 dst 192.1.3.209/32 dir fwd priority 1564639 ptype main @@ -421,38 +379,6 @@ dir fwd priority 1564639 ptype main src 192.1.3.254/32 dst 192.1.3.209/32 dir in priority 1564639 ptype main -src 10.0.10.1/32 dst 192.1.2.45/32 - dir out priority 2088927 ptype main - tmpl src 192.1.3.209 dst 192.1.2.45 - proto esp reqid REQID mode tunnel -src 192.1.2.23/32 dst 192.1.2.45/32 - dir fwd priority 2088927 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.2.45/32 - dir in priority 2088927 ptype main - tmpl src 192.1.2.23 dst 192.1.3.209 - proto esp reqid REQID mode tunnel -src 192.1.2.45/32 dst 10.0.10.1/32 - dir fwd priority 2088927 ptype main - tmpl src 192.1.2.45 dst 192.1.3.209 - proto esp reqid REQID mode tunnel -src 192.1.2.45/32 dst 10.0.10.1/32 - dir in priority 2088927 ptype main - tmpl src 192.1.2.45 dst 192.1.3.209 - proto esp reqid REQID mode tunnel -src 192.1.2.45/32 dst 192.1.2.23/32 - dir out priority 2088927 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.23/32 - dir out priority 2088927 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.45/32 - dir out priority 2088927 ptype main - tmpl src 192.1.3.209 dst 192.1.2.45 - proto esp reqid REQID mode tunnel src 192.1.3.209/32 dst 192.1.2.0/24 dir out priority 2088935 ptype main tmpl src 0.0.0.0 dst 0.0.0.0