/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
002 "north-eastnets/0x1": added IKEv2 connection
002 "north-eastnets/0x2": added IKEv2 connection
000 initiating all conns with alias='north-eastnets'
1v2 "north-eastnets/0x2" #1: initiating IKEv2 connection
000 "north-eastnets/0x1": queue Child SA; waiting on IKE SA "north-eastnets/0x2" #1 negotiating with 192.1.2.23
1v2 "north-eastnets/0x2" #1: sent IKE_SA_INIT request to 192.1.2.23:500
002 "north-eastnets/0x2" #1: switching CHILD #2 to pending connection "north-eastnets/0x1"
1v2 "north-eastnets/0x2" #1: sent IKE_AUTH request {cipher=AES_CBC_256 integ=HMAC_SHA2_256_128 prf=HMAC_SHA2_256 group=MODP2048}
003 "north-eastnets/0x2" #1: initiator established IKE SA; authenticated peer '2nnn-bit RSASSA-PSS with SHA2_512' digital signature using preloaded certificate '@east'
004 "north-eastnets/0x1" #2: initiator established Child SA using #1; IPsec tunnel [192.0.3.0-192.0.3.255:0-65535 0] -> [192.0.2.0-192.0.2.255:0-65535 0] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA2_512_256 DPD=passive}
002 "north-eastnets/0x2" #3: initiating Child SA using IKE SA #1
1v2 "north-eastnets/0x2" #3: sent CREATE_CHILD_SA request for new IPsec SA
004 "north-eastnets/0x2" #3: initiator established Child SA using #1; IPsec tunnel [192.0.3.0-192.0.3.255:0-65535 0] -> [192.0.22.0-192.0.22.255:0-65535 0] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA2_512_256-MODP3072 DPD=passive}
north #
 ipsec auto --status | grep north-eastnets
000 "north-eastnets/0x1": 192.0.3.0/24===192.1.3.33[@north]...192.1.2.23[@east]===192.0.2.0/24; erouted; eroute owner: #2
000 "north-eastnets/0x1":     oriented; my_ip=unset; their_ip=unset; my_updown=ipsec _updown;
000 "north-eastnets/0x1":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
000 "north-eastnets/0x1":   our auth:rsasig, their auth:rsasig, our autheap:none, their autheap:none;
000 "north-eastnets/0x1":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
000 "north-eastnets/0x1":   sec_label:unset;
000 "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%; keyingtries: 0;
000 "north-eastnets/0x1":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
000 "north-eastnets/0x1":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
000 "north-eastnets/0x1":   policy: IKEv2+RSASIG+ECDSA+RSASIG_v1_5+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
000 "north-eastnets/0x1":   v2-auth-hash-policy: SHA2_256+SHA2_384+SHA2_512;
000 "north-eastnets/0x1":   conn_prio: 24,24; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
000 "north-eastnets/0x1":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:auto;
000 "north-eastnets/0x1":   our idtype: ID_FQDN; our id=@north; their idtype: ID_FQDN; their id=@east
000 "north-eastnets/0x1":   liveness: passive; dpdaction:hold; dpddelay:0s; retransmit-timeout:60s
000 "north-eastnets/0x1":   nat-traversal: encaps:auto; keepalive:20s
000 "north-eastnets/0x1":   newest IKE SA: #0; newest IPsec SA: #2; conn serial: $1;
000 "north-eastnets/0x1":   aliases: north-eastnets
000 "north-eastnets/0x1":   IKE algorithms: AES_CBC_256-HMAC_SHA2_256-MODP2048
000 "north-eastnets/0x1":   ESP algorithms: AES_CBC_128-HMAC_SHA2_512_256-MODP3072
000 "north-eastnets/0x1":   ESP algorithm newest: AES_CBC_128-HMAC_SHA2_512_256; pfsgroup=<Phase1>
000 "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
000 "north-eastnets/0x2":     oriented; my_ip=unset; their_ip=unset; my_updown=ipsec _updown;
000 "north-eastnets/0x2":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
000 "north-eastnets/0x2":   our auth:rsasig, their auth:rsasig, our autheap:none, their autheap:none;
000 "north-eastnets/0x2":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
000 "north-eastnets/0x2":   sec_label:unset;
000 "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%; keyingtries: 0;
000 "north-eastnets/0x2":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
000 "north-eastnets/0x2":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
000 "north-eastnets/0x2":   policy: IKEv2+RSASIG+ECDSA+RSASIG_v1_5+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
000 "north-eastnets/0x2":   v2-auth-hash-policy: SHA2_256+SHA2_384+SHA2_512;
000 "north-eastnets/0x2":   conn_prio: 24,24; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
000 "north-eastnets/0x2":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:auto;
000 "north-eastnets/0x2":   our idtype: ID_FQDN; our id=@north; their idtype: ID_FQDN; their id=@east
000 "north-eastnets/0x2":   liveness: passive; dpdaction:hold; dpddelay:0s; retransmit-timeout:60s
000 "north-eastnets/0x2":   nat-traversal: encaps:auto; keepalive:20s
000 "north-eastnets/0x2":   newest IKE SA: #1; newest IPsec SA: #3; conn serial: $2;
000 "north-eastnets/0x2":   aliases: north-eastnets
000 "north-eastnets/0x2":   IKE algorithms: AES_CBC_256-HMAC_SHA2_256-MODP2048
000 "north-eastnets/0x2":   IKEv2 algorithm newest: AES_CBC_256-HMAC_SHA2_256-MODP2048
000 "north-eastnets/0x2":   ESP algorithms: AES_CBC_128-HMAC_SHA2_512_256-MODP3072
000 "north-eastnets/0x2":   ESP algorithm newest: AES_CBC_128-HMAC_SHA2_512_256; pfsgroup=<Phase1>
000 #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;
000 #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 
000 #1: "north-eastnets/0x2":500 STATE_V2_ESTABLISHED_IKE_SA (established IKE SA); REKEY in XXs; REPLACE in XXs; newest; idle;
000 #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;
000 #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 #
 ping -n -q -c 2 -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
006 #2: "north-eastnets/0x1", type=ESP, add_time=1234567890, inBytes=756, outBytes=756, maxBytes=2^63B, id='@east'
006 #3: "north-eastnets/0x2", type=ESP, add_time=1234567890, inBytes=420, outBytes=420, maxBytes=2^63B, id='@east'
north #
 echo done
done
north #
 
