/testing/guestbin/swan-prep
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add road-east-ikev2
002 "road-east-ikev2": added IKEv2 connection
east #
 ipsec auto --status | grep road-east-ikev2
000 "road-east-ikev2": 192.1.2.23<192.1.2.23>...192.1.3.209<192.1.3.209>[@road.testing.libreswan.org]; unrouted; eroute owner: #0
000 "road-east-ikev2":     oriented; my_ip=unset; their_ip=unset; my_updown=ipsec _updown;
000 "road-east-ikev2":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
000 "road-east-ikev2":   our auth:rsasig, their auth:rsasig
000 "road-east-ikev2":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
000 "road-east-ikev2":   sec_label:unset;
000 "road-east-ikev2":   ike_life: 28800s; ipsec_life: 28800s; replay_window: 32; rekey_margin: 540s; rekey_fuzz: 100%; keyingtries: 0;
000 "road-east-ikev2":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
000 "road-east-ikev2":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
000 "road-east-ikev2":   policy: IKEv2+RSASIG+ECDSA+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+RSASIG_v1_5; +rKOD;
000 "road-east-ikev2":   v2-auth-hash-policy: SHA2_256+SHA2_384+SHA2_512;
000 "road-east-ikev2":   conn_prio: 32,32; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
000 "road-east-ikev2":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:auto;
000 "road-east-ikev2":   our idtype: ID_IPV4_ADDR; our id=192.1.2.23; their idtype: ID_FQDN; their id=@road.testing.libreswan.org
000 "road-east-ikev2":   dpd: action:hold; delay:0; timeout:0; nat-t: encaps:auto; nat_keepalive:yes; ikev1_natt:both
000 "road-east-ikev2":   newest ISAKMP SA: #0; newest IPsec SA: #0; conn serial: $1;
east #
 # east should have only one public key of its own
east #
 ipsec auto --listpubkeys
000  
000 List of Public Keys:
000  
000 TIMESTAMP, 2192 RSA Key AQO9bJbr3 (has private key), until --- -- --:--:-- ---- ok (expires never)
000        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
000  
000 List of Public Keys:
000  
000 TIMESTAMP, 3104 RSA Key AQPHFfpyJ (no private key), until TIMESTAMP warning (expires in X days)
000        ID_FQDN '@road.testing.libreswan.org'
000 TIMESTAMP, 3184 RSA Key AwXXXXXXX (no private key), until TIMESTAMP warning (expires in X days)
000        ID_FQDN '@road.testing.libreswan.org'
000 TIMESTAMP, 2192 RSA Key AQO9bJbr3 (has private key), until --- -- --:--:-- ---- ok (expires never)
000        ID_IPV4_ADDR '192.1.2.23'
east #
 ipsec whack --trafficstatus
006 #2: "road-east-ikev2", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, id='@road.testing.libreswan.org'
east #
 
