/testing/guestbin/swan-prep
east #
 ipsec start
Redirecting to: [initsystem]
east #
 echo "xnorth:xOzlFlqtwJIu2:east-any:192.0.2.201" > /etc/ipsec.d/passwd
east #
 echo "xroad:xOzlFlqtwJIu2:east-any" >> /etc/ipsec.d/passwd
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add east-any
002 "east-any": added IKEv1 connection
east #
 echo initdone
initdone
east #
 ../../guestbin/wait-for.sh --match '^[^|].* #2: IPsec SA established' -- cat /tmp/pluto.log
"east-any"[2] 192.1.3.209 #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive username=xnorth}
east #
 ../../guestbin/wait-for.sh --match '^[^|].* #4: IPsec SA established' -- cat /tmp/pluto.log
"east-any"[2] 192.1.3.209 #4: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive username=xroad}
east #
 ipsec whack --trafficstatus
006 #2: "east-any"[1] 192.1.3.33, username=xnorth, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, lease=192.0.2.201/32
006 #4: "east-any"[2] 192.1.3.209, username=xroad, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, lease=192.0.2.101/32
east #
 
