Debian Codegraph @

testing/pluto/certoe-17-asymmetric-dual-clients-behind-nat-01/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 restart
13 Redirecting to: [initsystem]
14 road #
15 ../../guestbin/wait-until-pluto-started
16 road #
17 ipsec whack --impair suppress_retransmits
18 road #
19 # give OE policies time to load
20 road #
21 ../../guestbin/wait-for.sh --match 'loaded 2' -- ipsec auto --status
22 Total IPsec connections: loaded 2, active 0
23 road #
24 echo "initdone"
25 initdone
26 road #
27 # check traffic and shunt status
28 road #
29 ipsec whack --trafficstatus
30 road #
31 ipsec whack --shuntstatus
32 Bare Shunt list:
33
34 road #
35 # trigger ping, this will be lost
36 road #
37 ../../guestbin/ping-once.sh --forget -I 192.1.3.209 192.1.2.23
38 fired and forgotten
39 road #
40 # wait for tunnel then send ping; count changes
41 road #
42 ../../guestbin/wait-for.sh --match private-or-clear -- ipsec whack --trafficstatus
43 #2: "private-or-clear#192.1.2.0/24"[1] 10.0.10.1/32=== ...192.1.2.23, 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=east.testing.libreswan.org, [email protected]', lease=10.0.10.1/32
44 road #
45 ../../guestbin/ping-once.sh --up -I 192.1.3.209 192.1.2.23
46 up
47 road #
48 ipsec whack --trafficstatus
49 #2: "private-or-clear#192.1.2.0/24"[1] 10.0.10.1/32=== ...192.1.2.23, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, [email protected]', lease=10.0.10.1/32
50 road #
51 # A tunnel should have established with non-zero byte counters
52 road #
53 ipsec whack --trafficstatus
54 #2: "private-or-clear#192.1.2.0/24"[1] 10.0.10.1/32=== ...192.1.2.23, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, [email protected]', lease=10.0.10.1/32
55 road #
56 grep "^[^|].* established Child SA" /tmp/pluto.log
57 "private-or-clear#192.1.2.0/24"[1] 10.0.10.1/32=== ...192.1.2.23 #2: initiator established Child SA using #1; IPsec tunnel [10.0.10.1/32===192.1.2.23/32] {ESPinUDP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATD=192.1.2.23:4500 DPD=passive}
58 road #
59 grep -e 'auth method: ' -e 'hash algorithm identifier' -e "^[^|].* established IKE SA" OUTPUT/*pluto.log
60 OUTPUT/east.pluto.log:| parsing 2 raw bytes of IKEv2 Notify Payload into hash algorithm identifier (network ordered)
61 OUTPUT/east.pluto.log:| parsing 2 raw bytes of IKEv2 Notify Payload into hash algorithm identifier (network ordered)
62 OUTPUT/east.pluto.log:| parsing 2 raw bytes of IKEv2 Notify Payload into hash algorithm identifier (network ordered)
63 OUTPUT/east.pluto.log:| emitting 2 raw bytes of hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_256 into IKEv2 Notify Payload
64 OUTPUT/east.pluto.log:| hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_256: 00 02
65 OUTPUT/east.pluto.log:| emitting 2 raw bytes of hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_384 into IKEv2 Notify Payload
66 OUTPUT/east.pluto.log:| hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_384: 00 03
67 OUTPUT/east.pluto.log:| emitting 2 raw bytes of hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_512 into IKEv2 Notify Payload
68 OUTPUT/east.pluto.log:| hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_512: 00 04
69 OUTPUT/east.pluto.log:| auth method: IKEv2_AUTH_NULL (0xd)
70 OUTPUT/east.pluto.log:"clear-or-private#192.1.2.254/32"[1] ...192.1.2.254 #1: responder established IKE SA; authenticated peer using authby=null and ID_NULL 'ID_NULL'
71 OUTPUT/east.pluto.log:| auth method: IKEv2_AUTH_DIGITAL_SIGNATURE (0xe)
72 OUTPUT/road.pluto.log:| emitting 2 raw bytes of hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_256 into IKEv2 Notify Payload
73 OUTPUT/road.pluto.log:| hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_256: 00 02
74 OUTPUT/road.pluto.log:| emitting 2 raw bytes of hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_384 into IKEv2 Notify Payload
75 OUTPUT/road.pluto.log:| hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_384: 00 03
76 OUTPUT/road.pluto.log:| emitting 2 raw bytes of hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_512 into IKEv2 Notify Payload
77 OUTPUT/road.pluto.log:| hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_512: 00 04
78 OUTPUT/road.pluto.log:| parsing 2 raw bytes of IKEv2 Notify Payload into hash algorithm identifier (network ordered)
79 OUTPUT/road.pluto.log:| parsing 2 raw bytes of IKEv2 Notify Payload into hash algorithm identifier (network ordered)
80 OUTPUT/road.pluto.log:| parsing 2 raw bytes of IKEv2 Notify Payload into hash algorithm identifier (network ordered)
81 OUTPUT/road.pluto.log:| auth method: IKEv2_AUTH_NULL (0xd)
82 OUTPUT/road.pluto.log:| auth method: IKEv2_AUTH_DIGITAL_SIGNATURE (0xe)
83 OUTPUT/road.pluto.log:"private-or-clear#192.1.2.0/24"[1] ...192.1.2.23 #1: initiator established IKE SA; authenticated peer certificate 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, [email protected]' 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]'
84 road #
85