Debian Codegraph @

testing/pluto/certoe-18-pass-then-go-slash24-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.0/24" >> /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 # wait on OE to install %pass due to east not running ipsec
26 road #
27 # should show no tunnels and a bare shunt
28 road #
29 ../../guestbin/ping-once.sh --forget -I 192.1.3.209 192.1.2.23
30 fired and forgotten
31 road #
32 ../../guestbin/wait-for.sh --timeout 60 --match oe-failing -- ipsec shuntstatus
33 192.1.3.209/32 -0-> 192.1.2.23/32 => %pass oe-failing
34 road #
35 ipsec trafficstatus
36 road #
37 # verify xfrm policy got added for %pass
38 road #
39 ../../guestbin/ipsec-kernel-state.sh
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 road #
45 ../../guestbin/ipsec-kernel-policy.sh
46 src 192.1.3.209/32 dst 192.1.2.23/32
47 dir out priority 0 ptype main
48 src 192.1.2.253/32 dst 192.1.3.209/32
49 dir fwd priority PRIORITY ptype main
50 src 192.1.2.253/32 dst 192.1.3.209/32
51 dir in priority PRIORITY ptype main
52 src 192.1.2.254/32 dst 192.1.3.209/32
53 dir fwd priority PRIORITY ptype main
54 src 192.1.2.254/32 dst 192.1.3.209/32
55 dir in priority PRIORITY ptype main
56 src 192.1.3.209/32 dst 192.1.2.253/32
57 dir out priority PRIORITY ptype main
58 src 192.1.3.209/32 dst 192.1.2.254/32
59 dir out priority PRIORITY ptype main
60 src 192.1.3.209/32 dst 192.1.3.253/32
61 dir out priority PRIORITY ptype main
62 src 192.1.3.209/32 dst 192.1.3.254/32
63 dir out priority PRIORITY ptype main
64 src 192.1.3.253/32 dst 192.1.3.209/32
65 dir fwd priority PRIORITY ptype main
66 src 192.1.3.253/32 dst 192.1.3.209/32
67 dir in priority PRIORITY ptype main
68 src 192.1.3.254/32 dst 192.1.3.209/32
69 dir fwd priority PRIORITY ptype main
70 src 192.1.3.254/32 dst 192.1.3.209/32
71 dir in priority PRIORITY ptype main
72 src 192.1.3.209/32 dst 192.1.2.0/24
73 dir out priority PRIORITY ptype main
74 tmpl src 0.0.0.0 dst 0.0.0.0
75 proto esp reqid 0 mode transport
76 road #
77 echo "waiting on east to start ipsec and OE initiate to us"
78 waiting on east to start ipsec and OE initiate to us
79 road #
80 # OE has been triggered.
81 road #
82 # there should be no %pass shunts on either side and an active tunnel and no partial IKE states
83 road #
84 ipsec showstates
85 #2: "private-or-clear#192.1.2.0/24"[2] ...192.1.2.23:500 ESTABLISHED_IKE_SA (established IKE SA); REKEY in XXs; REPLACE in XXs; newest; idle;
86 #3: "private-or-clear#192.1.2.0/24"[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;
87 #3: "private-or-clear#192.1.2.0/24"[2] ...192.1.2.23 [email protected] [email protected] [email protected] [email protected] Traffic: ESPin=252B ESPout=252B ESPmax=2^63B
88 road #
89 ipsec trafficstatus
90 #3: "private-or-clear#192.1.2.0/24"[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]'
91 road #
92 ipsec shuntstatus
93 Bare Shunt list:
94
95 road #
96 ../../guestbin/ipsec-kernel-state.sh
97 src 192.1.3.209 dst 192.1.2.23
98 proto esp spi 0xSPISPI reqid REQID mode tunnel
99 replay-window 0 flag af-unspec esn
100 aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
101 lastused YYYY-MM-DD HH:MM:SS
102 anti-replay esn context:
103 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
104 replay_window 0, bitmap-length 0
105 src 192.1.2.23 dst 192.1.3.209
106 proto esp spi 0xSPISPI reqid REQID mode tunnel
107 replay-window 0 flag af-unspec esn
108 aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
109 lastused YYYY-MM-DD HH:MM:SS
110 anti-replay esn context:
111 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
112 replay_window 128, bitmap-length 4
113 00000000 00000000 00000000 XXXXXXXX
114 src 192.1.3.209 dst 192.1.2.23
115 proto esp spi 0x00000000 reqid 0 mode transport
116 replay-window 0
117 sel src 192.1.3.209/32 dst 192.1.2.23/32 proto icmp type 8 code 0 dev eth0
118 road #
119 ../../guestbin/ipsec-kernel-policy.sh
120 src 192.1.2.23/32 dst 192.1.3.209/32
121 dir fwd priority PRIORITY ptype main
122 tmpl src 192.1.2.23 dst 192.1.3.209
123 proto esp reqid REQID mode tunnel
124 src 192.1.2.23/32 dst 192.1.3.209/32
125 dir in priority PRIORITY ptype main
126 tmpl src 192.1.2.23 dst 192.1.3.209
127 proto esp reqid REQID mode tunnel
128 src 192.1.3.209/32 dst 192.1.2.23/32
129 dir out priority PRIORITY ptype main
130 tmpl src 192.1.3.209 dst 192.1.2.23
131 proto esp reqid REQID mode tunnel
132 src 192.1.2.253/32 dst 192.1.3.209/32
133 dir fwd priority PRIORITY ptype main
134 src 192.1.2.253/32 dst 192.1.3.209/32
135 dir in priority PRIORITY ptype main
136 src 192.1.2.254/32 dst 192.1.3.209/32
137 dir fwd priority PRIORITY ptype main
138 src 192.1.2.254/32 dst 192.1.3.209/32
139 dir in priority PRIORITY ptype main
140 src 192.1.3.209/32 dst 192.1.2.253/32
141 dir out priority PRIORITY ptype main
142 src 192.1.3.209/32 dst 192.1.2.254/32
143 dir out priority PRIORITY ptype main
144 src 192.1.3.209/32 dst 192.1.3.253/32
145 dir out priority PRIORITY ptype main
146 src 192.1.3.209/32 dst 192.1.3.254/32
147 dir out priority PRIORITY ptype main
148 src 192.1.3.253/32 dst 192.1.3.209/32
149 dir fwd priority PRIORITY ptype main
150 src 192.1.3.253/32 dst 192.1.3.209/32
151 dir in priority PRIORITY ptype main
152 src 192.1.3.254/32 dst 192.1.3.209/32
153 dir fwd priority PRIORITY ptype main
154 src 192.1.3.254/32 dst 192.1.3.209/32
155 dir in priority PRIORITY ptype main
156 src 192.1.3.209/32 dst 192.1.2.0/24
157 dir out priority PRIORITY ptype main
158 tmpl src 0.0.0.0 dst 0.0.0.0
159 proto esp reqid 0 mode transport
160 road #
161 # letting 60s shunt expire
162 road #
163 ../../guestbin/wait-for.sh --timeout 60 --no-match ' spi 0x00000000 ' -- ../../guestbin/ipsec-kernel-state.sh
164 road #
165 # we should have 1 or 2 tunnels, no shunts
166 road #
167 ipsec trafficstatus
168 #3: "private-or-clear#192.1.2.0/24"[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]'
169 road #
170 ipsec shuntstatus
171 Bare Shunt list:
172
173 road #
174 # we should see one of each in/fwd/out (confirming %pass shunt delete didn't take out dir out tunnel policy
175 road #
176 ../../guestbin/ipsec-kernel-policy.sh
177 src 192.1.2.23/32 dst 192.1.3.209/32
178 dir fwd priority PRIORITY ptype main
179 tmpl src 192.1.2.23 dst 192.1.3.209
180 proto esp reqid REQID mode tunnel
181 src 192.1.2.23/32 dst 192.1.3.209/32
182 dir in priority PRIORITY ptype main
183 tmpl src 192.1.2.23 dst 192.1.3.209
184 proto esp reqid REQID mode tunnel
185 src 192.1.3.209/32 dst 192.1.2.23/32
186 dir out priority PRIORITY ptype main
187 tmpl src 192.1.3.209 dst 192.1.2.23
188 proto esp reqid REQID mode tunnel
189 src 192.1.2.253/32 dst 192.1.3.209/32
190 dir fwd priority PRIORITY ptype main
191 src 192.1.2.253/32 dst 192.1.3.209/32
192 dir in priority PRIORITY ptype main
193 src 192.1.2.254/32 dst 192.1.3.209/32
194 dir fwd priority PRIORITY ptype main
195 src 192.1.2.254/32 dst 192.1.3.209/32
196 dir in priority PRIORITY ptype main
197 src 192.1.3.209/32 dst 192.1.2.253/32
198 dir out priority PRIORITY ptype main
199 src 192.1.3.209/32 dst 192.1.2.254/32
200 dir out priority PRIORITY ptype main
201 src 192.1.3.209/32 dst 192.1.3.253/32
202 dir out priority PRIORITY ptype main
203 src 192.1.3.209/32 dst 192.1.3.254/32
204 dir out priority PRIORITY ptype main
205 src 192.1.3.253/32 dst 192.1.3.209/32
206 dir fwd priority PRIORITY ptype main
207 src 192.1.3.253/32 dst 192.1.3.209/32
208 dir in priority PRIORITY ptype main
209 src 192.1.3.254/32 dst 192.1.3.209/32
210 dir fwd priority PRIORITY ptype main
211 src 192.1.3.254/32 dst 192.1.3.209/32
212 dir in priority PRIORITY ptype main
213 src 192.1.3.209/32 dst 192.1.2.0/24
214 dir out priority PRIORITY ptype main
215 tmpl src 0.0.0.0 dst 0.0.0.0
216 proto esp reqid 0 mode transport
217 road #
218 # nic blocks cleartext, so confirm tunnel is working
219 road #
220 ../../guestbin/ping-once.sh --up -I 192.1.3.209 192.1.2.23
221 up
222 road #
223 ../../guestbin/ping-once.sh --up -I 192.1.3.209 192.1.2.23
224 up
225 road #
226 ../../guestbin/ping-once.sh --up -I 192.1.3.209 192.1.2.23
227 up
228 road #
229 ../../guestbin/ping-once.sh --up -I 192.1.3.209 192.1.2.23
230 up
231 road #
232 ipsec trafficstatus
233 #3: "private-or-clear#192.1.2.0/24"[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]'
234