/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 # echo "initdone" initdone west # ../../guestbin/libreswan-up-down.sh esp=null-md5 -I 192.0.1.254 192.0.2.254 "esp=null-md5": added IKEv2 connection "esp=null-md5" #1: initiating IKEv2 connection to 192.1.2.23 using UDP "esp=null-md5" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500 "esp=null-md5" #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=HMAC_SHA1_96 prf=HMAC_SHA1 group=MODP2048}, initiating IKE_AUTH "esp=null-md5" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500 "esp=null-md5" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east' "esp=null-md5" #2: initiator established Child SA using #1; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=NULL-HMAC_MD5_96 DPD=passive} up "esp=null-md5": initiating delete of connection's IKE SA #1 (and Child SA #2) "esp=null-md5" #1: sent INFORMATIONAL request to delete IKE SA "esp=null-md5" #2: ESP traffic information: in=84B out=84B "esp=null-md5" #1: deleting IKE SA (established IKE SA) west # ../../guestbin/libreswan-up-down.sh esp=null-sha1 -I 192.0.1.254 192.0.2.254 "esp=null-sha1": added IKEv2 connection "esp=null-sha1" #3: initiating IKEv2 connection to 192.1.2.23 using UDP "esp=null-sha1" #3: sent IKE_SA_INIT request to 192.1.2.23:UDP/500 "esp=null-sha1" #3: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=HMAC_SHA1_96 prf=HMAC_SHA1 group=MODP2048}, initiating IKE_AUTH "esp=null-sha1" #3: sent IKE_AUTH request to 192.1.2.23:UDP/500 "esp=null-sha1" #3: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east' "esp=null-sha1" #4: initiator established Child SA using #3; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=NULL-HMAC_SHA1_96 DPD=passive} up "esp=null-sha1": initiating delete of connection's IKE SA #3 (and Child SA #4) "esp=null-sha1" #3: sent INFORMATIONAL request to delete IKE SA "esp=null-sha1" #4: ESP traffic information: in=84B out=84B "esp=null-sha1" #3: deleting IKE SA (established IKE SA) west # ../../guestbin/libreswan-up-down.sh esp=null_auth_aes_gmac-null -I 192.0.1.254 192.0.2.254 "esp=null_auth_aes_gmac-null": added IKEv2 connection "esp=null_auth_aes_gmac-null" #5: initiating IKEv2 connection to 192.1.2.23 using UDP "esp=null_auth_aes_gmac-null" #5: sent IKE_SA_INIT request to 192.1.2.23:UDP/500 "esp=null_auth_aes_gmac-null" #5: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=HMAC_SHA1_96 prf=HMAC_SHA1 group=MODP2048}, initiating IKE_AUTH "esp=null_auth_aes_gmac-null" #5: sent IKE_AUTH request to 192.1.2.23:UDP/500 "esp=null_auth_aes_gmac-null" #5: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east' "esp=null_auth_aes_gmac-null" #6: initiator established Child SA using #5; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=NULL_AUTH_AES_GMAC_128-NONE DPD=passive} up "esp=null_auth_aes_gmac-null": initiating delete of connection's IKE SA #5 (and Child SA #6) "esp=null_auth_aes_gmac-null" #5: sent INFORMATIONAL request to delete IKE SA "esp=null_auth_aes_gmac-null" #6: ESP traffic information: in=84B out=84B "esp=null_auth_aes_gmac-null" #5: deleting IKE SA (established IKE SA) west # modinfo chacha20poly1305 > /dev/null && ../../guestbin/libreswan-up-down.sh esp=chacha20_poly1305-null -I 192.0.1.254 192.0.2.254 || true "esp=chacha20_poly1305-null": added IKEv2 connection "esp=chacha20_poly1305-null" #7: initiating IKEv2 connection to 192.1.2.23 using UDP "esp=chacha20_poly1305-null" #7: sent IKE_SA_INIT request to 192.1.2.23:UDP/500 "esp=chacha20_poly1305-null" #7: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=HMAC_SHA1_96 prf=HMAC_SHA1 group=MODP2048}, initiating IKE_AUTH "esp=chacha20_poly1305-null" #7: sent IKE_AUTH request to 192.1.2.23:UDP/500 "esp=chacha20_poly1305-null" #7: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east' "esp=chacha20_poly1305-null" #8: initiator established Child SA using #7; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=CHACHA20_POLY1305-NONE DPD=passive} up "esp=chacha20_poly1305-null": initiating delete of connection's IKE SA #7 (and Child SA #8) "esp=chacha20_poly1305-null" #7: sent INFORMATIONAL request to delete IKE SA "esp=chacha20_poly1305-null" #8: ESP traffic information: in=84B out=84B "esp=chacha20_poly1305-null" #7: 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 #