/testing/guestbin/swan-prep
road #
 ipsec start
Redirecting to: [initsystem]
road #
 ../../guestbin/wait-until-pluto-started
road #
 ipsec auto --add road-eastnet-nonat
002 "road-eastnet-nonat": added IKEv1 connection
road #
 # should show encaps no, natt payloads none
road #
 ipsec status | grep "encaps:"
000 "road-eastnet-nonat":   dpd: action:hold; delay:0; timeout:0; nat-t: encaps:no; nat_keepalive:yes; ikev1_natt:none
road #
 echo "initdone"
initdone
road #
 # Should show "ESP" and not "ESP/NAT"
road #
 ipsec whack --name road-eastnet-nonat --initiate
002 "road-eastnet-nonat" #1: initiating IKEv1 Main Mode connection
1v1 "road-eastnet-nonat" #1: sent Main Mode request
1v1 "road-eastnet-nonat" #1: sent Main Mode I2
1v1 "road-eastnet-nonat" #1: sent Main Mode I3
002 "road-eastnet-nonat" #1: Peer ID is ID_FQDN: '@east'
003 "road-eastnet-nonat" #1: authenticated using RSA with SHA1 and preloaded certificate '@east'
004 "road-eastnet-nonat" #1: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "road-eastnet-nonat" #2: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO
1v1 "road-eastnet-nonat" #2: sent Quick Mode request
004 "road-eastnet-nonat" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 NATOA=none NATD=none DPD=passive}
road #
 ../../guestbin/ping-once.sh --up 192.0.2.254
up
road #
 ipsec whack --trafficstatus
006 #2: "road-eastnet-nonat", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, id='@east'
road #
 echo done
done
road #
 
