/testing/guestbin/swan-prep
road #
 ip addr add 192.1.3.210/24 dev eth0
road #
 ipsec start
Redirecting to: [initsystem]
road #
 ../../guestbin/wait-until-pluto-started
road #
 echo "initdone"
initdone
road #
 # bring up server behind NAT "road"
road #
 ipsec auto --add road-east
"road-east": added IKEv1 connection
road #
 ipsec auto --up road-east
"road-east" #1: IKEv1 Aggressive Mode with PSK is vulnerable to dictionary attacks and is cracked on large scale by TLA's
"road-east" #1: initiating IKEv1 Aggressive Mode connection
"road-east" #1: sent Aggressive Mode request
"road-east" #1: Peer ID is ID_FQDN: '@east'
"road-east" #1: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
"road-east" #2: initiating Quick Mode IKEv1+PSK+ENCRYPT+TUNNEL+PFS+UP+AGGRESSIVE+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
"road-east" #2: sent Quick Mode request
"road-east" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA2_256_128 DPD=passive}
road #
 # sleep 3
road #
 ipsec trafficstatus
#2: "road-east", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@east'
road #
 # emulate bringing up second server behind same NAT "runner"
road #
 ipsec whack --impair send_no_delete
road #
 ipsec auto --delete road-east
"road-east": terminating SAs using this connection
"road-east" #2: deleting IPsec SA (QUICK_I2) and sending notification using ISAKMP SA #1
"road-east" #2: IMPAIR: impair-send-no-delete set - not sending Delete/Notify
"road-east" #2: ESP traffic information: in=0B out=0B
"road-east" #1: deleting ISAKMP SA (AGGR_I2) and sending notification
"road-east" #1: IMPAIR: impair-send-no-delete set - not sending Delete/Notify
road #
 ipsec auto --add runner-east
"runner-east": added IKEv1 connection
road #
 ipsec auto --up runner-east
"runner-east" #3: IKEv1 Aggressive Mode with PSK is vulnerable to dictionary attacks and is cracked on large scale by TLA's
"runner-east" #3: initiating IKEv1 Aggressive Mode connection
"runner-east" #3: sent Aggressive Mode request
"runner-east" #3: Peer ID is ID_FQDN: '@east'
"runner-east" #3: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
"runner-east" #4: initiating Quick Mode IKEv1+PSK+ENCRYPT+TUNNEL+PFS+UP+AGGRESSIVE+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
"runner-east" #4: sent Quick Mode request
"runner-east" #4: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA2_256_128 DPD=passive}
road #
 echo done
done
road #
 ipsec whack --trafficstatus
#4: "runner-east", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@east'
road #
 
