/testing/guestbin/swan-prep
road #
 echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
road #
 ipsec start
Redirecting to: [initsystem]
road #
 ../../guestbin/wait-until-pluto-started
road #
 ipsec whack --impair suppress_retransmits
road #
 ipsec whack --impair revival
road #
 ipsec auto --add road
"road": added IKEv2 connection
road #
 echo "initdone"
initdone
road #
 ipsec auto --up road
"road" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"road" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"road" #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH
"road" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"road" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"road" #2: initiator established Child SA using #1; IPsec tunnel [192.1.3.209/32===192.1.2.23/32] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
road #
 # give few seconds for tcpdump on east to sync output file
road #
 sleep 5
road #
 # do not send a ping yet. It would confuse the tcpdump output
road #
 # ping -w 4 -c 4 192.1.2.23
road #
 echo done
done
road #
 ../../guestbin/xfrmcheck.sh
road #
 # traffic should be 0 bytes in both directions
road #
 ipsec whack --trafficstatus
#2: "road", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@east'
road #
 hostname | grep east > /dev/null && ../../guestbin/tcpdump.sh --stop -i eth1
road #
 hostname | grep east > /dev/null && ../../guestbin/ip.sh -s link show ipsec1
road #
 hostname | grep east > /dev/null && ../../guestbin/ip.sh rule show
road #
 hostname | grep east > /dev/null && ../../guestbin/ip.sh route show table 50
road #
 hostname | grep east > /dev/null && ../../guestbin/ip.sh route
road #
 
