/testing/guestbin/swan-prep --x509
Preparing X.509 files
road #
 ipsec start
Redirecting to: [initsystem]
road #
 ../../guestbin/wait-until-pluto-started
road #
 ipsec add road-east
"road-east": added IKEv2 connection
road #
 ipsec whack --impair revival
road #
 echo initdone
initdone
road #
 ipsec up road-east
"road-east" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"road-east" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"road-east" #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
"road-east" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"road-east" #1: initiator established IKE SA; authenticated peer certificate 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-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, E=testing@libreswan.org'
"road-east" #2: received INTERNAL_IP4_ADDRESS 192.0.2.101
"road-east" #2: received INTERNAL_IP4_DNS 1.2.3.4
"road-east" #2: received INTERNAL_IP4_DNS 5.6.7.8
"road-east" #2: up-client output: updating resolvconf
"road-east" #2: initiator established Child SA using #1; IPsec tunnel [192.0.2.101/32===0.0.0.0/0] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
road #
 ../../guestbin/ping-once.sh --up 192.0.2.254
up
road #
 ipsec trafficstatus
#2: "road-east", 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, E=user-east@testing.libreswan.org', lease=192.0.2.101/32
road #
 echo done
done
road #
 # wait for ROAD to block on revival
road #
 ../../guestbin/wait-for-pluto.sh "IMPAIR: redirect"
"road-east" #2: IMPAIR: redirect: skip scheduling redirect event
road #
 ipsec whack --impair trigger_revival:1
"road-east": IMPAIR: dispatch REVIVAL; redirect attempt 1 from 192.1.2.23 to 192.1.2.45; received Delete/Notify
"road-east" #3: initiating IKEv2 connection to 192.1.2.45 using UDP
"road-east" #3: sent IKE_SA_INIT request to 192.1.2.45:UDP/500
"road-east" #3: processed IKE_SA_INIT response from 192.1.2.45:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH
"road-east" #3: sent IKE_AUTH request to 192.1.2.45:UDP/500
"road-east" #3: initiator established IKE SA; authenticated peer certificate 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-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, E=testing@libreswan.org'
"road-east" #4: received INTERNAL_IP4_ADDRESS 192.0.2.102
"road-east" #4: received INTERNAL_IP4_DNS 1.2.3.4
"road-east" #4: received INTERNAL_IP4_DNS 5.6.7.8
"road-east" #4: up-client output: updating resolvconf
"road-east" #4: up-client output: Current resolv.conf is generated by Libreswan, not creating a new backup
"road-east" #4: initiator established Child SA using #3; IPsec tunnel [192.0.2.102/32===0.0.0.0/0] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
road #
 ../../guestbin/ping-once.sh --up 192.0.2.254
up
road #
 ipsec trafficstatus
#4: "road-east", 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, E=user-east@testing.libreswan.org', lease=192.0.2.102/32
road #
 ipsec connectionstatus
Connection list:
 
"road-east": 192.0.2.102/32===192.1.3.209[C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=road.testing.libreswan.org, E=user-road@testing.libreswan.org,+MC+S=C]---192.1.3.254...192.1.2.45<192.1.2.23>[C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org,MS+S=C]===0.0.0.0/0; routed-tunnel; my_ip=192.0.2.102; their_ip=unset;
"road-east":   host: oriented; local: 192.1.3.209; remote: 192.1.2.45<192.1.2.23>; established IKE SA: #3;
"road-east":   mycert=road; my_updown=ipsec _updown;
"road-east":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
"road-east":   our auth:rsasig(RSASIG+RSASIG_v1_5), their auth:RSASIG+ECDSA+RSASIG_v1_5, our autheap:none, their autheap:none;
"road-east":   modecfg info: us:client, them:server, modecfg policy:pull, dns:1.2.3.4, 5.6.7.8, domains:unset, cat:unset;
"road-east":   sec_label:unset;
"road-east":   CAs: 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org'...'%any'
"road-east":   ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 100%;
"road-east":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"road-east":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"road-east":   policy: IKEv2+RSASIG+ECDSA+RSASIG_v1_5+ENCRYPT+TUNNEL+PFS+UP+MODECFG_PULL+ACCEPT_REDIRECT_YES+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"road-east":   v2-auth-hash-policy: SHA2_256+SHA2_384+SHA2_512;
"road-east":   conn_prio: 32,0; interface: eth0; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"road-east":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"road-east":   our idtype: ID_DER_ASN1_DN; our id=C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=road.testing.libreswan.org, E=user-road@testing.libreswan.org; their idtype: ID_DER_ASN1_DN; their id=C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org
"road-east":   liveness: passive; dpddelay:0s; retransmit-timeout:60s
"road-east":   nat-traversal: encapsulation:auto; keepalive:20s
"road-east":   routing: routed-tunnel; owner: Child SA #4; established IKE SA: #3; established Child SA: #4;
"road-east":   conn serial: $1;
"road-east":   IKEv2 algorithm newest: AES_GCM_16_256-HMAC_SHA2_512-DH19
"road-east":   ESP algorithm newest: AES_GCM_16_256-NONE; pfsgroup=<Phase1>
 
Total IPsec connections: loaded 1, active 1
road #
 ../../guestbin/ipsec-kernel-state.sh
src 192.1.3.209 dst 192.1.2.45
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec esn
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 128, bitmap-length 4
	 00000000 00000000 00000000 XXXXXXXX 
src 192.1.2.45 dst 192.1.3.209
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec esn
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 128, bitmap-length 4
	 00000000 00000000 00000000 XXXXXXXX 
road #
 ../../guestbin/ipsec-kernel-policy.sh
src 0.0.0.0/0 dst 192.0.2.102/32
	dir fwd priority PRIORITY ptype main
	tmpl src 192.1.2.45 dst 192.1.3.209
		proto esp reqid REQID mode tunnel
src 0.0.0.0/0 dst 192.0.2.102/32
	dir in priority PRIORITY ptype main
	tmpl src 192.1.2.45 dst 192.1.3.209
		proto esp reqid REQID mode tunnel
src 192.0.2.102/32 dst 0.0.0.0/0
	dir out priority PRIORITY ptype main
	tmpl src 192.1.3.209 dst 192.1.2.45
		proto esp reqid REQID mode tunnel
road #
 
