/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 1v2 "north-eastnets/0x2" #1: initiate 1v2 "north-eastnets/0x2" #1: STATE_PARENT_I1: sent v2I1, expected v2R1 1v2 "north-eastnets/0x1" #3: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_CBC_256 integ=HMAC_SHA2_256_128 prf=HMAC_SHA2_256 group=MODP2048} 010 "north-eastnets/0x1" #3: STATE_PARENT_I2: retransmission; will wait 0.05 seconds for response 002 "north-eastnets/0x1" #3: IKEv2 mode peer ID is ID_FQDN: '@east' 003 "north-eastnets/0x1" #3: Authenticated using RSA 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} 1v2 "north-eastnets/0x2" #4: STATE_V2_CREATE_I: sent IPsec Child req wait 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 [1] Done ping -f -c 100000 -I 192.0.3.254 192.0.2.254 2>&1 > /dev/null [2] Done ping -f -c 100000 -I 192.0.3.254 192.0.2.251 2>&1 > /dev/null [3]- Done ping -f -c 100000 -I 192.0.3.254 192.0.22.254 2>&1 > /dev/null [4]+ Done ping -f -c 100000 -I 192.0.3.254 192.0.22.251 2>&1 > /dev/null 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=20144124, outBytes=20145216, id='@east' 006 #6: "north-eastnets/0x1", type=ESP, add_time=1234567890, inBytes=13356840, outBytes=13358940, id='@east' 006 #4: "north-eastnets/0x2", type=ESP, add_time=1234567890, inBytes=27482532, outBytes=27484632, id='@east' 006 #5: "north-eastnets/0x2", type=ESP, add_time=1234567890, inBytes=5981976, outBytes=5998104, id='@east' north # ../../pluto/bin/ipsec-look.sh north NOW XFRM state: src 192.1.2.23 dst 192.1.3.33 proto esp spi 0xSPISPI 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 0xSPISPI 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 0xSPISPI 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 0xSPISPI 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 0xSPISPI 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 0xSPISPI 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 0xSPISPI 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 0xSPISPI 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 1042407 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 1042407 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 1042407 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 1042407 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 1042407 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 1042407 ptype main tmpl src 192.1.3.33 dst 192.1.2.23 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 # north # ../bin/check-for-core.sh north # if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi