/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
west #
 # confirm that the network is alive
west #
 ../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254
destination -I 192.0.1.254 192.0.2.254 is alive
west #
 # ensure 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 #
 # confirm clear text does not get through
west #
 ../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254
down
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec whack --impair suppress_retransmits
west #
 echo "initdone"
initdone
west #
 ipsec whack --impair suppress_retransmits --debug crypt
west #
 ../../guestbin/libreswan-up-down.sh ike=chacha20poly1305-sha2-dh19 -I 192.0.1.254 192.0.2.254
"ike=chacha20poly1305-sha2-dh19": added IKEv2 connection
"ike=chacha20poly1305-sha2-dh19" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"ike=chacha20poly1305-sha2-dh19" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"ike=chacha20poly1305-sha2-dh19" #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=CHACHA20_POLY1305_256 integ=n/a prf=HMAC_SHA2_256 group=DH19}, initiating IKE_AUTH
"ike=chacha20poly1305-sha2-dh19" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"ike=chacha20poly1305-sha2-dh19" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"ike=chacha20poly1305-sha2-dh19" #2: initiator established Child SA using #1; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_256-HMAC_SHA2_256_128 DPD=passive}
up
"ike=chacha20poly1305-sha2-dh19": terminating SAs using this connection
"ike=chacha20poly1305-sha2-dh19" #1: sent INFORMATIONAL request to delete IKE SA
"ike=chacha20poly1305-sha2-dh19" #2: ESP traffic information: in=84B out=84B
"ike=chacha20poly1305-sha2-dh19" #1: deleting IKE SA (established IKE SA)
west #
 ../../guestbin/libreswan-up-down.sh ike=aes128-sha2-dh19 -I 192.0.1.254 192.0.2.254
"ike=aes128-sha2-dh19": added IKEv2 connection
"ike=aes128-sha2-dh19" #3: initiating IKEv2 connection to 192.1.2.23 using UDP
"ike=aes128-sha2-dh19" #3: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"ike=aes128-sha2-dh19" #3: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=HMAC_SHA2_256_128 prf=HMAC_SHA2_256 group=DH19}, initiating IKE_AUTH
"ike=aes128-sha2-dh19" #3: sent IKE_AUTH request to 192.1.2.23:UDP/500
"ike=aes128-sha2-dh19" #3: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"ike=aes128-sha2-dh19" #4: initiator established Child SA using #3; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_256-HMAC_SHA2_256_128 DPD=passive}
up
"ike=aes128-sha2-dh19": terminating SAs using this connection
"ike=aes128-sha2-dh19" #3: sent INFORMATIONAL request to delete IKE SA
"ike=aes128-sha2-dh19" #4: ESP traffic information: in=84B out=84B
"ike=aes128-sha2-dh19" #3: deleting IKE SA (established IKE SA)
west #
 ../../guestbin/libreswan-up-down.sh ike=aes128-sha2-dh20 -I 192.0.1.254 192.0.2.254
"ike=aes128-sha2-dh20": added IKEv2 connection
"ike=aes128-sha2-dh20" #5: initiating IKEv2 connection to 192.1.2.23 using UDP
"ike=aes128-sha2-dh20" #5: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"ike=aes128-sha2-dh20" #5: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=HMAC_SHA2_256_128 prf=HMAC_SHA2_256 group=DH20}, initiating IKE_AUTH
"ike=aes128-sha2-dh20" #5: sent IKE_AUTH request to 192.1.2.23:UDP/500
"ike=aes128-sha2-dh20" #5: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"ike=aes128-sha2-dh20" #6: initiator established Child SA using #5; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_256-HMAC_SHA2_256_128 DPD=passive}
up
"ike=aes128-sha2-dh20": terminating SAs using this connection
"ike=aes128-sha2-dh20" #5: sent INFORMATIONAL request to delete IKE SA
"ike=aes128-sha2-dh20" #6: ESP traffic information: in=84B out=84B
"ike=aes128-sha2-dh20" #5: deleting IKE SA (established IKE SA)
west #
 ../../guestbin/libreswan-up-down.sh ike=aes128-sha2-dh21 -I 192.0.1.254 192.0.2.254
"ike=aes128-sha2-dh21": added IKEv2 connection
"ike=aes128-sha2-dh21" #7: initiating IKEv2 connection to 192.1.2.23 using UDP
"ike=aes128-sha2-dh21" #7: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"ike=aes128-sha2-dh21" #7: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=HMAC_SHA2_256_128 prf=HMAC_SHA2_256 group=DH21}, initiating IKE_AUTH
"ike=aes128-sha2-dh21" #7: sent IKE_AUTH request to 192.1.2.23:UDP/500
"ike=aes128-sha2-dh21" #7: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"ike=aes128-sha2-dh21" #8: initiator established Child SA using #7; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_256-HMAC_SHA2_256_128 DPD=passive}
up
"ike=aes128-sha2-dh21": terminating SAs using this connection
"ike=aes128-sha2-dh21" #7: sent INFORMATIONAL request to delete IKE SA
"ike=aes128-sha2-dh21" #8: ESP traffic information: in=84B out=84B
"ike=aes128-sha2-dh21" #7: deleting IKE SA (established IKE SA)
west #
 ../../guestbin/libreswan-up-down.sh ike=aes128-sha1-dh19 -I 192.0.1.254 192.0.2.254
"ike=aes128-sha1-dh19": added IKEv2 connection
"ike=aes128-sha1-dh19" #9: initiating IKEv2 connection to 192.1.2.23 using UDP
"ike=aes128-sha1-dh19" #9: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"ike=aes128-sha1-dh19" #9: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=HMAC_SHA1_96 prf=HMAC_SHA1 group=DH19}, initiating IKE_AUTH
"ike=aes128-sha1-dh19" #9: sent IKE_AUTH request to 192.1.2.23:UDP/500
"ike=aes128-sha1-dh19" #9: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"ike=aes128-sha1-dh19" #10: initiator established Child SA using #9; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_256-HMAC_SHA2_256_128 DPD=passive}
up
"ike=aes128-sha1-dh19": terminating SAs using this connection
"ike=aes128-sha1-dh19" #9: sent INFORMATIONAL request to delete IKE SA
"ike=aes128-sha1-dh19" #10: ESP traffic information: in=84B out=84B
"ike=aes128-sha1-dh19" #9: deleting IKE SA (established IKE SA)
west #
 ../../guestbin/libreswan-up-down.sh ike=aes128-sha1-dh20 -I 192.0.1.254 192.0.2.254
"ike=aes128-sha1-dh20": added IKEv2 connection
"ike=aes128-sha1-dh20" #11: initiating IKEv2 connection to 192.1.2.23 using UDP
"ike=aes128-sha1-dh20" #11: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"ike=aes128-sha1-dh20" #11: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=HMAC_SHA1_96 prf=HMAC_SHA1 group=DH20}, initiating IKE_AUTH
"ike=aes128-sha1-dh20" #11: sent IKE_AUTH request to 192.1.2.23:UDP/500
"ike=aes128-sha1-dh20" #11: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"ike=aes128-sha1-dh20" #12: initiator established Child SA using #11; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_256-HMAC_SHA2_256_128 DPD=passive}
up
"ike=aes128-sha1-dh20": terminating SAs using this connection
"ike=aes128-sha1-dh20" #11: sent INFORMATIONAL request to delete IKE SA
"ike=aes128-sha1-dh20" #12: ESP traffic information: in=84B out=84B
"ike=aes128-sha1-dh20" #11: deleting IKE SA (established IKE SA)
west #
 ../../guestbin/libreswan-up-down.sh ike=aes128-sha1-dh21 -I 192.0.1.254 192.0.2.254
"ike=aes128-sha1-dh21": added IKEv2 connection
"ike=aes128-sha1-dh21" #13: initiating IKEv2 connection to 192.1.2.23 using UDP
"ike=aes128-sha1-dh21" #13: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"ike=aes128-sha1-dh21" #13: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=HMAC_SHA1_96 prf=HMAC_SHA1 group=DH21}, initiating IKE_AUTH
"ike=aes128-sha1-dh21" #13: sent IKE_AUTH request to 192.1.2.23:UDP/500
"ike=aes128-sha1-dh21" #13: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"ike=aes128-sha1-dh21" #14: initiator established Child SA using #13; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_256-HMAC_SHA2_256_128 DPD=passive}
up
"ike=aes128-sha1-dh21": terminating SAs using this connection
"ike=aes128-sha1-dh21" #13: sent INFORMATIONAL request to delete IKE SA
"ike=aes128-sha1-dh21" #14: ESP traffic information: in=84B out=84B
"ike=aes128-sha1-dh21" #13: deleting IKE SA (established IKE SA)
west #
 ../../guestbin/libreswan-up-down.sh ike=aes_ctr128-sha1-dh21 -I 192.0.1.254 192.0.2.254
"ike=aes_ctr128-sha1-dh21": added IKEv2 connection
"ike=aes_ctr128-sha1-dh21" #15: initiating IKEv2 connection to 192.1.2.23 using UDP
"ike=aes_ctr128-sha1-dh21" #15: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"ike=aes_ctr128-sha1-dh21" #15: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CTR_128 integ=HMAC_SHA1_96 prf=HMAC_SHA1 group=DH21}, initiating IKE_AUTH
"ike=aes_ctr128-sha1-dh21" #15: sent IKE_AUTH request to 192.1.2.23:UDP/500
"ike=aes_ctr128-sha1-dh21" #15: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"ike=aes_ctr128-sha1-dh21" #16: initiator established Child SA using #15; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_256-HMAC_SHA2_256_128 DPD=passive}
up
"ike=aes_ctr128-sha1-dh21": terminating SAs using this connection
"ike=aes_ctr128-sha1-dh21" #15: sent INFORMATIONAL request to delete IKE SA
"ike=aes_ctr128-sha1-dh21" #16: ESP traffic information: in=84B out=84B
"ike=aes_ctr128-sha1-dh21" #15: deleting IKE SA (established IKE SA)
west #
 ../../guestbin/libreswan-up-down.sh ike=3des-sha2-modp2048 -I 192.0.1.254 192.0.2.254
"ike=3des-sha2-modp2048": added IKEv2 connection
"ike=3des-sha2-modp2048" #17: initiating IKEv2 connection to 192.1.2.23 using UDP
"ike=3des-sha2-modp2048" #17: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"ike=3des-sha2-modp2048" #17: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=3DES_CBC_192 integ=HMAC_SHA2_256_128 prf=HMAC_SHA2_256 group=MODP2048}, initiating IKE_AUTH
"ike=3des-sha2-modp2048" #17: sent IKE_AUTH request to 192.1.2.23:UDP/500
"ike=3des-sha2-modp2048" #17: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"ike=3des-sha2-modp2048" #18: initiator established Child SA using #17; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_256-HMAC_SHA2_256_128 DPD=passive}
up
"ike=3des-sha2-modp2048": terminating SAs using this connection
"ike=3des-sha2-modp2048" #17: sent INFORMATIONAL request to delete IKE SA
"ike=3des-sha2-modp2048" #18: ESP traffic information: in=84B out=84B
"ike=3des-sha2-modp2048" #17: deleting IKE SA (established IKE SA)
west #
 ../../guestbin/libreswan-up-down.sh ike=aes128-aes_xcbc-modp2048 -I 192.0.1.254 192.0.2.254
"ike=aes128-aes_xcbc-modp2048": added IKEv2 connection
"ike=aes128-aes_xcbc-modp2048" #19: initiating IKEv2 connection to 192.1.2.23 using UDP
"ike=aes128-aes_xcbc-modp2048" #19: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"ike=aes128-aes_xcbc-modp2048" #19: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=AES_XCBC_96 prf=AES_XCBC group=MODP2048}, initiating IKE_AUTH
"ike=aes128-aes_xcbc-modp2048" #19: sent IKE_AUTH request to 192.1.2.23:UDP/500
"ike=aes128-aes_xcbc-modp2048" #19: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"ike=aes128-aes_xcbc-modp2048" #20: initiator established Child SA using #19; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_256-HMAC_SHA2_256_128 DPD=passive}
up
"ike=aes128-aes_xcbc-modp2048": terminating SAs using this connection
"ike=aes128-aes_xcbc-modp2048" #19: sent INFORMATIONAL request to delete IKE SA
"ike=aes128-aes_xcbc-modp2048" #20: ESP traffic information: in=84B out=84B
"ike=aes128-aes_xcbc-modp2048" #19: deleting IKE SA (established IKE SA)
west #
 echo done
done
west #
 if [ -f /var/run/pluto/pluto.pid ]; then ../../guestbin/ipsec-kernel-state.sh ; fi
west #
 if [ -f /var/run/pluto/pluto.pid ]; then ../../guestbin/ipsec-kernel-policy.sh ; fi
west #
 if [ -f /var/run/charon.pid -o -f /var/run/strongswan/charon.pid ]; then strongswan statusall ; fi
west #
 
