/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
000 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
006 #2: "private-or-clear#192.1.3.209/32"[1] ...192.1.3.209, type=ESP, add_time=1234567890, inBytes=252, outBytes=252, 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 32 flag af-unspec
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
src 192.1.3.33 dst 192.1.3.209
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 32 flag af-unspec
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
XFRM policy:
src 192.1.2.253/32 dst 192.1.3.33/32
	dir fwd priority 3129279 ptype main
src 192.1.2.253/32 dst 192.1.3.33/32
	dir in priority 3129279 ptype main
src 192.1.3.253/32 dst 192.1.3.33/32
	dir fwd priority 3129279 ptype main
src 192.1.3.253/32 dst 192.1.3.33/32
	dir in priority 3129279 ptype main
src 192.1.3.254/32 dst 192.1.3.33/32
	dir fwd priority 3129279 ptype main
src 192.1.3.254/32 dst 192.1.3.33/32
	dir in priority 3129279 ptype main
src 192.1.3.33/32 dst 192.1.2.253/32
	dir out priority 3129279 ptype main
src 192.1.3.33/32 dst 192.1.3.253/32
	dir out priority 3129279 ptype main
src 192.1.3.33/32 dst 192.1.3.254/32
	dir out priority 3129279 ptype main
src 192.1.3.209/32 dst 192.1.3.33/32
	dir fwd priority 4177855 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 4177855 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 4177855 ptype main
	tmpl src 192.1.3.33 dst 192.1.3.209
		proto esp reqid REQID mode tunnel
XFRM done
IPSEC mangle TABLES
NEW_IPSEC_CONN mangle TABLES
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 #
 
