--- north.console.txt 1970-01-01 00:00:00.000000000 +0000 +++ OUTPUT/north.console.txt 2019-08-26 13:11:07.837445373 +0000 @@ -0,0 +1,123 @@ +/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 connection description "north-west" +north # + ipsec auto --add north-east +002 added connection description "north-east" +north # + echo "initdone" +initdone +north # + +north # + ipsec auto --up north-east +002 "north-east" #1: initiating v2 parent SA +1v2 "north-east" #1: initiate +1v2 "north-east" #1: STATE_PARENT_I1: sent v2I1, expected v2R1 +1v2 "north-east" #2: STATE_PARENT_I2: sent v2I2, expected v2R2 {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" #2: 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: STATE_V2_IPSEC_I: 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 +002 "north-west" #3: initiating v2 parent SA +1v2 "north-west" #3: initiate +1v2 "north-west" #3: STATE_PARENT_I1: sent v2I1, expected v2R1 +1v2 "north-west" #4: STATE_PARENT_I2: sent v2I2, expected v2R2 {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" #4: 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_PARENT_I3) 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 +whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) +north # + ipsec auto --down north-east +whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) +north # + # should be 0 +north # + ip -o xfrm state |wc -l +2 +north # + ipsec stop +Redirecting to: [initsystem] +Shutting down pluto IKE daemon +whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) +.......... +Attempt to shut Pluto down failed! Trying kill +/etc/init.d/ipsec: line 162: kill: p: invalid signal specification +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 +