/testing/guestbin/swan-prep
road #
 ipsec start
Redirecting to: [initsystem]
road #
 ../../guestbin/wait-until-pluto-started
road #
 ipsec whack --impair suppress-retransmits
road #
 ipsec auto --add road-eastnet-forceencaps
002 "road-eastnet-forceencaps": added IKEv2 connection
road #
 ipsec status |grep encaps:
000 "road-eastnet-forceencaps":   dpd: action:hold; delay:0; timeout:0; nat-t: encaps:yes; nat_keepalive:yes; ikev1_natt:both
road #
 echo "initdone"
initdone
road #
 ipsec whack --name road-eastnet-forceencaps --initiate
1v2 "road-eastnet-forceencaps" #1: initiating IKEv2 connection
1v2 "road-eastnet-forceencaps" #1: sent IKE_SA_INIT request
1v2 "road-eastnet-forceencaps" #1: sent IKE_AUTH request {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
003 "road-eastnet-forceencaps" #1: established IKE SA; authenticated using RSA with SHA2_512 and preloaded certificate '@east'
004 "road-eastnet-forceencaps" #2: established Child SA using #1; IPsec tunnel [192.1.3.209-192.1.3.209:0-65535 0] -> [192.0.2.0-192.0.2.255:0-65535 0] {ESPinUDP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATD=192.1.2.23:4500 DPD=passive}
road #
 ../../guestbin/ping-once.sh --up 192.0.2.254
up
road #
 ipsec whack --trafficstatus
006 #2: "road-eastnet-forceencaps", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, id='@east'
road #
 echo done
done
road #
 # this should show encap tunnel on both ends
road #
 ip xfrm state |grep encap
	encap type espinudp sport 4500 dport 4500 addr 0.0.0.0
	encap type espinudp sport 4500 dport 4500 addr 0.0.0.0
road #
 
