/testing/guestbin/swan-prep --hostkeys
Creating NSS database containing host keys
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add road-east-ikev2
"road-east-ikev2": added IKEv2 connection
east #
 ipsec auto --status | grep road-east-ikev2
"road-east-ikev2": 192.1.2.23...192.1.3.209[@west.testing.libreswan.org]; unrouted; my_ip=unset; their_ip=unset;
"road-east-ikev2":   host: oriented; local: 192.1.2.23; remote: 192.1.3.209;
"road-east-ikev2":   my_updown=ipsec _updown;
"road-east-ikev2":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
"road-east-ikev2":   our auth:rsasig(RSASIG+RSASIG_v1_5), their auth:RSASIG+ECDSA+RSASIG_v1_5, our autheap:none, their autheap:none;
"road-east-ikev2":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"road-east-ikev2":   sec_label:unset;
"road-east-ikev2":   ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 100%;
"road-east-ikev2":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"road-east-ikev2":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"road-east-ikev2":   policy: IKEv2+RSASIG+ECDSA+RSASIG_v1_5+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES; +rKOD;
"road-east-ikev2":   v2-auth-hash-policy: SHA2_256+SHA2_384+SHA2_512;
"road-east-ikev2":   conn_prio: 32,32; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"road-east-ikev2":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"road-east-ikev2":   our idtype: ID_IPV4_ADDR; our id=192.1.2.23; their idtype: ID_FQDN; their id=@west.testing.libreswan.org
"road-east-ikev2":   liveness: passive; dpddelay:0s; retransmit-timeout:60s
"road-east-ikev2":   nat-traversal: encapsulation:auto; keepalive:20s
"road-east-ikev2":   routing: unrouted;
"road-east-ikev2":   conn serial: $1;
east #
 # east should have only one public key of its own
east #
 ipsec auto --listpubkeys
 
List of Public Keys:
 
TIMESTAMP, 2192 RSA Key AQO9bJbr3 (has private key), until --- -- --:--:-- ---- ok (expires never)
       ID_IPV4_ADDR '192.1.2.23'
east #
 echo "initdone"
initdone
east #
 # both ends should have two public keys.The second from reverse dns
east #
 ipsec auto --listpubkeys
 
List of Public Keys:
 
TIMESTAMP, 2192 RSA Key AQO9bJbr3 (has private key), until --- -- --:--:-- ---- ok (expires never)
       ID_IPV4_ADDR '192.1.2.23'
east #
 ipsec whack --trafficstatus
east #
 
