| 1 |
/testing/guestbin/swan-prep --46 --nokey |
| 2 |
Creating empty NSS database |
| 3 |
road # |
| 4 |
../../guestbin/ip.sh address show eth0 | grep global | sort |
| 5 |
inet 192.1.3.209/24 scope global eth0 |
| 6 |
inet6 2001:db8:1:3::209/64 scope global |
| 7 |
road # |
| 8 |
ipsec start |
| 9 |
Redirecting to: [initsystem] |
| 10 |
road # |
| 11 |
../../guestbin/wait-until-pluto-started |
| 12 |
road # |
| 13 |
ipsec auto --add road |
| 14 |
"road": connection is using multiple subnets |
| 15 |
"road": added IKEv2 connection |
| 16 |
road # |
| 17 |
echo "initdone" |
| 18 |
initdone |
| 19 |
road # |
| 20 |
ipsec up road |
| 21 |
"road" #1: initiating IKEv2 connection to 192.1.2.23 using UDP |
| 22 |
"road" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500 |
| 23 |
"road" #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH |
| 24 |
"road" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500 |
| 25 |
"road" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east' |
| 26 |
"road" #2: accepted selectors [192.0.3.0/24]->[192.0.2.0/24 192.0.20.0/24 192.0.30.0/24(block)] |
| 27 |
"road" #2: state spd requires a block |
| 28 |
"road" #2: running updown up 192.0.3.0/24===192.0.2.0/24 |
| 29 |
"road" #2: running updown up 192.0.3.0/24===192.0.20.0/24 |
| 30 |
"road" #2: running updown up 192.0.3.0/24===192.0.30.0/24 |
| 31 |
"road" #2: running updown prepare 192.0.3.0/24===192.0.2.0/24 |
| 32 |
"road" #2: running updown prepare 192.0.3.0/24===192.0.20.0/24 |
| 33 |
"road" #2: running updown prepare 192.0.3.0/24===192.0.30.0/24 |
| 34 |
"road" #2: running updown route 192.0.3.0/24===192.0.2.0/24 |
| 35 |
"road" #2: running updown route 192.0.3.0/24===192.0.20.0/24 |
| 36 |
"road" #2: running updown route 192.0.3.0/24===192.0.30.0/24 |
| 37 |
"road" #2: initiator established Child SA using #1; IPsec tunnel [192.0.3.0/24===192.0.2.0/24] [192.0.3.0/24===192.0.20.0/24] [192.0.3.0/24===192.0.30.0/24] {ESPinUDP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATD=192.1.2.23:4500 DPD=passive} |
| 38 |
road # |
| 39 |
# There should be a %hold shunt for 192.0.30.0/24 which MUST NOT |
| 40 |
road # |
| 41 |
# appear as TS on the tunnel. |
| 42 |
road # |
| 43 |
../../guestbin/ipsec-look.sh |
| 44 |
road NOW |
| 45 |
XFRM state: |
| 46 |
src 192.1.2.23 dst 192.1.3.209 |
| 47 |
proto esp spi 0xSPISPI reqid REQID mode tunnel |
| 48 |
replay-window 0 flag af-unspec esn |
| 49 |
aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128 |
| 50 |
encap type espinudp sport 4500 dport 4500 addr 0.0.0.0 |
| 51 |
lastused YYYY-MM-DD HH:MM:SS |
| 52 |
anti-replay esn context: |
| 53 |
seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX |
| 54 |
replay_window 128, bitmap-length 4 |
| 55 |
00000000 00000000 00000000 XXXXXXXX |
| 56 |
src 192.1.3.209 dst 192.1.2.23 |
| 57 |
proto esp spi 0xSPISPI reqid REQID mode tunnel |
| 58 |
replay-window 0 flag af-unspec esn |
| 59 |
aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128 |
| 60 |
encap type espinudp sport 4500 dport 4500 addr 0.0.0.0 |
| 61 |
lastused YYYY-MM-DD HH:MM:SS |
| 62 |
anti-replay esn context: |
| 63 |
seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX |
| 64 |
replay_window 128, bitmap-length 4 |
| 65 |
00000000 00000000 00000000 XXXXXXXX |
| 66 |
XFRM policy: |
| 67 |
src 192.0.2.0/24 dst 192.0.3.0/24 |
| 68 |
dir fwd priority PRIORITY ptype main |
| 69 |
tmpl src 192.1.2.23 dst 192.1.3.209 |
| 70 |
proto esp reqid REQID mode tunnel |
| 71 |
src 192.0.2.0/24 dst 192.0.3.0/24 |
| 72 |
dir in priority PRIORITY ptype main |
| 73 |
tmpl src 192.1.2.23 dst 192.1.3.209 |
| 74 |
proto esp reqid REQID mode tunnel |
| 75 |
src 192.0.20.0/24 dst 192.0.3.0/24 |
| 76 |
dir fwd priority PRIORITY ptype main |
| 77 |
tmpl src 192.1.2.23 dst 192.1.3.209 |
| 78 |
proto esp reqid REQID mode tunnel |
| 79 |
src 192.0.20.0/24 dst 192.0.3.0/24 |
| 80 |
dir in priority PRIORITY ptype main |
| 81 |
tmpl src 192.1.2.23 dst 192.1.3.209 |
| 82 |
proto esp reqid REQID mode tunnel |
| 83 |
src 192.0.3.0/24 dst 192.0.2.0/24 |
| 84 |
dir out priority PRIORITY ptype main |
| 85 |
tmpl src 192.1.3.209 dst 192.1.2.23 |
| 86 |
proto esp reqid REQID mode tunnel |
| 87 |
src 192.0.3.0/24 dst 192.0.20.0/24 |
| 88 |
dir out priority PRIORITY ptype main |
| 89 |
tmpl src 192.1.3.209 dst 192.1.2.23 |
| 90 |
proto esp reqid REQID mode tunnel |
| 91 |
src 192.0.3.0/24 dst 192.0.30.0/24 |
| 92 |
dir out action block priority PRIORITY ptype main |
| 93 |
tmpl src 0.0.0.0 dst 0.0.0.0 |
| 94 |
proto esp reqid 0 mode transport |
| 95 |
src 192.0.30.0/24 dst 192.0.3.0/24 |
| 96 |
dir fwd priority PRIORITY ptype main |
| 97 |
tmpl src 192.1.2.23 dst 192.1.3.209 |
| 98 |
proto esp reqid REQID mode tunnel |
| 99 |
src 192.0.30.0/24 dst 192.0.3.0/24 |
| 100 |
dir in priority PRIORITY ptype main |
| 101 |
tmpl src 192.1.2.23 dst 192.1.3.209 |
| 102 |
proto esp reqid REQID mode tunnel |
| 103 |
src ::/0 dst ::/0 proto ipv6-icmp type 135 |
| 104 |
dir fwd priority PRIORITY ptype main |
| 105 |
src ::/0 dst ::/0 proto ipv6-icmp type 135 |
| 106 |
dir in priority PRIORITY ptype main |
| 107 |
src ::/0 dst ::/0 proto ipv6-icmp type 135 |
| 108 |
dir out priority PRIORITY ptype main |
| 109 |
src ::/0 dst ::/0 proto ipv6-icmp type 136 |
| 110 |
dir fwd priority PRIORITY ptype main |
| 111 |
src ::/0 dst ::/0 proto ipv6-icmp type 136 |
| 112 |
dir in priority PRIORITY ptype main |
| 113 |
src ::/0 dst ::/0 proto ipv6-icmp type 136 |
| 114 |
dir out priority PRIORITY ptype main |
| 115 |
XFRM done |
| 116 |
IPSEC mangle TABLES |
| 117 |
iptables filter TABLE |
| 118 |
Chain INPUT (policy ACCEPT) |
| 119 |
target prot opt source destination |
| 120 |
Chain FORWARD (policy ACCEPT) |
| 121 |
target prot opt source destination |
| 122 |
Chain OUTPUT (policy ACCEPT) |
| 123 |
target prot opt source destination |
| 124 |
ROUTING TABLES |
| 125 |
default via 192.1.3.254 dev eth0 |
| 126 |
192.0.2.0/24 dev eth0 scope link src 192.0.3.254 |
| 127 |
192.0.20.0/24 dev eth0 scope link src 192.0.3.254 |
| 128 |
192.0.30.0/24 dev eth0 scope link src 192.0.3.254 |
| 129 |
192.1.3.0/24 dev eth0 proto kernel scope link src 192.1.3.209 |
| 130 |
2001:db8:1:3::/64 dev eth0 proto kernel metric 256 |
| 131 |
fe80::/64 dev eth0 proto kernel metric 256 |
| 132 |
default via 2001:db8:1:3::254 dev eth0 |
| 133 |
NSS_CERTIFICATES |
| 134 |
Certificate Nickname Trust Attributes |
| 135 |
SSL,S/MIME,JAR/XPI |
| 136 |
road # |
| 137 |
../../guestbin/ping-once.sh --up 192.0.2.254 |
| 138 |
up |
| 139 |
road # |
| 140 |
../../guestbin/ping-once.sh --up 192.0.20.254 |
| 141 |
up |
| 142 |
road # |
| 143 |
# non-zero counts confirm encrypted traffic flowing |
| 144 |
road # |
| 145 |
ipsec trafficstatus |
| 146 |
#2: "road", type=ESP, add_time=1234567890, inBytes=168, outBytes=168, maxBytes=2^63B, id='@east' |
| 147 |
road # |
| 148 |
|