/testing/guestbin/swan-prep
road #
 ipsec start
Redirecting to: [initsystem]
road #
 /testing/pluto/bin/wait-until-pluto-started
road #
 ipsec whack --impair suppress-retransmits
road #
 ipsec auto --add road-eastnet-forceencaps
002 added IKEv2 connection "road-eastnet-forceencaps"
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 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
002 "road-eastnet-forceencaps" #2: IKEv2 mode peer ID is ID_FQDN: '@east'
003 "road-eastnet-forceencaps" #1: authenticated using RSA with SHA2_512
002 "road-eastnet-forceencaps" #2: negotiated connection [192.1.3.209-192.1.3.209:0-65535 0] -> [192.0.2.0-192.0.2.255:0-65535 0]
004 "road-eastnet-forceencaps" #2: IPsec SA established tunnel mode {ESPinUDP=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATOA=none NATD=192.1.2.23:4500 DPD=passive}
road #
 ../../pluto/bin/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 #
 ../bin/check-for-core.sh
road #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi
road #
 
