Debian Codegraph @

testing/pluto/certoe-18-pass-then-go-slash32-keyingtries1/road.console.txt

raw
1 /testing/guestbin/swan-prep --x509
2 Preparing X.509 files
3 road #
4 ipsec certutil -D -n east
5 road #
6 cp road-ikev2-oe.conf /etc/ipsec.d/ikev2-oe.conf
7 road #
8 cp policies/* /etc/ipsec.d/policies/
9 road #
10 echo "192.1.2.23/32" >> /etc/ipsec.d/policies/private-or-clear
11 road #
12 ipsec start
13 Redirecting to: [initsystem]
14 road #
15 ../../guestbin/wait-until-pluto-started
16 road #
17 # give OE policies time to load
18 road #
19 ../../guestbin/wait-for.sh --match 'loaded 10,' -- ipsec auto --status
20 Total IPsec connections: loaded 10, active 0
21 road #
22 echo "initdone"
23 initdone
24 road #
25 # trigger OE; wait on OE to install %pass due to east not running ipsec
26 road #
27 ../../guestbin/ping-once.sh --forget -I 192.1.3.209 192.1.2.23
28 fired and forgotten
29 road #
30 ../../guestbin/wait-for.sh --match oe-failing -- ipsec shuntstatus
31 192.1.3.209/32 -0-> 192.1.2.23/32 => %pass oe-failing
32 road #
33 ipsec trafficstatus
34 road #
35 # verify xfrm policy got added for %pass
36 road #
37 ../../guestbin/ipsec-look.sh
38 road NOW
39 XFRM state:
40 src 192.1.3.209 dst 192.1.2.23
41 proto esp spi 0x00000000 reqid 0 mode transport
42 replay-window 0
43 sel src 192.1.3.209/32 dst 192.1.2.23/32 proto icmp type 8 code 0 dev eth0
44 XFRM policy:
45 src 192.1.3.209/32 dst 192.1.2.23/32
46 dir out priority PRIORITY ptype main
47 tmpl src 0.0.0.0 dst 0.0.0.0
48 proto esp reqid 0 mode transport
49 src 192.1.2.253/32 dst 192.1.3.209/32
50 dir fwd priority PRIORITY ptype main
51 src 192.1.2.253/32 dst 192.1.3.209/32
52 dir in priority PRIORITY ptype main
53 src 192.1.2.254/32 dst 192.1.3.209/32
54 dir fwd priority PRIORITY ptype main
55 src 192.1.2.254/32 dst 192.1.3.209/32
56 dir in priority PRIORITY ptype main
57 src 192.1.3.209/32 dst 192.1.2.253/32
58 dir out priority PRIORITY ptype main
59 src 192.1.3.209/32 dst 192.1.2.254/32
60 dir out priority PRIORITY ptype main
61 src 192.1.3.209/32 dst 192.1.3.253/32
62 dir out priority PRIORITY ptype main
63 src 192.1.3.209/32 dst 192.1.3.254/32
64 dir out priority PRIORITY ptype main
65 src 192.1.3.253/32 dst 192.1.3.209/32
66 dir fwd priority PRIORITY ptype main
67 src 192.1.3.253/32 dst 192.1.3.209/32
68 dir in priority PRIORITY ptype main
69 src 192.1.3.254/32 dst 192.1.3.209/32
70 dir fwd priority PRIORITY ptype main
71 src 192.1.3.254/32 dst 192.1.3.209/32
72 dir in priority PRIORITY ptype main
73 XFRM done
74 IPSEC mangle TABLES
75 ROUTING TABLES
76 default via 192.1.3.254 dev eth0
77 192.1.3.0/24 dev eth0 proto kernel scope link src 192.1.3.209
78 NSS_CERTIFICATES
79 Certificate Nickname Trust Attributes
80 SSL,S/MIME,JAR/XPI
81 mainca CT,,
82 east-ec P,,
83 hashsha1 P,,
84 nic P,,
85 north P,,
86 road u,u,u
87 west P,,
88 west-ec P,,
89 road #
90 echo "waiting on east to start ipsec and OE initiate to us"
91 waiting on east to start ipsec and OE initiate to us
92 road #
93 # OE has been triggered.
94 road #
95 # there should be no %pass shunts on either side and an active tunnel and no partial IKE states
96 road #
97 ipsec status |grep STATE_
98 #2: "private-or-clear#192.1.2.23/32"[2] ...192.1.2.23:500 ESTABLISHED_IKE_SA (established IKE SA); REKEY in XXs; REPLACE in XXs; newest; idle;
99 #3: "private-or-clear#192.1.2.23/32"[2] ...192.1.2.23:500 ESTABLISHED_CHILD_SA (established Child SA); REKEY in XXs; REPLACE in XXs; newest; eroute owner; IKE SA #2; idle;
100 road #
101 ipsec trafficstatus
102 #3: "private-or-clear#192.1.2.23/32"[2] ...192.1.2.23, type=ESP, add_time=1234567890, inBytes=252, outBytes=252, maxBytes=2^63B, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, [email protected]'
103 road #
104 ipsec shuntstatus
105 Bare Shunt list:
106
107 road #
108 ../../guestbin/ipsec-look.sh
109 road NOW
110 XFRM state:
111 src 192.1.2.23 dst 192.1.3.209
112 proto esp spi 0xSPISPI reqid REQID mode tunnel
113 replay-window 0 flag af-unspec esn
114 aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
115 lastused YYYY-MM-DD HH:MM:SS
116 anti-replay esn context:
117 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
118 replay_window 128, bitmap-length 4
119 00000000 00000000 00000000 XXXXXXXX
120 src 192.1.3.209 dst 192.1.2.23
121 proto esp spi 0xSPISPI reqid REQID mode tunnel
122 replay-window 0 flag af-unspec esn
123 aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
124 lastused YYYY-MM-DD HH:MM:SS
125 anti-replay esn context:
126 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
127 replay_window 128, bitmap-length 4
128 00000000 00000000 00000000 XXXXXXXX
129 src 192.1.3.209 dst 192.1.2.23
130 proto esp spi 0x00000000 reqid 0 mode transport
131 replay-window 0
132 sel src 192.1.3.209/32 dst 192.1.2.23/32 proto icmp type 8 code 0 dev eth0
133 XFRM policy:
134 src 192.1.2.23/32 dst 192.1.3.209/32
135 dir fwd priority PRIORITY ptype main
136 tmpl src 192.1.2.23 dst 192.1.3.209
137 proto esp reqid REQID mode tunnel
138 src 192.1.2.23/32 dst 192.1.3.209/32
139 dir in priority PRIORITY ptype main
140 tmpl src 192.1.2.23 dst 192.1.3.209
141 proto esp reqid REQID mode tunnel
142 src 192.1.2.253/32 dst 192.1.3.209/32
143 dir fwd priority PRIORITY ptype main
144 src 192.1.2.253/32 dst 192.1.3.209/32
145 dir in priority PRIORITY ptype main
146 src 192.1.2.254/32 dst 192.1.3.209/32
147 dir fwd priority PRIORITY ptype main
148 src 192.1.2.254/32 dst 192.1.3.209/32
149 dir in priority PRIORITY ptype main
150 src 192.1.3.209/32 dst 192.1.2.23/32
151 dir out priority PRIORITY ptype main
152 tmpl src 192.1.3.209 dst 192.1.2.23
153 proto esp reqid REQID mode tunnel
154 src 192.1.3.209/32 dst 192.1.2.253/32
155 dir out priority PRIORITY ptype main
156 src 192.1.3.209/32 dst 192.1.2.254/32
157 dir out priority PRIORITY ptype main
158 src 192.1.3.209/32 dst 192.1.3.253/32
159 dir out priority PRIORITY ptype main
160 src 192.1.3.209/32 dst 192.1.3.254/32
161 dir out priority PRIORITY ptype main
162 src 192.1.3.253/32 dst 192.1.3.209/32
163 dir fwd priority PRIORITY ptype main
164 src 192.1.3.253/32 dst 192.1.3.209/32
165 dir in priority PRIORITY ptype main
166 src 192.1.3.254/32 dst 192.1.3.209/32
167 dir fwd priority PRIORITY ptype main
168 src 192.1.3.254/32 dst 192.1.3.209/32
169 dir in priority PRIORITY ptype main
170 XFRM done
171 IPSEC mangle TABLES
172 ROUTING TABLES
173 default via 192.1.3.254 dev eth0
174 192.1.3.0/24 dev eth0 proto kernel scope link src 192.1.3.209
175 NSS_CERTIFICATES
176 Certificate Nickname Trust Attributes
177 SSL,S/MIME,JAR/XPI
178 mainca CT,,
179 east-ec P,,
180 hashsha1 P,,
181 nic P,,
182 north P,,
183 road u,u,u
184 west P,,
185 west-ec P,,
186 road #
187 # letting 60s shunt expire
188 road #
189 ../../guestbin/wait-for.sh --no-match ' spi 0x00000000 ' -- ../../guestbin/ipsec-kernel-state.sh
190 road #
191 # we should have 1 or 2 tunnels, no shunts
192 road #
193 ipsec trafficstatus
194 #3: "private-or-clear#192.1.2.23/32"[2] ...192.1.2.23, type=ESP, add_time=1234567890, inBytes=252, outBytes=252, maxBytes=2^63B, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, [email protected]'
195 road #
196 ipsec shuntstatus
197 Bare Shunt list:
198
199 road #
200 # we should see one of each in/fwd/out (confirming %pass shunt delete didn't take out dir out tunnel policy
201 road #
202 ip xfrm policy
203 src 192.1.3.209/32 dst 192.1.2.23/32
204 dir out priority PRIORITY ptype main
205 tmpl src 192.1.3.209 dst 192.1.2.23
206 proto esp reqid REQID mode tunnel
207 src 192.1.2.23/32 dst 192.1.3.209/32
208 dir fwd priority PRIORITY ptype main
209 tmpl src 192.1.2.23 dst 192.1.3.209
210 proto esp reqid REQID mode tunnel
211 src 192.1.2.23/32 dst 192.1.3.209/32
212 dir in priority PRIORITY ptype main
213 tmpl src 192.1.2.23 dst 192.1.3.209
214 proto esp reqid REQID mode tunnel
215 src 192.1.2.253/32 dst 192.1.3.209/32
216 dir fwd priority PRIORITY ptype main
217 src 192.1.2.253/32 dst 192.1.3.209/32
218 dir in priority PRIORITY ptype main
219 src 192.1.3.209/32 dst 192.1.2.253/32
220 dir out priority PRIORITY ptype main
221 src 192.1.3.253/32 dst 192.1.3.209/32
222 dir fwd priority PRIORITY ptype main
223 src 192.1.3.253/32 dst 192.1.3.209/32
224 dir in priority PRIORITY ptype main
225 src 192.1.3.209/32 dst 192.1.3.253/32
226 dir out priority PRIORITY ptype main
227 src 192.1.3.254/32 dst 192.1.3.209/32
228 dir fwd priority PRIORITY ptype main
229 src 192.1.3.254/32 dst 192.1.3.209/32
230 dir in priority PRIORITY ptype main
231 src 192.1.3.209/32 dst 192.1.3.254/32
232 dir out priority PRIORITY ptype main
233 src 192.1.2.254/32 dst 192.1.3.209/32
234 dir fwd priority PRIORITY ptype main
235 src 192.1.2.254/32 dst 192.1.3.209/32
236 dir in priority PRIORITY ptype main
237 src 192.1.3.209/32 dst 192.1.2.254/32
238 dir out priority PRIORITY ptype main
239 src 0.0.0.0/0 dst 0.0.0.0/0
240 socket out priority 0 ptype main
241 src 0.0.0.0/0 dst 0.0.0.0/0
242 socket in priority 0 ptype main
243 src 0.0.0.0/0 dst 0.0.0.0/0
244 socket out priority 0 ptype main
245 src 0.0.0.0/0 dst 0.0.0.0/0
246 socket in priority 0 ptype main
247 src 0.0.0.0/0 dst 0.0.0.0/0
248 socket out priority 0 ptype main
249 src 0.0.0.0/0 dst 0.0.0.0/0
250 socket in priority 0 ptype main
251 src 0.0.0.0/0 dst 0.0.0.0/0
252 socket out priority 0 ptype main
253 src 0.0.0.0/0 dst 0.0.0.0/0
254 socket in priority 0 ptype main
255 road #
256 # nic blocks cleartext, so confirm tunnel is working
257 road #
258 ../../guestbin/ping-once.sh --up -I 192.1.3.209 192.1.2.23
259 up
260 road #
261 ../../guestbin/ping-once.sh --up -I 192.1.3.209 192.1.2.23
262 up
263 road #
264 ../../guestbin/ping-once.sh --up -I 192.1.3.209 192.1.2.23
265 up
266 road #
267 ../../guestbin/ping-once.sh --up -I 192.1.3.209 192.1.2.23
268 up
269 road #
270 ipsec trafficstatus
271 #3: "private-or-clear#192.1.2.23/32"[2] ...192.1.2.23, type=ESP, add_time=1234567890, inBytes=588, outBytes=588, maxBytes=2^63B, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, [email protected]'
272