/testing/guestbin/swan-prep
north #
 ipsec start
Redirecting to: [initsystem]
north #
 ../../guestbin/wait-until-pluto-started
north #
 ipsec auto --add north-east
002 "north-east": added IKEv2 connection
north #
 ipsec whack --impair suppress-retransmits
north #
 # road should have only one public key of its own
north #
 ipsec auto --listpubkeys
000  
000 List of Public Keys:
000  
000 TIMESTAMP, 2192 RSA Key AQPl33O2P (has private key), until --- -- --:--:-- ---- ok (expires never)
000        ID_IPV4_ADDR '192.1.3.33'
north #
 echo "initdone"
initdone
north #
 # there should be only one pub key not road.
north #
 ipsec auto --listpubkeys
000  
000 List of Public Keys:
000  
000 TIMESTAMP, 2192 RSA Key AQPl33O2P (has private key), until --- -- --:--:-- ---- ok (expires never)
000        ID_IPV4_ADDR '192.1.3.33'
north #
 ipsec auto --up north-east
1v2 "north-east" #1: initiating IKEv2 connection
1v2 "north-east" #1: sent IKE_SA_INIT request
1v2 "north-east" #1: sent IKE_AUTH request {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
003 "north-east" #1: established IKE SA; authenticated using RSA with SHA2_512 and preloaded certificate '192.1.2.23'
004 "north-east" #2: established Child SA; IPsec tunnel [192.1.3.33-192.1.3.33:0-65535 0] -> [192.1.2.23-192.1.2.23:0-65535 0] {ESP=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATOA=none NATD=none DPD=passive}
north #
 # there should be two public keys. including road
north #
 ../../guestbin/ping-once.sh --up -I 192.1.3.33 192.1.2.23
up
north #
 ipsec whack --trafficstatus
006 #2: "north-east", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, id='192.1.2.23'
north #
 echo done
done
north #
 # both ends should have two public keys.The second from reverse dns
north #
 ipsec auto --listpubkeys
000  
000 List of Public Keys:
000  
000 TIMESTAMP, 2192 RSA Key AQO9bJbr3 (no private key), until TIMESTAMP warning (expires in X days)
000        ID_IPV4_ADDR '192.1.2.23'
000 TIMESTAMP, 2192 RSA Key AQPl33O2P (has private key), until --- -- --:--:-- ---- ok (expires never)
000        ID_IPV4_ADDR '192.1.3.33'
north #
 ipsec whack --trafficstatus
006 #2: "north-east", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, id='192.1.2.23'
north #
 
