/testing/guestbin/swan-prep
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add east-any
"east-any": added IKEv2 connection
east #
 echo "initdone"
initdone
east #
 ipsec whack --trafficstatus
#2: "east-any"[2] 192.1.2.254, type=ESP, add_time=1234567890, inBytes=840, outBytes=840, maxBytes=2^63B, id='192.1.3.209', lease=192.0.3.10/32
east #
 ../../guestbin/ipsec-kernel-state.sh
src 192.1.2.254 dst 192.1.2.23
	encap type espinudp sport NATED6501 dport 4500 addr 0.0.0.0
	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 
src 192.1.2.23 dst 192.1.2.254
	encap type espinudp sport 4500 sport NATED6501 addr 0.0.0.0
	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 
east #
 ip xfrm policy
src 0.0.0.0/0 dst 192.0.3.10/32 
	dir out priority PRIORITY ptype main 
	tmpl src 192.1.2.23 dst 192.1.2.254
src 192.0.3.10/32 dst 0.0.0.0/0 
	dir fwd priority PRIORITY ptype main 
	tmpl src 192.1.2.254 dst 192.1.2.23
src 192.0.3.10/32 dst 0.0.0.0/0 
	dir in priority PRIORITY ptype main 
	tmpl src 192.1.2.254 dst 192.1.2.23
src 192.1.2.254/32 dst 192.1.2.23/32 
	dir fwd priority PRIORITY ptype main 
src 192.1.2.254/32 dst 192.1.2.23/32 
	dir in priority PRIORITY ptype main 
src 192.1.2.23/32 dst 192.1.2.254/32 
	dir out priority PRIORITY ptype main 
src 192.1.2.130/32 dst 192.1.2.23/32 
	dir fwd priority PRIORITY ptype main 
src 192.1.2.130/32 dst 192.1.2.23/32 
	dir in priority PRIORITY ptype main 
src 192.1.2.23/32 dst 192.1.2.130/32 
	dir out priority PRIORITY ptype main 
src 192.1.2.129/32 dst 192.1.2.23/32 
	dir fwd priority PRIORITY ptype main 
src 192.1.2.129/32 dst 192.1.2.23/32 
	dir in priority PRIORITY ptype main 
src 192.1.2.23/32 dst 192.1.2.129/32 
	dir out priority PRIORITY ptype main 
src 192.0.1.0/24 dst 192.1.2.23/32 
	dir fwd priority PRIORITY ptype main 
src 192.0.1.0/24 dst 192.1.2.23/32 
	dir in priority PRIORITY ptype main 
src 192.1.2.23/32 dst 192.0.1.0/24 
	dir out priority PRIORITY ptype main 
east #
 
