iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT
road #
 iptables -A INPUT -p icmp --icmp-type echo-reply -j DROP
road #
 /testing/guestbin/swan-prep
road #
 ipsec start
Redirecting to: [initsystem]
road #
 ../../guestbin/wait-until-pluto-started
road #
 ipsec auto --add road-eastnet
002 "road-eastnet": added IKEv2 connection
road #
 echo done
done
road #
 ipsec auto --up road-eastnet
1v2 "road-eastnet" #1: initiating IKEv2 connection
1v2 "road-eastnet" #1: sent IKE_SA_INIT request
1v2 "road-eastnet" #1: sent IKE_AUTH request {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
003 "road-eastnet" #1: established IKE SA; authenticated using RSA with SHA2_512 and preloaded certificate '@east'
004 "road-eastnet" #2: established Child SA; IPsec tunnel [192.1.3.209-192.1.3.209:0-65535 0] -> [192.0.2.0-192.0.2.255:0-65535 0] {ESP=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE 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", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, id='@east'
road #
 echo done
done
road #
 if [ -f /etc/pam.d/pluto.stock ]; then mv /etc/pam.d/pluto.stock /etc/pam.d/pluto ; fi
road #
 
