/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
west #
 # make sure that clear text does not get through
west #
 iptables -A INPUT -i eth1 -s 192.0.2.0/24 -j DROP
west #
 iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add west
"west": added IKEv2 connection
west #
 echo "initdone"
initdone
west #
 ipsec whack --impair revival
west #
 # bring up west and then immediately re-key
west #
 ipsec auto --up west
"west" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"west" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"west" #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
"west" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500 with shared-key-mac and FQDN '@west'; Child SA #2 {ESP <0xESPESP}
"west" #1: initiator established IKE SA; authenticated peer using authby=secret and FQDN '@east'
"west" #2: initiator established Child SA using #1; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
west #
 ../../guestbin/ping-once.sh --up -I 192.0.1.254 192.0.2.254
up
west #
 ipsec whack --trafficstatus
#2: "west", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='@east'
west #
 ipsec whack --rekey-child --name west --async
west #
 ../../guestbin/wait-for-pluto.sh '^".*#3: initiator rekeyed Child SA #2'
"west" #3: initiator rekeyed Child SA #2 using #1; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE-DH19 DPD=passive}
west #
 ../../guestbin/wait-for-pluto.sh '^".*#2: ESP traffic information:'
"west" #2: ESP traffic information: in=84B out=84B
west #
 ipsec auto --down west
"west": initiating delete of connection's IKE SA #1 (and Child SA #3)
"west" #1: sent INFORMATIONAL request to delete IKE SA
"west" #3: ESP traffic information: in=0B out=0B
"west" #1: deleting IKE SA (established IKE SA)
west #
 # protoid=none
west #
 ipsec auto --up west
"west" #4: initiating IKEv2 connection to 192.1.2.23 using UDP
"west" #4: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"west" #4: 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
"west" #4: sent IKE_AUTH request to 192.1.2.23:UDP/500 with shared-key-mac and FQDN '@west'; Child SA #5 {ESP <0xESPESP}
"west" #4: initiator established IKE SA; authenticated peer using authby=secret and FQDN '@east'
"west" #5: initiator established Child SA using #4; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
west #
 ../../guestbin/ping-once.sh --up -I 192.0.1.254 192.0.2.254
up
west #
 ipsec whack --trafficstatus
#5: "west", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='@east'
west #
 ipsec whack --impair v2n_rekey_sa_protoid:0 --impair emitting
west #
 ipsec whack --rekey-child --name west --async
west #
 ../../guestbin/wait-for-pluto.sh '^".*#6: CREATE_CHILD_SA failed'
"west" #6: CREATE_CHILD_SA failed with error notification INVALID_SYNTAX
west #
 ipsec auto --down west
west #
 # protoid=IKE
west #
 ipsec auto --up west
"west" #7: initiating IKEv2 connection to 192.1.2.23 using UDP
"west" #7: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"west" #7: 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
"west" #7: sent IKE_AUTH request to 192.1.2.23:UDP/500 with shared-key-mac and FQDN '@west'; Child SA #8 {ESP <0xESPESP}
"west" #7: initiator established IKE SA; authenticated peer using authby=secret and FQDN '@east'
"west" #8: initiator established Child SA using #7; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
west #
 ../../guestbin/ping-once.sh --up -I 192.0.1.254 192.0.2.254
up
west #
 ipsec whack --trafficstatus
#8: "west", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='@east'
west #
 ipsec whack --impair v2n_rekey_sa_protoid:1 --impair emitting
west #
 ipsec whack --rekey-child --name west --async
west #
 ../../guestbin/wait-for-pluto.sh '^".*#9: CREATE_CHILD_SA failed'
"west" #9: CREATE_CHILD_SA failed with error notification INVALID_SYNTAX
west #
 ipsec auto --down west
west #
 # protoid=unknown
west #
 ipsec auto --up west
"west" #10: initiating IKEv2 connection to 192.1.2.23 using UDP
"west" #10: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"west" #10: 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
"west" #10: sent IKE_AUTH request to 192.1.2.23:UDP/500 with shared-key-mac and FQDN '@west'; Child SA #11 {ESP <0xESPESP}
"west" #10: initiator established IKE SA; authenticated peer using authby=secret and FQDN '@east'
"west" #11: initiator established Child SA using #10; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
west #
 ../../guestbin/ping-once.sh --up -I 192.0.1.254 192.0.2.254
up
west #
 ipsec whack --trafficstatus
#11: "west", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='@east'
west #
 ipsec whack --impair v2n_rekey_sa_protoid:4 --impair emitting
west #
 ipsec whack --rekey-child --name west --async
west #
 ../../guestbin/wait-for-pluto.sh '^".*#12: CREATE_CHILD_SA failed'
"west" #12: CREATE_CHILD_SA failed with error notification INVALID_SYNTAX
west #
 ipsec auto --down west
west #
 ipsec whack --trafficstatus
west #
