--- north.console.txt 1970-01-01 00:00:00.000000000 +0000 +++ OUTPUT/north.console.txt 2020-10-31 15:25:24.641086666 +0000 @@ -0,0 +1,118 @@ +/testing/guestbin/swan-prep +north # + ip route get to 192.0.2.254 | grep eth1 && ip route del 192.0.2.0/24 via 192.1.3.254 dev eth1 +192.0.2.254 via 192.1.3.254 dev eth1 src 192.1.3.33 uid 0 +RTNETLINK answers: No such process +north # + ip route get to 192.0.1.254 | grep eth1 && ip route del 192.0.1.0/24 via 192.1.3.254 dev eth1 +192.0.1.254 via 192.1.3.254 dev eth1 src 192.1.3.33 uid 0 +RTNETLINK answers: No such process +north # + ip addr show dev eth0 | grep 192.0.33.254 || ip addr add 192.0.33.254/24 dev eth0 +north # + ipsec start +Redirecting to: [initsystem] +north # + /testing/pluto/bin/wait-until-pluto-started +north # + ipsec auto --add north-west +002 added IKEv2 connection "north-west" +north # + ipsec auto --add north-east +002 added IKEv2 connection "north-east" +north # + echo "initdone" +initdone +north # + ipsec auto --up north-east +1v2 "north-east" #1: initiating IKEv2 connection +1v2 "north-east" #1: sent IKE_SA_INIT request +1v2 "north-east" #1: sent IKE_AUTH request {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} +002 "north-east" #2: IKEv2 mode peer ID is ID_FQDN: '@west' +003 "north-east" #1: authenticated using authby=secret +002 "north-east" #2: negotiated connection [192.0.33.0-192.0.33.255:0-65535 0] -> [192.0.1.0-192.0.1.255:0-65535 0] +004 "north-east" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATOA=none NATD=none DPD=passive} +north # + ipsec auto --up north-west +1v2 "north-west" #3: initiating IKEv2 connection +1v2 "north-west" #3: sent IKE_SA_INIT request +1v2 "north-west" #3: sent IKE_AUTH request {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} +002 "north-west" #4: IKEv2 mode peer ID is ID_FQDN: '@west' +003 "north-west" #3: authenticated using authby=secret +003 "north-west" #4: cannot route -- route already in use for "north-east" +036 "north-west" #4: encountered fatal error in state STATE_PARENT_I2 +north # + ping -w 4 -c 4 -I 192.0.3.254 192.0.1.254 +PING 192.0.1.254 (192.0.1.254) from 192.0.3.254 : 56(84) bytes of data. +--- 192.0.1.254 ping statistics --- +4 packets transmitted, 0 received, 100% packet loss, time XXXX +north # + ping -w 4 -c 4 -I 192.0.33.254 192.0.1.254 +PING 192.0.1.254 (192.0.1.254) from 192.0.33.254 : 56(84) bytes of data. +64 bytes from 192.0.1.254: icmp_seq=1 ttl=64 time=0.XXX ms +64 bytes from 192.0.1.254: icmp_seq=2 ttl=64 time=0.XXX ms +64 bytes from 192.0.1.254: icmp_seq=3 ttl=64 time=0.XXX ms +64 bytes from 192.0.1.254: icmp_seq=4 ttl=64 time=0.XXX ms +--- 192.0.1.254 ping statistics --- +4 packets transmitted, 4 received, 0% packet loss, time XXXX +rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms +north # + ipsec whack --trafficstatus +006 #2: "north-east", type=ESP, add_time=1234567890, inBytes=336, outBytes=336, id='@west' +north # + # should be 4 +north # + ip -o xfrm state |wc -l +2 +north # + ipsec auto --down north-west +002 "north-west": terminating SAs using this connection +002 "north-west" #3: deleting state (STATE_V2_ESTABLISHED_IKE_SA) and sending notification +north # + # should be 2 +north # + ip -o xfrm state |wc -l +2 +north # + ping -w 4 -c 4 -I 192.0.33.254 192.0.1.254 +PING 192.0.1.254 (192.0.1.254) from 192.0.33.254 : 56(84) bytes of data. +64 bytes from 192.0.1.254: icmp_seq=1 ttl=64 time=0.XXX ms +64 bytes from 192.0.1.254: icmp_seq=2 ttl=64 time=0.XXX ms +64 bytes from 192.0.1.254: icmp_seq=3 ttl=64 time=0.XXX ms +64 bytes from 192.0.1.254: icmp_seq=4 ttl=64 time=0.XXX ms +--- 192.0.1.254 ping statistics --- +4 packets transmitted, 4 received, 0% packet loss, time XXXX +rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms +north # + ipsec whack --trafficstatus +006 #2: "north-east", type=ESP, add_time=1234567890, inBytes=672, outBytes=672, id='@west' +north # + ipsec auto --down north-east +002 "north-east": terminating SAs using this connection +002 "north-east" #2: deleting state (STATE_V2_ESTABLISHED_CHILD_SA) and sending notification +005 "north-east" #2: ESP traffic information: in=672B out=672B +002 "north-east" #1: deleting state (STATE_V2_ESTABLISHED_IKE_SA) and sending notification +north # + # should be 0 +north # + ip -o xfrm state |wc -l +0 +north # + ipsec stop +Redirecting to: [initsystem] +north # + sleep 2 +north # + # should be exactly 4 +north # + grep "PLUTO_VERB=\'route-client" /tmp/pluto.log | wc -l +0 +north # + grep "PLUTO_VERB=\'unroute-client" /tmp/pluto.log | wc -l +0 +north # + ../bin/check-for-core.sh +north # + if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi +north # +