/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 east-any
"east-any": added IKEv2 connection
east #
 ipsec auto --status | grep east-any
"east-any": 192.1.2.23...%any; unrouted; my_ip=unset; their_ip=unset;
"east-any":   host: oriented; local: 192.1.2.23; remote: %any;
"east-any":   my_updown=ipsec _updown;
"east-any":   xauth us:none, xauth them:none, my_username=[any]; their_username=[any]
"east-any":   our auth:rsasig(RSASIG+RSASIG_v1_5), their auth:RSASIG+ECDSA+RSASIG_v1_5, our autheap:none, their autheap:none;
"east-any":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"east-any":   cisco-split: no; cisco-unity: no; cisco-peer: no; nm-configured: no;
"east-any":   sec_label:unset;
"east-any":   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%;
"east-any":   iptfs: no; fragmentation: yes; packet-size: 0; max-queue-size: 0; drop-time: 0; init-delay: 0; reorder-window: 0;
"east-any":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"east-any":   initial-contact:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"east-any":   policy: IKEv2+RSASIG+ECDSA+RSASIG_v1_5+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES; +rKOD;
"east-any":   v2-auth-hash-policy: SHA2_256+SHA2_384+SHA2_512;
"east-any":   conn_prio: 32,0,0; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"east-any":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"east-any":   our idtype: IPV4_ADDR; our id=192.1.2.23; their idtype: %none; their id=(none)
"east-any":   sendca: all; our sendcert: always; their sendcert: always;
"east-any":   liveness: passive; dpddelay:0s; retransmit-timeout:60s
"east-any":   nat-traversal: encapsulation:auto; keepalive:20s
"east-any":   routing: unrouted;
"east-any":   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 AwXXXXXXX (has private key), until --- -- --:--:-- ---- ok (expires never)
       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 AwXXXXXXX (no private key), until TIMESTAMP warning (expires in X days)
       IPV4_ADDR '192.1.3.33'
TIMESTAMP, 2192 RSA Key AwXXXXXXX (has private key), until --- -- --:--:-- ---- ok (expires never)
       IPV4_ADDR '192.1.2.23'
east #
 ipsec whack --trafficstatus
#2: "east-any"[1] 192.1.3.33, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='192.1.3.33'
east #
