../../guestbin/prep.sh
ipsec.conf -> /etc/ipsec.conf
ipsec.secrets -> /etc/ipsec.secrets
set #
 ../../guestbin/ip.sh link add dev ipsec1 type xfrm dev eth0 if_id 0x1
set #
 ../../guestbin/ip.sh addr add 198.18.15.15/24 dev ipsec1
set #
 ../../guestbin/ip.sh link set ipsec1 up
set #
 ../../guestbin/ip.sh addr show ipsec1
X: ipsec1@eth0: <NOARP,UP,LOWER_UP> mtu 1500 state UNKNOWN
    inet 198.18.15.15/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
set #
 ../../guestbin/ip.sh link show ipsec1
X: ipsec1@eth0: <NOARP,UP,LOWER_UP> mtu 1500 state UNKNOWN
set #
 ipsec _kernel policy
set #
 ip -4 route add 198.18.12.0/24 dev ipsec1
set #
 ipsec start
Redirecting to: [initsystem]
set #
 ../../guestbin/wait-until-pluto-started
set #
 ipsec add rise-set
"rise-set": added oriented IKEv2 connection
set #
 ../../guestbin/ping-once.sh --up -I 198.18.15.15 198.18.12.12
up
set #
 ipsec _kernel state
src 198.18.1.15 dst 198.18.1.12
	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
	lastused YYYY-MM-DD HH:MM:SS
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 0, bitmap-length 0
	if_id 0x1
	dir out
src 198.18.1.12 dst 198.18.1.15
	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
	lastused YYYY-MM-DD HH:MM:SS
	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
	dir in
set #
 ipsec _kernel policy
src 0.0.0.0/0 dst 0.0.0.0/0
	dir fwd priority PRIORITY ptype main
	tmpl src 198.18.1.12 dst 198.18.1.15
		proto esp reqid REQID mode tunnel
	if_id 0x1
src 0.0.0.0/0 dst 0.0.0.0/0
	dir in priority PRIORITY ptype main
	tmpl src 198.18.1.12 dst 198.18.1.15
		proto esp reqid REQID mode tunnel
	if_id 0x1
src 0.0.0.0/0 dst 0.0.0.0/0
	dir out priority PRIORITY ptype main
	tmpl src 198.18.1.15 dst 198.18.1.12
		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
set #
 #../../guestbin/ip.sh xfrm state flush
set #
 #../../guestbin/ip.sh link delete ipsec1
set #
