/testing/guestbin/swan-prep
west #
 ipsec start
Redirecting to: [initsystem]
west #
 /testing/pluto/bin/wait-until-pluto-started
west #
 ipsec auto --add westnet-eastnet-ipv4-psk-ikev2
002 added IKEv2 connection "westnet-eastnet-ipv4-psk-ikev2"
west #
 ipsec auto --add westnet-eastnet-ipv4-psk-ikev2-b
002 added IKEv2 connection "westnet-eastnet-ipv4-psk-ikev2-b"
west #
 ipsec whack --impair suppress-retransmits
west #
 echo "initdone"
initdone
west #
 ipsec auto --up westnet-eastnet-ipv4-psk-ikev2
1v2 "westnet-eastnet-ipv4-psk-ikev2" #1: initiating IKEv2 connection
1v2 "westnet-eastnet-ipv4-psk-ikev2" #1: sent IKE_SA_INIT request
1v2 "westnet-eastnet-ipv4-psk-ikev2" #1: sent IKE_AUTH request {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
002 "westnet-eastnet-ipv4-psk-ikev2" #2: IKEv2 mode peer ID is ID_FQDN: '@east'
003 "westnet-eastnet-ipv4-psk-ikev2" #1: authenticated using authby=secret
002 "westnet-eastnet-ipv4-psk-ikev2" #2: negotiated connection [192.0.1.0-192.0.1.255:0-65535 0] -> [192.0.2.0-192.0.2.255:0-65535 0]
004 "westnet-eastnet-ipv4-psk-ikev2" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATOA=none NATD=none DPD=passive}
west #
 ipsec auto --up westnet-eastnet-ipv4-psk-ikev2-b
1v2 "westnet-eastnet-ipv4-psk-ikev2-b" #3: sent CREATE_CHILD_SA request for new IPsec SA
002 "westnet-eastnet-ipv4-psk-ikev2-b" #3: negotiated connection [192.0.1.0-192.0.1.255:0-65535 0] -> [192.0.3.0-192.0.3.255:0-65535 0]
004 "westnet-eastnet-ipv4-psk-ikev2-b" #3: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE-MODP2048 NATOA=none NATD=none DPD=passive}
west #
 echo done
done
west #
 ipsec trafficstatus
006 #2: "westnet-eastnet-ipv4-psk-ikev2", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, id='@east'
006 #3: "westnet-eastnet-ipv4-psk-ikev2-b", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, id='@east'
west #
 ../bin/check-for-core.sh
west #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi
west #
 
