../../guestbin/prep.sh
'ipsec.conf' -> '/etc/ipsec.conf'
'ipsec.secrets' -> '/etc/ipsec.secrets'
east #
 ../../guestbin/ip.sh link add dev ipsec1 type xfrm dev eth1 if_id 0x1
east #
 ../../guestbin/ip.sh addr add 192.0.23.1/24 dev ipsec1
east #
 ../../guestbin/ip.sh link set ipsec1 up
east #
 ../../guestbin/ip.sh addr show ipsec1
X: ipsec1@eth1: <NOARP,UP,LOWER_UP> mtu 1500 state UNKNOWN
    inet 192.0.23.1/24 scope global ipsec1
       valid_lft forever preferred_lft forever
    inet6 fe80::xxxx/64 scope link stable-privacy proto kernel_ll
       valid_lft forever preferred_lft forever
east #
 ../../guestbin/ip.sh link show ipsec1
X: ipsec1@eth1: <NOARP,UP,LOWER_UP> mtu 1500 state UNKNOWN
east #
 ../../guestbin/ipsec-kernel-policy.sh
east #
 ip -4 route add 192.0.45.0/24 dev ipsec1
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec add east-west
"east-west": added IKEv2 connection
east #
 ../../guestbin/ping-once.sh --up -I 192.0.23.1 192.0.45.1
down UNEXPECTED
# ping -n -c 1  -i 6 -w 5   -I 192.0.23.1 192.0.45.1
PING 192.0.45.1 (192.0.45.1) from 192.0.23.1 : 56(84) bytes of data. From 192.0.23.1 icmp_seq=1 Destination Host Unreachable --- 192.0.45.1 ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time XXXX
east #
 ../../guestbin/ipsec-kernel-state.sh
src 192.1.2.23 dst 192.1.2.45
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec esn
	output-mark 0x1/0xffffffff
	auth-trunc hmac(sha1) 0xHASHKEY 96
	enc cbc(aes) 0xENCKEY
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 128, bitmap-length 4
	 00000000 00000000 00000000 XXXXXXXX 
	if_id 0x1
src 192.1.2.45 dst 192.1.2.23
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec esn
	output-mark 0x1/0xffffffff
	auth-trunc hmac(sha1) 0xHASHKEY 96
	enc cbc(aes) 0xENCKEY
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 128, bitmap-length 4
	 00000000 00000000 00000000 XXXXXXXX 
	if_id 0x1
east #
 ../../guestbin/ipsec-kernel-policy.sh
src 192.0.23.0/24 dst 192.0.45.0/24
	dir fwd priority PRIORITY ptype main
	tmpl src 192.1.2.45 dst 192.1.2.23
		proto esp reqid REQID mode tunnel
	if_id 0x1
src 192.0.23.0/24 dst 192.0.45.0/24
	dir in priority PRIORITY ptype main
	tmpl src 192.1.2.45 dst 192.1.2.23
		proto esp reqid REQID mode tunnel
	if_id 0x1
src 192.0.45.0/24 dst 192.0.23.0/24
	dir out priority PRIORITY ptype main
	tmpl src 192.1.2.23 dst 192.1.2.45
		proto esp reqid REQID mode tunnel
	if_id 0x1
src ::/0 dst ::/0 proto ipv6-icmp type 135
	dir fwd priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 135
	dir in priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 135
	dir out priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 136
	dir fwd priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 136
	dir in priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 136
	dir out priority PRIORITY ptype main
east #
 #../../guestbin/ip.sh xfrm state flush
east #
 #../../guestbin/ip.sh link delete ipsec1
east #
 
