/testing/guestbin/swan-prep
east #
 echo "xnorth:xOzlFlqtwJIu2:east-any" > /etc/ipsec.d/passwd
east #
 echo "xroad:xOzlFlqtwJIu2:east-any:192.0.2.100" >> /etc/ipsec.d/passwd
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add east-any
"east-any": added IKEv1 connection
east #
 #ipsec whack --impair suppress_retransmits
east #
 echo initdone
initdone
east #
 ../../guestbin/wait-for-pluto.sh '^[^|].* #2: IPsec SA established'
"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-pluto.sh '^[^|].* #4: IPsec SA established'
"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 #
 hostname | grep east > /dev/null && ipsec whack --trafficstatus
#2: "east-any"[1] 192.1.3.33, username=xnorth, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, lease=192.0.2.101/32
#4: "east-any"[2] 192.1.3.209, username=xroad, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, lease=192.0.2.100/32
east #
 hostname | grep east > /dev/null && ipsec stop
Redirecting to: [initsystem]
east #
 
