/testing/guestbin/swan-prep
north #
 cp policies/* /etc/ipsec.d/policies/
north #
 cp ikev2-oe.conf /etc/ipsec.d/ikev2-oe.conf
north #
 echo "192.1.3.209/32" >> /etc/ipsec.d/policies/private-or-clear
north #
 ipsec start
Redirecting to: [initsystem]
north #
 ../../guestbin/wait-until-pluto-started
north #
 ipsec whack --impair suppress_retransmits
north #
 # give OE policies time to load
north #
 ../../guestbin/wait-for.sh --match 'loaded 9,' -- ipsec auto --status
Total IPsec connections: loaded 9, active 0
north #
 echo "initdone"
initdone
north #
 # these will create pass through shunts (on the responder?)
north #
 ../../guestbin/ping-once.sh --forget -I 192.1.3.33 192.1.2.23
fired and forgotten
north #
 ../../guestbin/ping-once.sh --up -I 192.1.3.33 192.1.2.23
up
north #
 ../../guestbin/ping-once.sh --up -I 192.1.3.33 192.1.2.45
up
north #
 echo run done
run done
north #
 ipsec whack --trafficstatus
#2: "private-or-clear#192.1.3.209/32"[1] ...192.1.3.209, type=ESP, add_time=1234567890, inBytes=252, outBytes=252, maxBytes=2^63B, id='ID_NULL'
north #
 iptables -t nat -L -n
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination         
north #
 ../../guestbin/ipsec-look.sh
north NOW
XFRM state:
src 192.1.3.209 dst 192.1.3.33
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec esn
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
	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.3.33 dst 192.1.3.209
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec esn
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
	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 
XFRM policy:
src 192.1.2.253/32 dst 192.1.3.33/32
	dir fwd priority PRIORITY ptype main
src 192.1.2.253/32 dst 192.1.3.33/32
	dir in priority PRIORITY ptype main
src 192.1.3.253/32 dst 192.1.3.33/32
	dir fwd priority PRIORITY ptype main
src 192.1.3.253/32 dst 192.1.3.33/32
	dir in priority PRIORITY ptype main
src 192.1.3.254/32 dst 192.1.3.33/32
	dir fwd priority PRIORITY ptype main
src 192.1.3.254/32 dst 192.1.3.33/32
	dir in priority PRIORITY ptype main
src 192.1.3.33/32 dst 192.1.2.253/32
	dir out priority PRIORITY ptype main
src 192.1.3.33/32 dst 192.1.3.253/32
	dir out priority PRIORITY ptype main
src 192.1.3.33/32 dst 192.1.3.254/32
	dir out priority PRIORITY ptype main
src 192.1.3.209/32 dst 192.1.3.33/32
	dir fwd priority PRIORITY ptype main
	tmpl src 192.1.3.209 dst 192.1.3.33
		proto esp reqid REQID mode tunnel
src 192.1.3.209/32 dst 192.1.3.33/32
	dir in priority PRIORITY ptype main
	tmpl src 192.1.3.209 dst 192.1.3.33
		proto esp reqid REQID mode tunnel
src 192.1.3.33/32 dst 192.1.3.209/32
	dir out priority PRIORITY ptype main
	tmpl src 192.1.3.33 dst 192.1.3.209
		proto esp reqid REQID mode tunnel
XFRM done
IPSEC mangle TABLES
iptables filter TABLE
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ROUTING TABLES
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
NSS_CERTIFICATES
Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI
north #
 
