/testing/guestbin/swan-prep
west #
 ipsec auto --start
Redirecting to: systemctl start ipsec.service
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add west-east
"west-east": ikev2=no has been replaced by keyexchange=ikev1
"west-east": added IKEv1 connection
west #
 ipsec whack --impair revival
west #
 echo "initdone"
initdone
west #
 # create a partial state on east, don't hold the hack for retransmit
west #
 ipsec up west-east # sanitize-retransmits
"west-east" #1: initiating IKEv1 Main Mode connection
"west-east" #1: sent Main Mode request
"west-east" #1: sent Main Mode I2
"west-east" #1: sent Main Mode I3
"west-east" #1: Peer ID is IPV4_ADDR: '192.1.2.23'
"west-east" #1: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_256 integ=HMAC_SHA1 group=MODP1536}
"west-east" #1: modecfg: Sending IP request (MODECFG_I1)
"west-east" #1: ignoring secured informational payload IPSEC_INITIAL_CONTACT, msgid=MSGID, length=28
"west-east" #1: received IPv4 lease 192.0.2.101, updating source IP address
"west-east" #1: received MODECFG_BANNER: NetBSD 10.1 (GENERIC) #0: TIMESTAMP  Welcome to NetBSD!  
"west-east" #1: received CISCO_SPLIT 192.0.2.0/24 in MODE_CFG REPLY payload, adding SPD 192.0.2.101/32===192.0.2.0/24
"west-east" #1: received CISCO_SPLIT 192.0.20.0/24 in MODE_CFG REPLY payload, adding SPD 192.0.2.101/32===192.0.20.0/24
"west-east" #1: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_256 integ=HMAC_SHA1 group=MODP1536}
"west-east" #2: initiating Quick Mode IKEv1+PSK+ENCRYPT+TUNNEL+PFS+UP+MODECFG_PULL+IKE_FRAG_ALLOW+ESN_NO+ESN_YES {using isakmp#1 msgid:MSGID proposal=AES_CBC-HMAC_SHA1_96, AES_CBC-HMAC_SHA2_512_256, AES_CBC-HMAC_SHA2_256_128, AES_GCM_16_128-NONE, AES_GCM_16_256-NONE, 3DES_CBC-HMAC_SHA1_96, 3DES_CBC-HMAC_SHA2_512_256, 3DES_CBC-HMAC_SHA2_256_128 pfsgroup=MODP1536 192.0.2.101/32===192.0.2.0/24}
"west-east" #2: CISCO_SPLIT: sending 0.0.0.0/0 for Quick Mode peer selector
"west-east" #2: sent Quick Mode request
"west-east" #2: peer client subnet returned doesn't match my proposal - us: 192.0.2.0/24 vs them: 0.0.0.0/0
"west-east" #2: Allowing questionable (microsoft) proposal anyway
"west-east" #2: running updown prepare 192.0.2.101/32===192.0.2.0/24
"west-east" #2: running updown route 192.0.2.101/32===192.0.2.0/24
"west-east" #2: running updown up 192.0.2.101/32===192.0.2.0/24
"west-east" #2: running updown prepare 192.0.2.101/32===192.0.20.0/24
"west-east" #2: running updown route 192.0.2.101/32===192.0.20.0/24
"west-east" #2: running updown up 192.0.2.101/32===192.0.20.0/24
"west-east" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
west #
 ipsec _kernel state
src 192.1.2.45 dst 192.1.2.23
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec
	auth-trunc hmac(sha1) 0xHASHKEY 96
	enc cbc(aes) 0xENCKEY
src 192.1.2.23 dst 192.1.2.45
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec
	auth-trunc hmac(sha1) 0xHASHKEY 96
	enc cbc(aes) 0xENCKEY
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 128, bitmap-length 4
	 00000000 00000000 00000000 XXXXXXXX 
west #
 ipsec _kernel policy
src 192.0.2.0/24 dst 192.0.2.101/32
	dir fwd priority PRIORITY ptype main
	tmpl src 192.1.2.23 dst 192.1.2.45
		proto esp reqid REQID mode tunnel
src 192.0.2.0/24 dst 192.0.2.101/32
	dir in priority PRIORITY ptype main
	tmpl src 192.1.2.23 dst 192.1.2.45
		proto esp reqid REQID mode tunnel
src 192.0.2.101/32 dst 192.0.2.0/24
	dir out priority PRIORITY ptype main
	tmpl src 192.1.2.45 dst 192.1.2.23
		proto esp reqid REQID mode tunnel
src 192.0.2.101/32 dst 192.0.20.0/24
	dir out priority PRIORITY ptype main
	tmpl src 192.1.2.45 dst 192.1.2.23
		proto esp reqid REQID mode tunnel
src 192.0.20.0/24 dst 192.0.2.101/32
	dir fwd priority PRIORITY ptype main
	tmpl src 192.1.2.23 dst 192.1.2.45
		proto esp reqid REQID mode tunnel
src 192.0.20.0/24 dst 192.0.2.101/32
	dir in priority PRIORITY ptype main
	tmpl src 192.1.2.23 dst 192.1.2.45
		proto esp reqid REQID mode tunnel
west #
 ../../guestbin/ping-once.sh --up -I 192.0.2.101 192.0.2.254
up
west #
 ipsec trafficstatus
#2: "west-east", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='192.1.2.23', lease=192.0.2.101/32
west #
 ../../guestbin/ping-once.sh --up -I 192.0.2.101 192.0.20.254
up
west #
 ipsec trafficstatus
#2: "west-east", type=ESP, add_time=1234567890, inBytes=168, outBytes=168, maxBytes=2^63B, id='192.1.2.23', lease=192.0.2.101/32
west #
 echo done
done
west #
