Debian Codegraph @

testing/pluto/ikev2-x509-31-wifi-assist-nonat/road.console.txt

raw
1 /testing/guestbin/swan-prep --x509
2 Preparing X.509 files
3 road #
4 ../../guestbin/ip.sh address add 192.1.3.210/24 dev eth0
5 road #
6 ipsec start
7 Redirecting to: [initsystem]
8 road #
9 ../../guestbin/wait-until-pluto-started
10 road #
11 ipsec whack --impair suppress_retransmits
12 road #
13 ipsec auto --add rw-lte
14 "rw-lte": added IKEv2 connection
15 road #
16 ipsec auto --add rw-wifi
17 "rw-wifi": added IKEv2 connection
18 road #
19 echo "initdone"
20 initdone
21 road #
22 ipsec auto --up rw-lte
23 "rw-lte"[1] 192.1.2.23 #1: initiating IKEv2 connection to 192.1.2.23 using UDP
24 "rw-lte"[1] 192.1.2.23 #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
25 "rw-lte"[1] 192.1.2.23 #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
26 "rw-lte"[1] 192.1.2.23 #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
27 "rw-lte"[1] 192.1.2.23 #1: initiator established IKE SA; authenticated peer certificate '@east.testing.libreswan.org' and 3nnn-bit RSASSA-PSS with SHA2_512 digital signature issued by 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, [email protected]'
28 "rw-lte"[1] 192.1.2.23 #2: received INTERNAL_IP4_ADDRESS 100.64.0.1
29 "rw-lte"[1] 192.1.2.23 #2: received INTERNAL_IP4_DNS 1.2.3.4
30 "rw-lte"[1] 192.1.2.23 #2: received INTERNAL_IP4_DNS 8.8.8.8
31 "rw-lte"[1] 192.1.2.23 #2: up-client output: updating resolvconf
32 "rw-lte"[1] 192.1.2.23 #2: initiator established Child SA using #1; IPsec tunnel [100.64.0.1/32===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
33 road #
34 ../../guestbin/ping-once.sh --up -I 100.64.0.1 192.0.2.254
35 up
36 road #
37 ipsec whack --trafficstatus
38 #2: "rw-lte"[1] 192.1.2.23, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='@east.testing.libreswan.org', lease=100.64.0.1/32
39 road #
40 ipsec auto --up rw-wifi
41 "rw-wifi"[1] 192.1.2.23 #3: initiating IKEv2 connection to 192.1.2.23 using UDP
42 "rw-wifi"[1] 192.1.2.23 #3: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
43 "rw-wifi"[1] 192.1.2.23 #3: 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
44 "rw-wifi"[1] 192.1.2.23 #3: sent IKE_AUTH request to 192.1.2.23:UDP/500
45 "rw-wifi"[1] 192.1.2.23 #3: initiator established IKE SA; authenticated peer certificate '@east.testing.libreswan.org' and 3nnn-bit RSASSA-PSS with SHA2_512 digital signature issued by 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, [email protected]'
46 "rw-wifi"[1] 192.1.2.23 #4: received INTERNAL_IP4_ADDRESS 100.64.0.2
47 "rw-wifi"[1] 192.1.2.23 #4: received INTERNAL_IP4_DNS 1.2.3.4
48 "rw-wifi"[1] 192.1.2.23 #4: received INTERNAL_IP4_DNS 8.8.8.8
49 "rw-wifi"[1] 192.1.2.23 #4: up-client output: updating resolvconf
50 "rw-wifi"[1] 192.1.2.23 #4: up-client output: Current resolv.conf is generated by Libreswan, not creating a new backup
51 "rw-wifi"[1] 192.1.2.23 #4: initiator established Child SA using #3; IPsec tunnel [100.64.0.2/32===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
52 road #
53 # both should remain up and working - aka wifi-assist
54 road #
55 ../../guestbin/ping-once.sh --up -I 100.64.0.2 192.0.2.254
56 up
57 road #
58 ../../guestbin/ping-once.sh --up -I 100.64.0.1 192.0.2.254
59 up
60 road #
61 ipsec whack --trafficstatus
62 #2: "rw-lte"[1] 192.1.2.23, type=ESP, add_time=1234567890, inBytes=168, outBytes=168, maxBytes=2^63B, id='@east.testing.libreswan.org', lease=100.64.0.1/32
63 #4: "rw-wifi"[1] 192.1.2.23, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='@east.testing.libreswan.org', lease=100.64.0.2/32
64 road #
65 echo done
66 done
67 road #
68 # should show two full sets of policies on both road and east
69 road #
70 ip xfrm policy
71 src 100.64.0.2/32 dst 192.0.2.0/24
72 dir out priority PRIORITY ptype main
73 tmpl src 192.1.3.210 dst 192.1.2.23
74 proto esp reqid REQID mode tunnel
75 src 192.0.2.0/24 dst 100.64.0.2/32
76 dir fwd priority PRIORITY ptype main
77 tmpl src 192.1.2.23 dst 192.1.3.210
78 proto esp reqid REQID mode tunnel
79 src 192.0.2.0/24 dst 100.64.0.2/32
80 dir in priority PRIORITY ptype main
81 tmpl src 192.1.2.23 dst 192.1.3.210
82 proto esp reqid REQID mode tunnel
83 src 100.64.0.1/32 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.2.0/24 dst 100.64.0.1/32
88 dir fwd 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.0.2.0/24 dst 100.64.0.1/32
92 dir in priority PRIORITY ptype main
93 tmpl src 192.1.2.23 dst 192.1.3.209
94 proto esp reqid REQID mode tunnel
95 src 0.0.0.0/0 dst 0.0.0.0/0
96 socket out priority 0 ptype main
97 src 0.0.0.0/0 dst 0.0.0.0/0
98 socket in priority 0 ptype main
99 src 0.0.0.0/0 dst 0.0.0.0/0
100 socket out priority 0 ptype main
101 src 0.0.0.0/0 dst 0.0.0.0/0
102 socket in priority 0 ptype main
103 src 0.0.0.0/0 dst 0.0.0.0/0
104 socket out priority 0 ptype main
105 src 0.0.0.0/0 dst 0.0.0.0/0
106 socket in priority 0 ptype main
107 src 0.0.0.0/0 dst 0.0.0.0/0
108 socket out priority 0 ptype main
109 src 0.0.0.0/0 dst 0.0.0.0/0
110 socket in priority 0 ptype main
111 src 0.0.0.0/0 dst 0.0.0.0/0
112 socket out priority 0 ptype main
113 src 0.0.0.0/0 dst 0.0.0.0/0
114 socket in priority 0 ptype main
115 src 0.0.0.0/0 dst 0.0.0.0/0
116 socket out priority 0 ptype main
117 src 0.0.0.0/0 dst 0.0.0.0/0
118 socket in priority 0 ptype main
119 road #
120