| 1 |
/testing/guestbin/swan-prep --x509 |
| 2 |
Preparing X.509 files |
| 3 |
west # |
| 4 |
ipsec certutil -D -n east |
| 5 |
west # |
| 6 |
ipsec start |
| 7 |
Redirecting to: [initsystem] |
| 8 |
west # |
| 9 |
../../guestbin/wait-until-pluto-started |
| 10 |
west # |
| 11 |
ipsec auto --add main |
| 12 |
"main": added IKEv2 connection |
| 13 |
west # |
| 14 |
ipsec whack --impair suppress_retransmits |
| 15 |
west # |
| 16 |
echo "initdone" |
| 17 |
initdone |
| 18 |
west # |
| 19 |
ipsec auto --up main |
| 20 |
"main" #1: initiating IKEv2 connection to 192.1.2.23 using UDP |
| 21 |
"main" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500 |
| 22 |
"main" #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 |
| 23 |
"main" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500 |
| 24 |
"main" #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]' |
| 25 |
"main" #2: initiator established Child SA using #1; IPsec tunnel [192.1.2.45/32===192.1.2.23/32] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive} |
| 26 |
west # |
| 27 |
echo "done" |
| 28 |
done |
| 29 |
west # |
| 30 |
# we should see a connection switch on east |
| 31 |
west # |
| 32 |
ipsec whack --trafficstatus |
| 33 |
#2: "main", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@east.testing.libreswan.org' |
| 34 |
west # |
| 35 |
hostname | grep east && grep '^[^|].* switched ' /tmp/pluto.log |
| 36 |
west # |
| 37 |
|