/testing/guestbin/swan-prep
east #
 ipsec start
Redirecting to: systemctl start ipsec.service
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[@east]...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, our autheap:none, their autheap:none;
000 "road-east-ikev2":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
000 "road-east-ikev2":   labeled_ipsec:no;
000 "road-east-ikev2":   sec_label:unset;
000 "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%; 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+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES; +rKOD;
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_FQDN; our id=@east; their idtype: ID_FQDN; their id=@road.testing.libreswan.org
000 "road-east-ikev2":   liveness: passive; dpdaction:hold; dpddelay:0s; retransmit-timeout:60s
000 "road-east-ikev2":   nat-traversal: encaps:auto; keepalive:20s
000 "road-east-ikev2":   newest IKE SA: #0; newest IPsec SA: #0; conn serial: $1;
east #
 # eash should have only one pub key not road.
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_FQDN '@east'
east #
 echo "initdone"
initdone
east #
 # east should have two public keys. including road fetched from dns
east #
 ipsec auto --listpubkeys
000  
000 List of Public Keys:
000  
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, 3104 RSA Key AQPHFfpyJ (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_FQDN '@east'
east #
 ipsec whack --trafficstatus
006 #2: "road-east-ikev2", type=ESP, add_time=1234567890, inBytes=336, outBytes=336, maxBytes=2^63B, id='@road.testing.libreswan.org'
east #
 
