/testing/guestbin/swan-prep
road #
 ipsec start
Redirecting to: [initsystem]
road #
 ../../guestbin/wait-until-pluto-started
road #
 ipsec auto --add road-eastnet-forceencaps
002 "road-eastnet-forceencaps": added IKEv1 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
002 "road-eastnet-forceencaps" #1: initiating IKEv1 Main Mode connection
1v1 "road-eastnet-forceencaps" #1: sent Main Mode request
1v1 "road-eastnet-forceencaps" #1: sent Main Mode I2
1v1 "road-eastnet-forceencaps" #1: sent Main Mode I3
002 "road-eastnet-forceencaps" #1: Peer ID is ID_FQDN: '@east'
003 "road-eastnet-forceencaps" #1: authenticated using RSA with SHA1 and preloaded certificate '@east'
004 "road-eastnet-forceencaps" #1: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "road-eastnet-forceencaps" #2: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
1v1 "road-eastnet-forceencaps" #2: sent Quick Mode request
004 "road-eastnet-forceencaps" #2: IPsec SA established tunnel mode {ESPinUDP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 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 #
 
