/testing/guestbin/swan-prep
north #
 ip link set vti0 down 2>/dev/null && ip link del vti0 2>/dev/null
north #
 ipsec start
Redirecting to: [initsystem]
north #
 /testing/pluto/bin/wait-until-pluto-started
north #
 ipsec auto --add north-east
002 added IKEv2 connection "north-east"
north #
 echo "initdone"
initdone
north #
 ../../pluto/bin/ping-once.sh --up 192.0.2.254
up
north #
 # ipsec traffic status must be empty
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 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
002 "north-east" #2: IKEv2 mode peer ID is ID_FQDN: '@east'
003 "north-east" #1: authenticated using authby=secret
002 "north-east" #2: up-client output: net.ipv4.conf.vti0.disable_policy = 1
002 "north-east" #2: up-client output: net.ipv4.conf.vti0.rp_filter = 0
002 "north-east" #2: up-client output: net.ipv4.conf.vti0.forwarding = 1
002 "north-east" #2: prepare-client output: vti interface "vti0" already exists with conflicting setting (perhaps need vti-sharing=yes ?
002 "north-east" #2: negotiated connection [0.0.0.0-255.255.255.255:0-65535 0] -> [0.0.0.0-255.255.255.255:0-65535 0]
004 "north-east" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATOA=none NATD=none DPD=passive}
north #
 ping -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 vti0
5: vti0@NONE: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1480 state UNKNOWN
    link/ipip 192.1.3.33 peer 192.1.2.23
    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 #
 ../bin/xfrmcheck.sh
north #
 ip route add 192.0.2.0/24 dev vti0
north #
 ping -w 4 -c 4 192.0.2.254
PING 192.0.2.254 (192.0.2.254) 56(84) bytes of data.
64 bytes from 192.0.2.254: icmp_seq=1 ttl=64 time=0.XXX ms
64 bytes from 192.0.2.254: icmp_seq=2 ttl=64 time=0.XXX ms
64 bytes from 192.0.2.254: icmp_seq=3 ttl=64 time=0.XXX ms
64 bytes from 192.0.2.254: icmp_seq=4 ttl=64 time=0.XXX ms
--- 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 vti0
5: vti0@NONE: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1480 state UNKNOWN
    link/ipip 192.1.3.33 peer 192.1.2.23
    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 #
 ../bin/check-for-core.sh
north #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi
north #
 
