/testing/guestbin/swan-prep
north #
 rm -fr /var/run/pluto/pluto.pid
north #
 PATH/sbin/ipsec _stackmanager start --netkey
north #
 PLUTO_CRYPTO_HELPER_DELAY=1 PATH/libexec/ipsec/pluto --config /etc/ipsec.conf
north #
 /testing/pluto/bin/wait-until-pluto-started
north #
 echo "initdone"
initdone
north #
 ping -f -c 100000 -I  192.0.3.254  192.0.2.254 2>&1 >/dev/null &
[x] PID
north #
 ping -f -c 100000 -I  192.0.3.254  192.0.2.251 2>&1 >/dev/null &
[x] PID
north #
 ping -f -c 100000 -I  192.0.3.254  192.0.22.254 2>&1 >/dev/null &
[x] PID
north #
 ping -f -c 100000 -I  192.0.3.254  192.0.22.251 2>&1 >/dev/null &
[x] PID
north #
 ipsec auto --add north-eastnets
002 added connection description "north-eastnets/0x1"
002 added connection description "north-eastnets/0x2"
north #
 ipsec auto --up north-eastnets
000 initiating all conns with alias='north-eastnets'
002 "north-eastnets/0x2" #1: initiating v2 parent SA
133 "north-eastnets/0x2" #1: STATE_PARENT_I1: initiate
133 "north-eastnets/0x2" #1: STATE_PARENT_I1: sent v2I1, expected v2R1
134 "north-eastnets/0x1" #3: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=aes_256 integ=sha256_128 prf=sha2_256 group=MODP2048}
010 "north-eastnets/0x1" #3: STATE_PARENT_I2: retransmission; will wait 50ms for response
010 "north-eastnets/0x1" #3: STATE_PARENT_I2: retransmission; will wait 100ms for response
002 "north-eastnets/0x1" #3: IKEv2 mode peer ID is ID_FQDN: '@east'
002 "north-eastnets/0x1" #3: negotiated connection [192.0.3.0-192.0.3.255:0-65535 0] -> [192.0.2.0-192.0.2.255:0-65535 0]
004 "north-eastnets/0x1" #3: STATE_V2_IPSEC_I: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA2_512_256 NATOA=none NATD=none DPD=passive}
139 "north-eastnets/0x2" #4: STATE_V2_CREATE_I: sent IPsec Child req wait response
010 "north-eastnets/0x2" #4: STATE_V2_CREATE_I: retransmission; will wait 50ms for response
010 "north-eastnets/0x2" #4: STATE_V2_CREATE_I: retransmission; will wait 100ms for response
010 "north-eastnets/0x2" #4: STATE_V2_CREATE_I: retransmission; will wait 200ms for response
010 "north-eastnets/0x2" #4: STATE_V2_CREATE_I: retransmission; will wait 400ms for response
002 "north-eastnets/0x2" #4: negotiated connection [192.0.3.0-192.0.3.255:0-65535 0] -> [192.0.22.0-192.0.22.255:0-65535 0]
004 "north-eastnets/0x2" #4: STATE_V2_IPSEC_I: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA2_512_256-MODP3072 NATOA=none NATD=none DPD=passive}
north #
 sleep 16
north #
 ping -n -c 2 -I 192.0.3.254 192.0.2.254
PING 192.0.2.254 (192.0.2.254) from 192.0.3.254 : 56(84) bytes of data.
64 bytes from 192.0.2.254: icmp_seq=1 ttl=64 time=0.XXX ms
64 bytes from 192.0.2.254: icmp_seq=2 ttl=64 time=0.XXX ms
--- 192.0.2.254 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time XXXX
rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms
north #
 # should end up traffic flowing wheather tehre are 2 or more tunnels
north #
 echo done
done
north #
 ipsec whack --trafficstatus
006 #3: "north-eastnets/0x1", type=ESP, add_time=1234567890, inBytes=3179904, outBytes=3174024, id='@east'
006 #6: "north-eastnets/0x1", type=ESP, add_time=1234567890, inBytes=16628808, outBytes=16640820, id='@east'
006 #4: "north-eastnets/0x2", type=ESP, add_time=1234567890, inBytes=17488128, outBytes=17488548, id='@east'
006 #5: "north-eastnets/0x2", type=ESP, add_time=1234567890, inBytes=373548, outBytes=392700, id='@east'
north #
 ipsec look
north NOW
XFRM state:
src 192.1.2.23 dst 192.1.3.33
	proto esp spi 0xSPISPIXX reqid REQID mode tunnel
	replay-window 32 flag af-unspec
	auth-trunc hmac(sha512) 0xHASHKEY 256
	enc cbc(aes) 0xENCKEY
src 192.1.3.33 dst 192.1.2.23
	proto esp spi 0xSPISPIXX reqid REQID mode tunnel
	replay-window 32 flag af-unspec
	auth-trunc hmac(sha512) 0xHASHKEY 256
	enc cbc(aes) 0xENCKEY
src 192.1.2.23 dst 192.1.3.33
	proto esp spi 0xSPISPIXX reqid REQID mode tunnel
	replay-window 32 flag af-unspec
	auth-trunc hmac(sha512) 0xHASHKEY 256
	enc cbc(aes) 0xENCKEY
src 192.1.3.33 dst 192.1.2.23
	proto esp spi 0xSPISPIXX reqid REQID mode tunnel
	replay-window 32 flag af-unspec
	auth-trunc hmac(sha512) 0xHASHKEY 256
	enc cbc(aes) 0xENCKEY
src 192.1.2.23 dst 192.1.3.33
	proto esp spi 0xSPISPIXX reqid REQID mode tunnel
	replay-window 32 flag af-unspec
	auth-trunc hmac(sha512) 0xHASHKEY 256
	enc cbc(aes) 0xENCKEY
src 192.1.3.33 dst 192.1.2.23
	proto esp spi 0xSPISPIXX reqid REQID mode tunnel
	replay-window 32 flag af-unspec
	auth-trunc hmac(sha512) 0xHASHKEY 256
	enc cbc(aes) 0xENCKEY
src 192.1.2.23 dst 192.1.3.33
	proto esp spi 0xSPISPIXX reqid REQID mode tunnel
	replay-window 32 flag af-unspec
	auth-trunc hmac(sha512) 0xHASHKEY 256
	enc cbc(aes) 0xENCKEY
src 192.1.3.33 dst 192.1.2.23
	proto esp spi 0xSPISPIXX reqid REQID mode tunnel
	replay-window 32 flag af-unspec
	auth-trunc hmac(sha512) 0xHASHKEY 256
	enc cbc(aes) 0xENCKEY
XFRM policy:
src 192.0.2.0/24 dst 192.0.3.0/24 
	dir fwd priority 2344 ptype main 
	tmpl src 192.1.2.23 dst 192.1.3.33
		proto esp reqid REQID mode tunnel
src 192.0.2.0/24 dst 192.0.3.0/24 
	dir in priority 2344 ptype main 
	tmpl src 192.1.2.23 dst 192.1.3.33
		proto esp reqid REQID mode tunnel
src 192.0.22.0/24 dst 192.0.3.0/24 
	dir fwd priority 2344 ptype main 
	tmpl src 192.1.2.23 dst 192.1.3.33
		proto esp reqid REQID mode tunnel
src 192.0.22.0/24 dst 192.0.3.0/24 
	dir in priority 2344 ptype main 
	tmpl src 192.1.2.23 dst 192.1.3.33
		proto esp reqid REQID mode tunnel
src 192.0.3.0/24 dst 192.0.2.0/24 
	dir out priority 2344 ptype main 
	tmpl src 192.1.3.33 dst 192.1.2.23
		proto esp reqid REQID mode tunnel
src 192.0.3.0/24 dst 192.0.22.0/24 
	dir out priority 2344 ptype main 
	tmpl src 192.1.3.33 dst 192.1.2.23
		proto esp reqid REQID mode tunnel
src ::/0 dst ::/0 proto ipv6-icmp type 135 
	dir fwd priority 1 ptype main 
src ::/0 dst ::/0 proto ipv6-icmp type 135 
	dir in priority 1 ptype main 
src ::/0 dst ::/0 proto ipv6-icmp type 135 
	dir out priority 1 ptype main 
src ::/0 dst ::/0 proto ipv6-icmp type 136 
	dir fwd priority 1 ptype main 
src ::/0 dst ::/0 proto ipv6-icmp type 136 
	dir in priority 1 ptype main 
src ::/0 dst ::/0 proto ipv6-icmp type 136 
	dir out priority 1 ptype main 
XFRM done
IPSEC mangle TABLES
NEW_IPSEC_CONN mangle TABLES
ROUTING TABLES
default via 192.1.3.254 dev eth1 
192.0.1.0/24 via 192.1.3.254 dev eth1 
192.0.2.0/24 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.2.0/24 via 192.1.3.254 dev eth1 
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 #
north #
 ../bin/check-for-core.sh
north #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

