/testing/guestbin/swan-prep
road #
 # confirm that the network is alive
road #
 ../../guestbin/wait-until-alive 192.1.2.23
destination 192.1.2.23 is alive
road #
 ipsec start
Redirecting to: [initsystem]
road #
 ../../guestbin/wait-until-pluto-started
road #
 ipsec auto --add road-east-7
"road-east-7": added IKEv1 connection
road #
 echo done
done
road #
 ipsec auto --up road-east-7
"road-east-7" #1: initiating IKEv1 Main Mode connection
"road-east-7" #1: sent Main Mode request
"road-east-7" #1: sent Main Mode I2
"road-east-7" #1: sent Main Mode I3
"road-east-7" #1: Peer ID is FQDN: '@east'
"road-east-7" #1: authenticated peer using preloaded certificate '@east' and 2nnn-bit RSA with SHA1 signature
"road-east-7" #1: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
"road-east-7" #2: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
"road-east-7" #2: sent Quick Mode request
"road-east-7" #2: IPsec SA established transport mode {ESPinUDP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 NATD=192.1.2.23:4500 DPD=passive}
road #
 # port 2 does NOT go over ipsec, IPsec traffic should remain 0
road #
 echo test | nc 192.1.2.23 2
Ncat: Connection refused.
road #
 ipsec trafficstatus
#2: "road-east-7", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@east'
road #
 # port 7 goes over ipsec, traffic counters should be non-zero
road #
 echo test | nc 192.1.2.23 7
Ncat: Connection refused.
road #
 ipsec trafficstatus
#2: "road-east-7", type=ESP, add_time=1234567890, inBytes=20, outBytes=40, maxBytes=2^63B, id='@east'
road #
 echo done
done
road #
