/testing/guestbin/prep.sh
ipsec.conf -> /etc/ipsec.conf
ipsec.secrets -> /etc/ipsec.secrets
road #
 ipsec start
Redirecting to: [initsystem]
road #
 ../../guestbin/wait-until-pluto-started
road #
 ../../guestbin/mount-bind.sh /etc/hosts /etc/hosts
/etc/hosts /tmp/hosts.road.ikev2-ddns-04-revival-hosts /etc/hosts
road #
 echo "192.1.2.23 right.testing.libreswan.org" >> /etc/hosts # EAST
road #
 ipsec add road-right
"road-right": added oriented IKEv2 connection
road #
 ipsec up road-right
"road-right" #1: initiating IKEv2 connection to 192.1.2.23 (right.testing.libreswan.org) using UDP
"road-right" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"road-right" #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 ke=DH19}, initiating IKE_AUTH
"road-right" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500 with shared-key-mac and FQDN '@west'; Child SA #2 {ESP <0xESPESP} [192.0.1.0/24===192.0.2.0/24]
"road-right" #1: processing IKE_AUTH response from 192.1.2.23:UDP/500 containing SK{IDr,AUTH,SA,TSi,TSr}
"road-right" #1: initiator established IKE SA; authenticated peer using authby=secret and FQDN '@east'
"road-right" #2: initiator established Child SA using #1; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256 DPD=passive}
road #
 cp /etc/hosts /tmp/west.hosts
road #
 sed -e '/right.testing.libreswan.org/ s/.*/192.1.2.45 right.testing.libreswan.org/' /tmp/west.hosts > /etc/hosts # WEST
road #
 ../../guestbin/wait-for-pluto.sh --match '#2: connection is supposed to remain up'
"road-right" #2: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
road #
 ../../guestbin/wait-for-pluto.sh --match '#3: initiating IKEv2 connection'
"road-right" #3: initiating IKEv2 connection to 192.1.2.23 (right.testing.libreswan.org) using UDP
road #
 ../../guestbin/wait-for-pluto.sh --match '#3: deleting IKE SA'
"road-right" #3: deleting IKE SA (sent IKE_SA_INIT request)
road #
 ../../guestbin/wait-for-pluto.sh --match '#4: initiating IKEv2 connection'
"road-right" #4: initiating IKEv2 connection to 192.1.2.45 (right.testing.libreswan.org) using UDP
road #
 ../../guestbin/wait-for-pluto.sh --match '#4: initiator established IKE SA'
"road-right" #4: initiator established IKE SA; authenticated peer using authby=secret and FQDN '@east'
road #
 ../../guestbin/wait-for-pluto.sh --match '#5: initiator established Child SA'
"road-right" #5: initiator established Child SA using #4; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256 DPD=passive}
road #
 ipsec _kernel state
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 0, bitmap-length 0
	dir out
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 
	dir in
road #
 ipsec _kernel policy
src 192.0.1.0/24 dst 192.0.2.0/24
	dir out priority PRIORITY ptype main
	tmpl src 192.1.3.209 dst 192.1.2.45
		proto esp reqid REQID mode tunnel
src 192.0.2.0/24 dst 192.0.1.0/24
	dir fwd 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.0/24 dst 192.0.1.0/24
	dir in priority PRIORITY ptype main
	tmpl src 192.1.2.45 dst 192.1.3.209
		proto esp reqid REQID mode tunnel
src ::/0 dst ::/0 proto ipv6-icmp type 135
	dir fwd priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 135
	dir in priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 135
	dir out priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 136
	dir fwd priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 136
	dir in priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 136
	dir out priority PRIORITY ptype main
road #
