Debian Codegraph @

testing/pluto/certoe-18-pass-then-go-slash24-keyingtries1/east.console.txt

raw
1 /testing/guestbin/swan-prep --x509
2 Preparing X.509 files
3 east #
4 ipsec certutil -D -n road
5 east #
6 cp east-ikev2-oe.conf /etc/ipsec.d/ikev2-oe.conf
7 east #
8 cp policies/* /etc/ipsec.d/policies/
9 east #
10 echo "192.1.3.0/24" >> /etc/ipsec.d/policies/private-or-clear
11 east #
12 # don't start ipsec yet
13 east #
14 echo "initdone"
15 initdone
16 east #
17 ipsec start
18 Redirecting to: [initsystem]
19 east #
20 ../../guestbin/wait-until-pluto-started
21 east #
22 # give OE policies time to load
23 east #
24 ../../guestbin/wait-for.sh --match 'loaded 10,' -- ipsec auto --status
25 Total IPsec connections: loaded 10, active 0
26 east #
27 # trigger OE; traffic minus first packet should have flown through tunnel
28 east #
29 ../../guestbin/ping-once.sh --forget -I 192.1.2.23 192.1.3.209
30 fired and forgotten
31 east #
32 ../../guestbin/wait-for.sh --match private-or-clear -- ipsec trafficstatus
33 #2: "private-or-clear#192.1.3.0/24"[1] ...192.1.3.209, type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=road.testing.libreswan.org, [email protected]'
34 east #
35 ../../guestbin/ping-once.sh --up -I 192.1.2.23 192.1.3.209
36 up
37 east #
38 ../../guestbin/ping-once.sh --up -I 192.1.2.23 192.1.3.209
39 up
40 east #
41 ../../guestbin/ping-once.sh --up -I 192.1.2.23 192.1.3.209
42 up
43 east #
44 ipsec trafficstatus
45 #2: "private-or-clear#192.1.3.0/24"[1] ...192.1.3.209, 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=road.testing.libreswan.org, [email protected]'
46 east #
47 # OE has been triggered.
48 east #
49 # there should be no %pass shunts on either side and an active tunnel and no partial IKE states
50 east #
51 ipsec showstates
52 #1: "private-or-clear#192.1.3.0/24"[1] ...192.1.3.209:500 ESTABLISHED_IKE_SA (established IKE SA); REKEY in XXs; REPLACE in XXs; newest; idle;
53 #2: "private-or-clear#192.1.3.0/24"[1] ...192.1.3.209:500 ESTABLISHED_CHILD_SA (established Child SA); REKEY in XXs; REPLACE in XXs; newest; eroute owner; IKE SA #1; idle;
54 #2: "private-or-clear#192.1.3.0/24"[1] ...192.1.3.209 [email protected] [email protected] [email protected] [email protected] Traffic: ESPin=252B ESPout=252B ESPmax=2^63B
55 east #
56 ipsec trafficstatus
57 #2: "private-or-clear#192.1.3.0/24"[1] ...192.1.3.209, 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=road.testing.libreswan.org, [email protected]'
58 east #
59 ipsec shuntstatus
60 Bare Shunt list:
61
62 east #
63 ../../guestbin/ipsec-kernel-state.sh
64 src 192.1.2.23 dst 192.1.3.209
65 proto esp spi 0xSPISPI reqid REQID mode tunnel
66 replay-window 0 flag af-unspec esn
67 aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
68 lastused YYYY-MM-DD HH:MM:SS
69 anti-replay esn context:
70 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
71 replay_window 0, bitmap-length 0
72 src 192.1.3.209 dst 192.1.2.23
73 proto esp spi 0xSPISPI reqid REQID mode tunnel
74 replay-window 0 flag af-unspec esn
75 aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
76 lastused YYYY-MM-DD HH:MM:SS
77 anti-replay esn context:
78 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
79 replay_window 128, bitmap-length 4
80 00000000 00000000 00000000 XXXXXXXX
81 src 192.1.2.23 dst 192.1.3.209
82 proto esp spi 0x00000000 reqid 0 mode transport
83 replay-window 0
84 sel src 192.1.2.23/32 dst 192.1.3.209/32 proto icmp type 8 code 0 dev eth1
85 east #
86 ../../guestbin/ipsec-kernel-policy.sh
87 src 192.1.2.23/32 dst 192.1.3.209/32
88 dir out priority PRIORITY ptype main
89 tmpl src 192.1.2.23 dst 192.1.3.209
90 proto esp reqid REQID mode tunnel
91 src 192.1.3.209/32 dst 192.1.2.23/32
92 dir fwd priority PRIORITY ptype main
93 tmpl src 192.1.3.209 dst 192.1.2.23
94 proto esp reqid REQID mode tunnel
95 src 192.1.3.209/32 dst 192.1.2.23/32
96 dir in priority PRIORITY ptype main
97 tmpl src 192.1.3.209 dst 192.1.2.23
98 proto esp reqid REQID mode tunnel
99 src 192.1.2.23/32 dst 192.1.2.253/32
100 dir out priority PRIORITY ptype main
101 src 192.1.2.23/32 dst 192.1.2.254/32
102 dir out priority PRIORITY ptype main
103 src 192.1.2.23/32 dst 192.1.3.253/32
104 dir out priority PRIORITY ptype main
105 src 192.1.2.23/32 dst 192.1.3.254/32
106 dir out priority PRIORITY ptype main
107 src 192.1.2.253/32 dst 192.1.2.23/32
108 dir fwd priority PRIORITY ptype main
109 src 192.1.2.253/32 dst 192.1.2.23/32
110 dir in priority PRIORITY ptype main
111 src 192.1.2.254/32 dst 192.1.2.23/32
112 dir fwd priority PRIORITY ptype main
113 src 192.1.2.254/32 dst 192.1.2.23/32
114 dir in priority PRIORITY ptype main
115 src 192.1.3.253/32 dst 192.1.2.23/32
116 dir fwd priority PRIORITY ptype main
117 src 192.1.3.253/32 dst 192.1.2.23/32
118 dir in priority PRIORITY ptype main
119 src 192.1.3.254/32 dst 192.1.2.23/32
120 dir fwd priority PRIORITY ptype main
121 src 192.1.3.254/32 dst 192.1.2.23/32
122 dir in priority PRIORITY ptype main
123 src 192.1.2.23/32 dst 192.1.3.0/24
124 dir out priority PRIORITY ptype main
125 tmpl src 0.0.0.0 dst 0.0.0.0
126 proto esp reqid 0 mode transport
127 east #
128