/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-ikev2
002 added connection description "road-east-ikev2"
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>; 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, banner:unset, cat:unset;
000 "road-east-ikev2":   labeled_ipsec:no;
000 "road-east-ikev2":   policy_label:unset;
000 "road-east-ikev2":   ike_life: 3600s; ipsec_life: 28800s; replay_window: 32; rekey_margin: 540s; rekey_fuzz: 100%; keyingtries: 0;
000 "road-east-ikev2":   retransmit-interval: 9999ms; retransmit-timeout: 99s;
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: RSASIG+ENCRYPT+TUNNEL+PFS+IKEV2_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO; +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_IPV4_ADDR; our id=192.1.2.23; their idtype: ID_IPV4_ADDR; their id=192.1.3.209
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;
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_IPV4_ADDR '192.1.3.209'
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=336, outBytes=336, id='192.1.3.209'
east #
east #
 ../bin/check-for-core.sh
east #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

