/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
east #
 /testing/x509/import.sh real/mainca/`hostname`.all.p12
ipsec pk12util -w nss-pw -i real/mainca/east.all.p12
pk12util: PKCS12 IMPORT SUCCESSFUL
ipsec certutil -M -n mainca -t CT,,
east #
 ../../guestbin/ip.sh route del 192.0.1.0/24
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec add east-any
"east-any": added IKEv2 connection
east #
 echo initdone
initdone
east #
 # both clients should be connected now
east #
 ipsec whack --trafficstatus
#2: "east-any"[1] 192.1.3.209, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=road.testing.libreswan.org, E=user-road@testing.libreswan.org', lease=192.0.2.101/32
#4: "east-any"[2] 192.1.3.33, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=north.testing.libreswan.org, E=user-north@testing.libreswan.org', lease=192.0.2.102/32
east #
 # send REDIRECT in informational to all tunnels from connection east-any (north and road)
east #
 ipsec whack --name east-any --redirect-to 192.1.2.45
redirections sent for 2 tunnels of connection "east-any"
east #
 # give them time to be redirected
east #
 ../../guestbin/wait-for.sh --no-match east-any -- ipsec trafficstatus
east #
 ipsec trafficstatus
east #
 ipsec connectionstatus
Connection list:
 
"east-any": 0.0.0.0/0===192.1.2.23[C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org,MS+S=C]...%any[%fromcert,+MC+S=C]==={192.0.2.101-192.0.2.200}; unrouted; my_ip=unset; their_ip=unset;
"east-any":   host: oriented; local: 192.1.2.23; remote: %any;
"east-any":   mycert=east; 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:server, them:client, modecfg policy:pull, dns:1.2.3.4, 5.6.7.8, domains:unset, cat:unset;
"east-any":   sec_label:unset;
"east-any":   CAs: 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org'...'%any'
"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; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"east-any":   policy: IKEv2+RSASIG+ECDSA+RSASIG_v1_5+ENCRYPT+TUNNEL+PFS+MODECFG_PULL+IKEV2_ALLOW_NARROWING+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"east-any":   v2-auth-hash-policy: SHA2_256+SHA2_384+SHA2_512;
"east-any":   conn_prio: 0,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: ID_DER_ASN1_DN; our id=C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org; their idtype: %fromcert; their id=%fromcert
"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;
 
Total IPsec connections: loaded 1, active 0
east #
 ../../guestbin/ipsec-kernel-state.sh
east #
 ../../guestbin/ipsec-kernel-policy.sh
east #
 
