--- north.console.txt 1970-01-01 00:00:00.000000000 +0000 +++ OUTPUT/north.console.txt 2020-10-31 15:25:21.473201742 +0000 @@ -0,0 +1,152 @@ +/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 IKEv2 connection "north-eastnets/0x1" +002 added IKEv2 connection "north-eastnets/0x2" +north # + ipsec auto --up north-eastnets +000 initiating all conns with alias='north-eastnets' +1v2 "north-eastnets/0x2" #1: initiating IKEv2 connection +000 "north-eastnets/0x1": queuing pending IPsec SA negotiating with 192.1.2.23 IKE SA #1 "north-eastnets/0x2" +1v2 "north-eastnets/0x2" #1: sent IKE_SA_INIT request +1v2 "north-eastnets/0x2" #1: sent IKE_AUTH request {auth=IKEv2 cipher=AES_CBC_256 integ=HMAC_SHA2_256_128 prf=HMAC_SHA2_256 group=MODP2048} +002 "north-eastnets/0x1" #3: IKEv2 mode peer ID is ID_FQDN: '@east' +003 "north-eastnets/0x2" #1: authenticated using RSA with SHA2_512 +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: 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: sent CREATE_CHILD_SA request for new IPsec SA +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: 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=20640984, outBytes=20640984, id='@east' +006 #6: "north-eastnets/0x1", type=ESP, add_time=1234567890, inBytes=8212848, outBytes=8213352, id='@east' +006 #4: "north-eastnets/0x2", type=ESP, add_time=1234567890, inBytes=28581672, outBytes=28581756, id='@east' +006 #5: "north-eastnets/0x2", type=ESP, add_time=1234567890, inBytes=4860492, outBytes=4877376, 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 2084814 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 2084814 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 2084814 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 2084814 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 2084814 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 2084814 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 # + ../bin/check-for-core.sh +north # + if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi +north # +