/testing/guestbin/swan-prep
east #
 ipsec start
Redirecting to: systemctl start ipsec.service
east #
 /testing/pluto/bin/wait-until-pluto-started
east #
 ipsec auto --add road-east
002 "road-east": terminating SAs using this connection
002 added connection description "road-east"
east #
 ipsec auto --status | grep road-east
000 "road-east": 192.1.2.23<192.1.2.23>[@east]...192.1.3.209<192.1.3.209>[@road.testing.libreswan.org]; unrouted; eroute owner: #0
000 "road-east":     oriented; my_ip=unset; their_ip=unset; my_updown=ipsec _updown;
000 "road-east":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
000 "road-east":   our auth:rsasig, their auth:rsasig
000 "road-east":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, banner:unset, cat:unset;
000 "road-east":   labeled_ipsec:no;
000 "road-east":   policy_label:unset;
000 "road-east":   ike_life: 3600s; ipsec_life: 28800s; replay_window: 32; rekey_margin: 540s; rekey_fuzz: 100%; keyingtries: 0;
000 "road-east":   retransmit-interval: 9999ms; retransmit-timeout: 99s;
000 "road-east":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
000 "road-east":   policy: RSASIG+ENCRYPT+TUNNEL+PFS+IKEV2_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO; +rKOD;
000 "road-east":   conn_prio: 32,32; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
000 "road-east":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:auto;
000 "road-east":   our idtype: ID_FQDN; our id=@east; their idtype: ID_FQDN; their id=@road.testing.libreswan.org
000 "road-east":   dpd: action:hold; delay:0; timeout:0; nat-t: encaps:auto; nat_keepalive:yes; ikev1_natt:both
000 "road-east":   newest ISAKMP SA: #0; newest IPsec SA: #0;
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 #
 ipsec stop
Redirecting to: systemctl stop ipsec.service
east #
 sleep 2
east #
 ipsec start
Redirecting to: systemctl start ipsec.service
east #
 /testing/pluto/bin/wait-until-pluto-started
east #
 
