/testing/guestbin/swan-prep
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add east
002 "east": added IKEv2 connection
east #
 ipsec whack --impair revival
east #
 ../../guestbin/tcpdump.sh --start -i eth1
tcpdump is not running
tcpdump started
east #
 echo "initdone"
initdone
east #
 ../../guestbin/xfrmcheck.sh
east #
 # traffic should be 0 bytes in both directions
east #
 ipsec whack --trafficstatus
006 #2: "east", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@road'
east #
 ../../guestbin/tcpdump.sh --stop --host east
[ 00.00] device eth1 left promiscuous mode
tcpdump stopped
reading from file /tmp/east.ikev2-xfrmi-02-responder.tcpdump.pcap, link-type EN10MB (Ethernet)
IP 192.1.3.209.isakmp > 192.1.2.23.isakmp: isakmp: parent_sa ikev2_init[I]
IP 192.1.2.23.isakmp > 192.1.3.209.isakmp: isakmp: parent_sa ikev2_init[R]
IP 192.1.3.209.isakmp > 192.1.2.23.isakmp: isakmp: child_sa  ikev2_auth[I]
IP 192.1.2.23.isakmp > 192.1.3.209.isakmp: isakmp: child_sa  ikev2_auth[R]
east #
 hostname | grep east > /dev/null && ip -s link show ipsec1
X: ipsec1@eth1: <NOARP,UP,LOWER_UP> mtu 1500 state UNKNOWN
    RX: bytes  packets  errors  dropped missed  mcast   
    0          0        0       0       0       0       
    TX: bytes  packets  errors  dropped carrier collsns 
    0          0        0       0       0       0       
east #
 hostname | grep east > /dev/null && ip rule show
0:	from all lookup local
100:	from all to 192.1.3.209 fwmark 0x1 lookup 50
32766:	from all lookup main
32767:	from all lookup default
east #
 hostname | grep east > /dev/null && ip route show table 50
192.1.3.209 via 192.1.2.254 dev eth1 
east #
 hostname | grep east > /dev/null && ip route
default via 192.1.2.254 dev eth1 
192.0.1.0/24 via 192.1.2.45 dev eth1 
192.0.2.0/24 dev eth0 proto kernel scope link src 192.0.2.254 
192.1.2.0/24 dev eth1 proto kernel scope link src 192.1.2.23 
192.1.3.209 dev ipsec1 scope link 
east #
 
