/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
north #
 /testing/x509/import.sh real/mainca/`hostname`.all.p12
ipsec pk12util -w nss-pw -i real/mainca/north.all.p12
pk12util: PKCS12 IMPORT SUCCESSFUL
ipsec certutil -M -n mainca -t CT,,
north #
 ipsec start
Redirecting to: [initsystem]
north #
 ../../guestbin/wait-until-pluto-started
north #
 ipsec add north-east
"north-east": added IKEv2 connection
north #
 ipsec whack --impair revival
north #
 ipsec whack --impair suppress_retransmits
north #
 echo initdone
initdone
north #
 ipsec up north-east
"north-east" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"north-east" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"north-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
"north-east" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"north-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'
"north-east" #2: received INTERNAL_IP4_ADDRESS 192.0.2.102
"north-east" #2: received INTERNAL_IP4_DNS 1.2.3.4
"north-east" #2: received INTERNAL_IP4_DNS 5.6.7.8
"north-east" #2: up-client output: updating resolvconf
"north-east" #2: initiator established Child SA using #1; IPsec tunnel [192.0.2.102/32===0.0.0.0/0] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
north #
 ../../guestbin/ping-once.sh --up 192.0.2.254
up
north #
 ipsec trafficstatus
#2: "north-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.102/32
north #
 echo done
done
north #
 # wait for NORTH to block on revival
north #
 ../../guestbin/wait-for-pluto.sh "IMPAIR: redirect"
"north-east" #2: IMPAIR: redirect: skip scheduling redirect event
north #
 ipsec whack --impair trigger_revival:1
"north-east": IMPAIR: dispatch REVIVAL; redirect attempt 1 from 192.1.2.23 to 192.1.2.45; received Delete/Notify
"north-east" #3: initiating IKEv2 connection to 192.1.2.45 using UDP
"north-east" #3: sent IKE_SA_INIT request to 192.1.2.45:UDP/500
"north-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
"north-east" #3: sent IKE_AUTH request to 192.1.2.45:UDP/500
"north-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'
"north-east" #4: received INTERNAL_IP4_ADDRESS 192.0.2.102
"north-east" #4: received INTERNAL_IP4_DNS 1.2.3.4
"north-east" #4: received INTERNAL_IP4_DNS 5.6.7.8
"north-east" #4: up-client output: updating resolvconf
"north-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}
north #
 ../../guestbin/ping-once.sh --up 192.0.2.254
up
north #
 ipsec trafficstatus
#4: "north-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.102/32
north #
 ipsec connectionstatus
Connection list:
 
"north-east": 192.0.2.102/32===192.1.3.33[C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=north.testing.libreswan.org, E=user-north@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;
"north-east":   host: oriented; local: 192.1.3.33; remote: 192.1.2.45<192.1.2.23>; established IKE SA: #3;
"north-east":   mycert=north; my_updown=ipsec _updown;
"north-east":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
"north-east":   our auth:rsasig(RSASIG+RSASIG_v1_5), their auth:RSASIG+ECDSA+RSASIG_v1_5, our autheap:none, their autheap:none;
"north-east":   modecfg info: us:client, them:server, modecfg policy:pull, dns:1.2.3.4, 5.6.7.8, domains:unset, cat:unset;
"north-east":   sec_label:unset;
"north-east":   CAs: 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org'...'%any'
"north-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%;
"north-east":   iptfs: no; fragmentation: yes; packet-size: 0; max-queue-size: 0; drop-time: 0; init-delay: 0; reorder-window: 0;
"north-east":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"north-east":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"north-east":   policy: IKEv2+RSASIG+ECDSA+RSASIG_v1_5+ENCRYPT+TUNNEL+PFS+UP+MODECFG_PULL+ACCEPT_REDIRECT_YES+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"north-east":   v2-auth-hash-policy: SHA2_256+SHA2_384+SHA2_512;
"north-east":   conn_prio: 32,0,0; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"north-east":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"north-east":   our idtype: ID_DER_ASN1_DN; our id=C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=north.testing.libreswan.org, E=user-north@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
"north-east":   liveness: passive; dpddelay:0s; retransmit-timeout:60s
"north-east":   nat-traversal: encapsulation:auto; keepalive:20s
"north-east":   routing: routed-tunnel; owner: Child SA #4; established IKE SA: #3; established Child SA: #4;
"north-east":   conn serial: $1;
"north-east":   IKEv2 algorithm newest: AES_GCM_16_256-HMAC_SHA2_512-DH19
"north-east":   ESP algorithm newest: AES_GCM_16_256-NONE; pfsgroup=<Phase1>
 
Total IPsec connections: loaded 1, active 1
north #
 ../../guestbin/ipsec-kernel-state.sh
src 192.1.3.33 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
	lastused YYYY-MM-DD HH:MM:SS
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 0, bitmap-length 0
src 192.1.2.45 dst 192.1.3.33
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec esn
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
	lastused YYYY-MM-DD HH:MM:SS
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 128, bitmap-length 4
	 00000000 00000000 00000000 XXXXXXXX 
north #
 ../../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.33
		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.33
		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.33 dst 192.1.2.45
		proto esp reqid REQID mode tunnel
north #
 
