/testing/guestbin/swan-prep
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 # integ has auto=add
east #
 ipsec stop
Redirecting to: [initsystem]
east #
 # east shows what was sent across the wire; expect two lines for each
east #
 # of the three connections: default (missing); integ=none included;
east #
 # integ=none excluded
east #
 grep 'chosen from remote proposal' /tmp/pluto.log | sed -e 's/SPI=[0-9a-z]*/SPI=X/'
"integ" #1: proposal 1:IKE=AES_GCM_C_128-HMAC_SHA1-MODP2048 chosen from remote proposals 1:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA1;DH=MODP2048[first-match]
"integ" #2: proposal 1:ESP=AES_GCM_C_128-ESN:YES SPI=X chosen from remote proposals 1:ESP:ENCR=AES_GCM_C_128;ESN=YES;ESN=NO[first-match]
"integ" #3: proposal 1:IKE=AES_GCM_C_128-HMAC_SHA1-NONE-MODP2048 SPI=X chosen from remote proposals 1:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA1;INTEG=NONE;DH=MODP2048[first-match]
"integ" #4: proposal 1:ESP=AES_GCM_C_128-NONE-MODP2048-ESN:YES SPI=X chosen from remote proposals 1:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=MODP2048;ESN=YES[first-match]
"integ" #5: proposal 1:IKE=AES_GCM_C_128-HMAC_SHA1-MODP2048 SPI=X chosen from remote proposals 1:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA1;DH=MODP2048[first-match]
"integ" #6: proposal 1:ESP=AES_GCM_C_128-MODP2048-ESN:YES SPI=X chosen from remote proposals 1:ESP:ENCR=AES_GCM_C_128;DH=MODP2048;ESN=YES[first-match]
"integ" #7: proposal 1:IKE=AES_GCM_C_128-HMAC_SHA1-NONE-MODP2048 chosen from remote proposals 1:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA1;INTEG=NONE;DH=MODP2048[first-match]
"integ" #8: proposal 1:ESP=AES_GCM_C_128-NONE-ESN:YES SPI=X chosen from remote proposals 1:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;ESN=YES;ESN=NO[first-match]
"integ" #9: proposal 1:IKE=AES_GCM_C_128-HMAC_SHA1-MODP2048 SPI=X chosen from remote proposals 1:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA1;DH=MODP2048[first-match]
"integ" #10: proposal 1:ESP=AES_GCM_C_128-MODP2048-ESN:YES SPI=X chosen from remote proposals 1:ESP:ENCR=AES_GCM_C_128;DH=MODP2048;ESN=YES[first-match]
"integ" #11: proposal 1:IKE=AES_GCM_C_128-HMAC_SHA1-NONE-MODP2048 SPI=X chosen from remote proposals 1:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA1;INTEG=NONE;DH=MODP2048[first-match]
"integ" #12: proposal 1:ESP=AES_GCM_C_128-NONE-MODP2048-ESN:YES SPI=X chosen from remote proposals 1:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=MODP2048;ESN=YES[first-match]
east #
 # west shows what came back, expect two lines for each of the three
east #
 # connections: default (missing); integ=none included; integ=none
east #
 # excluded
east #
 grep 'remote accepted' /tmp/pluto.log
east #
 
