/testing/guestbin/swan-prep --hostkeys
Creating NSS database containing host keys
road #
 # ensure that clear text does not get through
road #
 iptables -A INPUT -i eth0 -s 192.0.2.0/24 -j DROP
road #
 iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT
road #
 ipsec start
Redirecting to: [initsystem]
road #
 ../../guestbin/wait-until-pluto-started
road #
 ipsec auto --add road-eastnet-nonat
"road-eastnet-nonat": added IKEv2 connection
road #
 ipsec auto --status | grep road-eastnet-nonat
"road-eastnet-nonat": 192.0.2.219/32===192.1.3.209[@road]---192.1.3.254...192.1.2.23[@east]===192.0.2.0/24; unrouted; my_ip=192.0.2.219; their_ip=unset;
"road-eastnet-nonat":   host: oriented; local: 192.1.3.209; nexthop: 192.1.3.254; remote: 192.1.2.23;
"road-eastnet-nonat":   my_updown=ipsec _updown;
"road-eastnet-nonat":   xauth us:none, xauth them:none, my_username=[any]; their_username=[any]
"road-eastnet-nonat":   our auth:rsasig(RSASIG+RSASIG_v1_5), their auth:RSASIG+ECDSA+RSASIG_v1_5, our autheap:none, their autheap:none;
"road-eastnet-nonat":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"road-eastnet-nonat":   cisco-split: no; cisco-unity: no; cisco-peer: no; nm-configured: no;
"road-eastnet-nonat":   sec_label:unset;
"road-eastnet-nonat":   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%;
"road-eastnet-nonat":   iptfs: no; fragmentation: yes; packet-size: 0; max-queue-size: 0; drop-time: 0; init-delay: 0; reorder-window: 0;
"road-eastnet-nonat":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"road-eastnet-nonat":   initial-contact:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"road-eastnet-nonat":   policy: IKEv2+RSASIG+ECDSA+RSASIG_v1_5+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"road-eastnet-nonat":   v2-auth-hash-policy: SHA2_256+SHA2_384+SHA2_512;
"road-eastnet-nonat":   conn_prio: 32,24,0; interface: eth0; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"road-eastnet-nonat":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"road-eastnet-nonat":   our idtype: FQDN; our id=@road; their idtype: FQDN; their id=@east
"road-eastnet-nonat":   sendca: all; our sendcert: always; their sendcert: always;
"road-eastnet-nonat":   liveness: passive; dpddelay:0s; retransmit-timeout:60s
"road-eastnet-nonat":   nat-traversal: encapsulation:auto; keepalive:20s
"road-eastnet-nonat":   routing: unrouted;
"road-eastnet-nonat":   conn serial: $1;
road #
 ipsec whack --impair suppress_retransmits
road #
 echo "initdone"
initdone
road #
 ipsec auto --up road-eastnet-nonat
"road-eastnet-nonat" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"road-eastnet-nonat" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"road-eastnet-nonat" #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH
"road-eastnet-nonat" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500 with digital-signature and FQDN '@road'; Child SA #2 {ESP <0xESPESP}
"road-eastnet-nonat" #1: initiator established IKE SA; authenticated peer using preloaded certificate '@east' and 2nnn-bit RSASSA-PSS with SHA2_512 digital signature
"road-eastnet-nonat" #2: initiator established Child SA using #1; IPsec tunnel [192.0.2.219/32===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
road #
 ../../guestbin/ping-once.sh --up 192.0.2.254
up
road #
 ipsec whack --trafficstatus
#2: "road-eastnet-nonat", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='@east'
road #
 echo done
done
road #
 hostname | grep east > /dev/null && ipsec whack --rekey-child --name road-eastnet-nonat
road #
