/testing/guestbin/swan-prep --hostkeys
Creating NSS database containing host keys
road #
 ipsec start
Redirecting to: [initsystem]
road #
 ../../guestbin/wait-until-pluto-started
road #
 ipsec auto --add road-eastnet-nat
"road-eastnet-nat": added IKEv1 connection
road #
 ipsec auto --status | grep road-eastnet-nat
"road-eastnet-nat": 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-nat":   host: oriented; local: 192.1.3.209; remote: 192.1.2.23;
"road-eastnet-nat":   my_updown=ipsec _updown;
"road-eastnet-nat":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
"road-eastnet-nat":   our auth:rsasig, their auth:rsasig, our autheap:none, their autheap:none;
"road-eastnet-nat":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"road-eastnet-nat":   sec_label:unset;
"road-eastnet-nat":   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-nat":   iptfs: no; fragmentation: yes; packet-size: 0; max-queue-size: 0; drop-time: 0; init-delay: 0; reorder-window: 0;
"road-eastnet-nat":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"road-eastnet-nat":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"road-eastnet-nat":   policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"road-eastnet-nat":   conn_prio: 32,24,0; interface: eth0; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"road-eastnet-nat":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"road-eastnet-nat":   our idtype: ID_FQDN; our id=@road; their idtype: ID_FQDN; their id=@east
"road-eastnet-nat":   dpd: passive; delay:0s; timeout:0s
"road-eastnet-nat":   nat-traversal: encapsulation:auto; keepalive:20s; ikev1-method:rfc+drafts
"road-eastnet-nat":   routing: unrouted;
"road-eastnet-nat":   conn serial: $1;
road #
 ipsec whack --impair suppress_retransmits
road #
 echo "initdone"
initdone
road #
 ipsec auto --up road-eastnet-nat
"road-eastnet-nat" #1: initiating IKEv1 Main Mode connection
"road-eastnet-nat" #1: sent Main Mode request
"road-eastnet-nat" #1: sent Main Mode I2
"road-eastnet-nat" #1: sent Main Mode I3
"road-eastnet-nat" #1: Peer ID is ID_FQDN: '@east'
"road-eastnet-nat" #1: authenticated peer using preloaded certificate '@east' and 2nnn-bit RSA with SHA1 signature
"road-eastnet-nat" #1: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
"road-eastnet-nat" #2: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
"road-eastnet-nat" #2: sent Quick Mode request
"road-eastnet-nat" #2: IPsec SA established tunnel mode {ESPinUDP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 NATD=192.1.2.23:4500 DPD=passive}
road #
 # 192.0.2.219 as source ip should be picked up automatically
road #
 ../../guestbin/ping-once.sh --up 192.0.2.254
up
road #
 ipsec whack --trafficstatus
#2: "road-eastnet-nat", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='@east'
road #
 echo done
done
road #
 ../../guestbin/ipsec-kernel-state.sh
src 192.1.3.209 dst 192.1.2.23
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec
	auth-trunc hmac(sha1) 0xHASHKEY 96
	enc cbc(aes) 0xENCKEY
	encap type espinudp sport 4500 dport 4500 addr 0.0.0.0
	lastused YYYY-MM-DD HH:MM:SS
src 192.1.2.23 dst 192.1.3.209
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec
	auth-trunc hmac(sha1) 0xHASHKEY 96
	enc cbc(aes) 0xENCKEY
	encap type espinudp sport 4500 dport 4500 addr 0.0.0.0
	lastused YYYY-MM-DD HH:MM:SS
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 128, bitmap-length 4
	 00000000 00000000 00000000 XXXXXXXX 
road #
 ../../guestbin/ipsec-kernel-policy.sh
src 192.0.2.0/24 dst 192.0.2.219/32
	dir fwd priority PRIORITY ptype main
	tmpl src 192.1.2.23 dst 192.1.3.209
		proto esp reqid REQID mode tunnel
src 192.0.2.0/24 dst 192.0.2.219/32
	dir in priority PRIORITY ptype main
	tmpl src 192.1.2.23 dst 192.1.3.209
		proto esp reqid REQID mode tunnel
src 192.0.2.219/32 dst 192.0.2.0/24
	dir out priority PRIORITY ptype main
	tmpl src 192.1.3.209 dst 192.1.2.23
		proto esp reqid REQID mode tunnel
road #
 
