/testing/guestbin/swan-prep
north #
 ip link set ipsec2 down 2>/dev/null && ip link del ipsec2 2>/dev/null
north #
 ipsec start
Redirecting to: [initsystem]
north #
 ../../guestbin/wait-until-pluto-started
north #
 ipsec auto --add north-east
002 "north-east": added IKEv2 connection
north #
 echo "initdone"
initdone
north #
 ping -n -q -w 4 -c 4 192.0.2.254
PING 192.0.2.254 (192.0.2.254) 56(84) bytes of data.
--- 192.0.2.254 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time XXXX
rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms
north #
 ipsec trafficstatus
north #
 ipsec auto --up north-east
1v2 "north-east" #1: initiating IKEv2 connection
1v2 "north-east" #1: sent IKE_SA_INIT request
1v2 "north-east" #1: sent IKE_AUTH request {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
003 "north-east" #1: established IKE SA; authenticated using authby=secret and peer ID_FQDN '@east'
002 "north-east" #2: route-client output: leftsubet == rightsubnet = 0.0.0.0/0 cannot add route
004 "north-east" #2: established Child SA; IPsec tunnel [0.0.0.0-255.255.255.255:0-65535 0] -> [0.0.0.0-255.255.255.255:0-65535 0] {ESP=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATOA=none NATD=none DPD=passive}
north #
 ping -n -q -w 4 -c 4 192.0.2.254
PING 192.0.2.254 (192.0.2.254) 56(84) bytes of data.
--- 192.0.2.254 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time XXXX
north #
 ipsec trafficstatus
006 #2: "north-east", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, id='@east'
north #
 ip -s link show ipsec2
X: ipsec2@eth1: <NOARP,UP,LOWER_UP> mtu 1500 state UNKNOWN
    RX: bytes  packets  errors  dropped overrun mcast   
    0          0        0       0       0       0       
    TX: bytes  packets  errors  dropped carrier collsns 
    0          0        0       0       0       0       
north #
 ip route
default via 192.1.3.254 dev eth1
192.0.3.0/24 dev eth0 proto kernel scope link src 192.0.3.254
192.1.3.0/24 dev eth1 proto kernel scope link src 192.1.3.33
north #
 ip route add 192.0.2.0/24 dev ipsec2
north #
 ping -n -q -w 4 -c 4 192.0.2.254
PING 192.0.2.254 (192.0.2.254) 56(84) bytes of data.
--- 192.0.2.254 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time XXXX
rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms
north #
 ip -s link show ipsec2
X: ipsec2@eth1: <NOARP,UP,LOWER_UP> mtu 1500 state UNKNOWN
    RX: bytes  packets  errors  dropped overrun mcast   
    336        4        0       0       0       0       
    TX: bytes  packets  errors  dropped carrier collsns 
    336        4        0       0       0       0       
north #
 ipsec trafficstatus
006 #2: "north-east", type=ESP, add_time=1234567890, inBytes=336, outBytes=336, id='@east'
north #
 echo "initdone"
initdone
north #
 ipsec whack --trafficstatus
006 #2: "north-east", type=ESP, add_time=1234567890, inBytes=336, outBytes=336, id='@east'
north #
 
