/testing/guestbin/swan-prep
north #
 #add address from to be extruded subnet on road.
north #
 ipsec start
Redirecting to: [initsystem]
north #
 ../../guestbin/wait-until-pluto-started
north #
 echo "initdone"
initdone
north #
 ping -n -q -c 10000 -I  192.0.3.254  192.0.2.254 2>&1 >/dev/null &
[x] PID
north #
 ping -n -q -c 10000 -I  192.0.3.254  192.0.2.251 2>&1 >/dev/null &
[x] PID
north #
 ping -n -q -c 10000 -I  192.0.3.254  192.0.22.254 2>&1 >/dev/null &
[x] PID
north #
 ping -n -q -c 10000 -I  192.0.3.254  192.0.22.251 2>&1 >/dev/null &
[x] PID
north #
 ipsec auto --start north-eastnets
"north-eastnets/0x1": added IKEv2 connection
"north-eastnets/0x2": added IKEv2 connection
initiating all connections with alias "north-eastnets"
"north-eastnets/0x2" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"north-eastnets/0x1": queue Child SA; waiting on IKE SA "north-eastnets/0x2" #1 negotiating with 192.1.2.23
"north-eastnets/0x2" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"north-eastnets/0x1" #2: Child SA initiating pending connection using IKE SA #1's IKE_AUTH exchange
"north-eastnets/0x2" #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_256 integ=HMAC_SHA2_256_128 prf=HMAC_SHA2_256 group=DH19}, initiating IKE_AUTH
"north-eastnets/0x2" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"north-eastnets/0x2" #1: initiator established IKE SA; authenticated peer using preloaded certificate '@east' and 2nnn-bit RSASSA-PSS with SHA2_512 digital signature
"north-eastnets/0x1" #2: initiator established Child SA using #1; IPsec tunnel [192.0.3.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA2_512_256 DPD=passive}
"north-eastnets/0x2" #3: initiating Child SA using IKE SA #1
"north-eastnets/0x2" #3: sent CREATE_CHILD_SA request to create Child SA using IKE SA #1
"north-eastnets/0x2" #3: initiator established Child SA using #1; IPsec tunnel [192.0.3.0/24===192.0.22.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA2_512_256-MODP3072 DPD=passive}
north #
 ipsec auto --status | grep north-eastnets
"north-eastnets/0x1": 192.0.3.0/24===192.1.3.33[@north]...192.1.2.23[@east]===192.0.2.0/24; routed-tunnel; my_ip=unset; their_ip=unset;
"north-eastnets/0x1":   host: oriented; local: 192.1.3.33; remote: 192.1.2.23;
"north-eastnets/0x1":   my_updown=ipsec _updown;
"north-eastnets/0x1":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
"north-eastnets/0x1":   our auth:rsasig, their auth:rsasig, our autheap:none, their autheap:none;
"north-eastnets/0x1":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"north-eastnets/0x1":   sec_label:unset;
"north-eastnets/0x1":   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%;
"north-eastnets/0x1":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"north-eastnets/0x1":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"north-eastnets/0x1":   policy: IKEv2+RSASIG+ECDSA+RSASIG_v1_5+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"north-eastnets/0x1":   v2-auth-hash-policy: SHA2_256+SHA2_384+SHA2_512;
"north-eastnets/0x1":   conn_prio: 24,24; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"north-eastnets/0x1":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"north-eastnets/0x1":   our idtype: ID_FQDN; our id=@north; their idtype: ID_FQDN; their id=@east
"north-eastnets/0x1":   liveness: passive; dpddelay:0s; retransmit-timeout:60s
"north-eastnets/0x1":   nat-traversal: encapsulation:auto; keepalive:20s
"north-eastnets/0x1":   routing: routed-tunnel; established Child SA: #2;
"north-eastnets/0x1":   conn serial: $1;
"north-eastnets/0x1":   aliases: north-eastnets
"north-eastnets/0x1":   IKE algorithms: AES_CBC_256-HMAC_SHA2_256-MODP2048
"north-eastnets/0x1":   ESP algorithms: AES_CBC_128-HMAC_SHA2_512_256-MODP3072
"north-eastnets/0x1":   ESP algorithm newest: AES_CBC_128-HMAC_SHA2_512_256; pfsgroup=<Phase1>
"north-eastnets/0x2": 192.0.3.0/24===192.1.3.33[@north]...192.1.2.23[@east]===192.0.22.0/24; erouted; eroute owner: #3
"north-eastnets/0x2":     oriented; my_ip=unset; their_ip=unset;
"north-eastnets/0x2":   my_updown=ipsec _updown;
"north-eastnets/0x2":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
"north-eastnets/0x2":   our auth:rsasig, their auth:rsasig, our autheap:none, their autheap:none;
"north-eastnets/0x2":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"north-eastnets/0x2":   sec_label:unset;
"north-eastnets/0x2":   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%;
"north-eastnets/0x2":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"north-eastnets/0x2":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"north-eastnets/0x2":   policy: IKEv2+RSASIG+ECDSA+RSASIG_v1_5+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"north-eastnets/0x2":   v2-auth-hash-policy: SHA2_256+SHA2_384+SHA2_512;
"north-eastnets/0x2":   conn_prio: 24,24; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"north-eastnets/0x2":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"north-eastnets/0x2":   our idtype: ID_FQDN; our id=@north; their idtype: ID_FQDN; their id=@east
"north-eastnets/0x2":   liveness: passive; dpddelay:0s; retransmit-timeout:60s
"north-eastnets/0x2":   nat-traversal: encapsulation:auto; keepalive:20s
"north-eastnets/0x2":   routing: routed-tunnel; established IKE SA: #1; established Child SA: #3;
"north-eastnets/0x2":   conn serial: $2;
"north-eastnets/0x2":   aliases: north-eastnets
"north-eastnets/0x2":   IKE algorithms: AES_CBC_256-HMAC_SHA2_256-MODP2048
"north-eastnets/0x2":   IKEv2 algorithm newest: AES_CBC_256-HMAC_SHA2_256-DH19
"north-eastnets/0x2":   ESP algorithms: AES_CBC_128-HMAC_SHA2_512_256-MODP3072
"north-eastnets/0x2":   ESP algorithm newest: AES_CBC_128-HMAC_SHA2_512_256; pfsgroup=<Phase1>
#2: "north-eastnets/0x1":500 STATE_V2_ESTABLISHED_CHILD_SA (established Child SA); REKEY in XXs; REPLACE in XXs; newest; eroute owner; IKE SA #1; idle;
#2: "north-eastnets/0x1" esp.ESPSPIi@192.1.2.23 esp.ESPSPIi@192.1.3.33 tun.0@192.1.2.23 tun.0@192.1.3.33 Traffic: ESPin=252B ESPout=252B ESPmax=2^63B 
#1: "north-eastnets/0x2":500 STATE_V2_ESTABLISHED_IKE_SA (established IKE SA); REKEY in XXs; REPLACE in XXs; newest; idle;
#3: "north-eastnets/0x2":500 STATE_V2_ESTABLISHED_CHILD_SA (established Child SA); REKEY in XXs; REPLACE in XXs; newest; eroute owner; IKE SA #1; idle;
#3: "north-eastnets/0x2" esp.ESPSPIi@192.1.2.23 esp.ESPSPIi@192.1.3.33 tun.0@192.1.2.23 tun.0@192.1.3.33 Traffic: ESPin=84B ESPout=84B ESPmax=2^63B 
north #
 ../../guestbin/ping-once.sh --up -I 192.0.3.254 192.0.2.254
PING 192.0.2.254 (192.0.2.254) from 192.0.3.254 : 56(84) bytes of data.
--- 192.0.2.254 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time XXXX
rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms
north #
 ipsec whack --trafficstatus
#2: "north-eastnets/0x1", type=ESP, add_time=1234567890, inBytes=756, outBytes=756, maxBytes=2^63B, id='@east'
#3: "north-eastnets/0x2", type=ESP, add_time=1234567890, inBytes=420, outBytes=420, maxBytes=2^63B, id='@east'
north #
 echo done
done
north #
 
