From owner-freebsd-net@freebsd.org Tue Dec 1 08:08:57 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2BDDAA3DBF1 for ; Tue, 1 Dec 2015 08:08:57 +0000 (UTC) (envelope-from daniel.bilik@neosystem.cz) Received: from mail.neosystem.cz (mail.neosystem.cz [IPv6:2001:41d0:2:5ab8::10:15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B1C0A1A85; Tue, 1 Dec 2015 08:08:56 +0000 (UTC) (envelope-from daniel.bilik@neosystem.cz) Received: from mail.neosystem.cz (unknown [127.0.10.15]) by mail.neosystem.cz (Postfix) with ESMTP id 7F92C38A; Tue, 1 Dec 2015 09:08:53 +0100 (CET) X-Virus-Scanned: amavisd-new at mail.neosystem.cz Received: from dragon.sn.neosystem.cz (unknown [IPv6:2001:41d0:2:5ab8::100:101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.neosystem.cz (Postfix) with ESMTPSA id 08DF6377; Tue, 1 Dec 2015 09:08:51 +0100 (CET) Date: Tue, 1 Dec 2015 09:03:32 +0100 From: Daniel Bilik To: Julian Elischer Cc: freebsd-net@freebsd.org Subject: Re: Outgoing packets being sent via wrong interface Message-Id: <20151201090332.09b038935b8eabf33288c24c@neosystem.cz> In-Reply-To: <565C6F86.7090108@freebsd.org> References: <20151120155511.5fb0f3b07228a0c829fa223f@neosystem.org> <20151120163431.3449a473db9de23576d3a4b4@neosystem.org> <20151121212043.GC2307@vega.codepro.be> <20151122130240.165a50286cbaa9288ffc063b@neosystem.cz> <20151125092145.e93151af70085c2b3393f149@neosystem.cz> <20151125122033.GB41119@in-addr.com> <20151127101349.752c94090e78ca68cf0f81fc@neosystem.org> <56597CB5.7030307@freebsd.org> <20151130101838.e59be3db0eb3922d87544b16@neosystem.cz> <565C6F86.7090108@freebsd.org> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.24.28; x86_64-portbld-dragonfly4.3) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Tue__1_Dec_2015_09_03_32_+0100_6x3skEPKjLDdKR5L" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2015 08:08:57 -0000 This is a multi-part message in MIME format. --Multipart=_Tue__1_Dec_2015_09_03_32_+0100_6x3skEPKjLDdKR5L Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 30 Nov 2015 23:47:18 +0800 Julian Elischer wrote: > ok next time try > netstat -raAnW before and after Attached ("Internet6" part removed to reduce noise). > maybe we can spot at difference. According to diff(1), entries differ only by "Use" column between .pre and .during. The .post output shows the state after "refreshing" default route, so there are also different addresses for those entries. -- Dan --Multipart=_Tue__1_Dec_2015_09_03_32_+0100_6x3skEPKjLDdKR5L Content-Type: text/plain; name="netstat.pre" Content-Disposition: attachment; filename="netstat.pre" Content-Transfer-Encoding: 7bit Routing tables Internet: Address Destination Gateway Flags Use Mtu Netif Expire fffff80001bc8c98 (32) fffff800123cb0f8 : fffff8003102ee40 mk = fffff800716c4c20 {(0), (0) } fffff800123cb0f8 (33) fffff80001bc8c68 : fffff8003102f030 fffff80001bc8c68 (root node) => fffff8003100f000 default 82.x.y.29 UGS 1897332 1500 re0 mask (0) mk = fffff800716c4c20 {(0), (0) } fffff8003102f030 (34) fffff800123c8cb0 : fffff8003102f1c0 fffff800123c8cb0 (35) fffff800123c8c80 : fffff800123c8d78 fffff800123c8c80 78.x.y.5 82.x.y.29 UGHS 1849 1500 re0 fffff800123c8d78 (36) fffff800123c8e40 : fffff800123c8d48 fffff800123c8e40 (54) fffff800123c8e10 : fffff8003102ef08 fffff800123c8e10 28.x.y.16 82.x.y.29 UGHS 26170748 1500 re0 fffff8003102ef08 (62) fffff8003102f000 : fffff8003102eed8 mk = fffff800122c24e0 {(61), , (255) ffff ffff fff8 } fffff8003102f000 82.x.y.0/24 link#2 U 0 1500 re0 mask (255) ffff ffff fff8 mk = fffff800122c24e0 {(61), , (255) ffff ffff fff8 } fffff8003102eed8 82.x.y.50 link#2 UHS 0 16384 lo0 fffff800123c8d48 94.x.y.14 82.x.y.29 UGHS 6455 1500 re0 fffff8003102f1c0 (52) fffff800123cb0c8 : fffff8003100f288 fffff800123cb0c8 127.0.0.1 link#1 UH 341205 16384 lo0 fffff8003100f288 (60) fffff8003102f0f8 : fffff8003100f258 fffff8003102f0f8 (61) fffff8003102f190 : fffff8003102f0c8 fffff8003102f190 127.0.10.1 link#1 UH 4 16384 lo0 fffff8003102f0c8 127.0.10.5 link#1 UH 226889 16384 lo0 fffff8003100f258 127.0.10.15 link#1 UH 2042240 16384 lo0 fffff8003102ee40 (34) fffff800123de5a8 : fffff80001bc8cc8 fffff800123de5a8 (49) fffff800123de418 : fffff800123de4e0 fffff800123de418 (54) fffff800123de3e8 : fffff8003102ed78 fffff800123de3e8 192.168.1.0/24 192.168.123.1 UGS 8798807 1500 tap0 mask (255) ffff ffff ff fffff8003102ed78 (60) fffff8003100f1c0 : fffff800123debe8 mk = fffff800122c25e0 {(56), , (255) ffff ffff ff } fffff8003100f1c0 (61) fffff8003102ebe8 : fffff8003100f190 fffff8003102ebe8 (63) fffff8003102ee10 : fffff8003102ebb8 fffff8003102ee10 192.168.2.0/24 link#3 U 306549997 1500 re1 mask (255) ffff ffff ff mk = fffff800122c25e0 {(56), , (255) ffff ffff ff } fffff8003102ebb8 192.168.2.1 link#3 UHS 863741 16384 lo0 fffff8003100f190 192.168.2.5 link#3 UHS 1542937 16384 lo0 fffff800123debe8 (61) fffff8003102ed48 : fffff800123debb8 fffff8003102ed48 192.168.2.8 link#3 UHS 476942 16384 lo0 fffff800123debb8 192.168.2.15 link#3 UHS 4475968 16384 lo0 fffff800123de4e0 (62) fffff800123de578 : fffff800123de4b0 mk = fffff800c54c1f40 {(56), , (255) ffff ffff ff } fffff800123de578 192.168.123.0/24 link#5 U 50633 1500 tap0 mask (255) ffff ffff ff mk = fffff800c54c1f40 {(56), , (255) ffff ffff ff } fffff800123de4b0 192.168.123.2 link#5 UHS 0 16384 lo0 fffff80001bc8cc8 (root node) --Multipart=_Tue__1_Dec_2015_09_03_32_+0100_6x3skEPKjLDdKR5L Content-Type: text/plain; name="netstat.during" Content-Disposition: attachment; filename="netstat.during" Content-Transfer-Encoding: 7bit Routing tables Internet: Address Destination Gateway Flags Use Mtu Netif Expire fffff80001bc8c98 (32) fffff800123cb0f8 : fffff8003102ee40 mk = fffff800716c4c20 {(0), (0) } fffff800123cb0f8 (33) fffff80001bc8c68 : fffff8003102f030 fffff80001bc8c68 (root node) => fffff8003100f000 default 82.x.y.29 UGS 2388496 1500 re0 mask (0) mk = fffff800716c4c20 {(0), (0) } fffff8003102f030 (34) fffff800123c8cb0 : fffff8003102f1c0 fffff800123c8cb0 (35) fffff800123c8c80 : fffff800123c8d78 fffff800123c8c80 78.x.y.5 82.x.y.29 UGHS 1902 1500 re0 fffff800123c8d78 (36) fffff800123c8e40 : fffff800123c8d48 fffff800123c8e40 (54) fffff800123c8e10 : fffff8003102ef08 fffff800123c8e10 28.x.y.16 82.x.y.29 UGHS 26578601 1500 re0 fffff8003102ef08 (62) fffff8003102f000 : fffff8003102eed8 mk = fffff800122c24e0 {(61), , (255) ffff ffff fff8 } fffff8003102f000 82.x.y.0/24 link#2 U 0 1500 re0 mask (255) ffff ffff fff8 mk = fffff800122c24e0 {(61), , (255) ffff ffff fff8 } fffff8003102eed8 82.x.y.50 link#2 UHS 0 16384 lo0 fffff800123c8d48 94.x.y.14 82.x.y.29 UGHS 6549 1500 re0 fffff8003102f1c0 (52) fffff800123cb0c8 : fffff8003100f288 fffff800123cb0c8 127.0.0.1 link#1 UH 349078 16384 lo0 fffff8003100f288 (60) fffff8003102f0f8 : fffff8003100f258 fffff8003102f0f8 (61) fffff8003102f190 : fffff8003102f0c8 fffff8003102f190 127.0.10.1 link#1 UH 4 16384 lo0 fffff8003102f0c8 127.0.10.5 link#1 UH 232518 16384 lo0 fffff8003100f258 127.0.10.15 link#1 UH 2063363 16384 lo0 fffff8003102ee40 (34) fffff800123de5a8 : fffff80001bc8cc8 fffff800123de5a8 (49) fffff800123de418 : fffff800123de4e0 fffff800123de418 (54) fffff800123de3e8 : fffff8003102ed78 fffff800123de3e8 192.168.1.0/24 192.168.123.1 UGS 9201461 1500 tap0 mask (255) ffff ffff ff fffff8003102ed78 (60) fffff8003100f1c0 : fffff800123debe8 mk = fffff800122c25e0 {(56), , (255) ffff ffff ff } fffff8003100f1c0 (61) fffff8003102ebe8 : fffff8003100f190 fffff8003102ebe8 (63) fffff8003102ee10 : fffff8003102ebb8 fffff8003102ee10 192.168.2.0/24 link#3 U 309252264 1500 re1 mask (255) ffff ffff ff mk = fffff800122c25e0 {(56), , (255) ffff ffff ff } fffff8003102ebb8 192.168.2.1 link#3 UHS 882251 16384 lo0 fffff8003100f190 192.168.2.5 link#3 UHS 1578738 16384 lo0 fffff800123debe8 (61) fffff8003102ed48 : fffff800123debb8 fffff8003102ed48 192.168.2.8 link#3 UHS 487703 16384 lo0 fffff800123debb8 192.168.2.15 link#3 UHS 4513032 16384 lo0 fffff800123de4e0 (62) fffff800123de578 : fffff800123de4b0 mk = fffff800c54c1f40 {(56), , (255) ffff ffff ff } fffff800123de578 192.168.123.0/24 link#5 U 53749 1500 tap0 mask (255) ffff ffff ff mk = fffff800c54c1f40 {(56), , (255) ffff ffff ff } fffff800123de4b0 192.168.123.2 link#5 UHS 0 16384 lo0 fffff80001bc8cc8 (root node) --Multipart=_Tue__1_Dec_2015_09_03_32_+0100_6x3skEPKjLDdKR5L Content-Type: text/plain; name="netstat.post" Content-Disposition: attachment; filename="netstat.post" Content-Transfer-Encoding: 7bit Routing tables Internet: Address Destination Gateway Flags Use Mtu Netif Expire fffff80001bc8c98 (32) fffff800123cb0f8 : fffff8003102ee40 mk = fffff800c287df40 {(0), (0) } fffff800123cb0f8 (33) fffff80001bc8c68 : fffff8003102f030 fffff80001bc8c68 (root node) => fffff800123de320 default 82.x.y.29 UGS 1709 1500 re0 mask (0) mk = fffff800c287df40 {(0), (0) } fffff8003102f030 (34) fffff800123c8cb0 : fffff8003102f1c0 fffff800123c8cb0 (35) fffff800123c8c80 : fffff800123c8d78 fffff800123c8c80 78.x.y.5 82.x.y.29 UGHS 1902 1500 re0 fffff800123c8d78 (36) fffff800123c8e40 : fffff800123c8d48 fffff800123c8e40 (54) fffff800123c8e10 : fffff8003102ef08 fffff800123c8e10 28.x.y.16 82.x.y.29 UGHS 26580176 1500 re0 fffff8003102ef08 (62) fffff8003102f000 : fffff8003102eed8 mk = fffff800122c24e0 {(61), , (255) ffff ffff fff8 } fffff8003102f000 82.x.y.0/24 link#2 U 0 1500 re0 mask (255) ffff ffff fff8 mk = fffff800122c24e0 {(61), , (255) ffff ffff fff8 } fffff8003102eed8 82.x.y.50 link#2 UHS 0 16384 lo0 fffff800123c8d48 94.x.y.14 82.x.y.29 UGHS 6549 1500 re0 fffff8003102f1c0 (52) fffff800123cb0c8 : fffff8003100f288 fffff800123cb0c8 127.0.0.1 link#1 UH 349094 16384 lo0 fffff8003100f288 (60) fffff8003102f0f8 : fffff8003100f258 fffff8003102f0f8 (61) fffff8003102f190 : fffff8003102f0c8 fffff8003102f190 127.0.10.1 link#1 UH 4 16384 lo0 fffff8003102f0c8 127.0.10.5 link#1 UH 232518 16384 lo0 fffff8003100f258 127.0.10.15 link#1 UH 2063427 16384 lo0 fffff8003102ee40 (34) fffff800123de5a8 : fffff80001bc8cc8 fffff800123de5a8 (49) fffff800123de418 : fffff800123de4e0 fffff800123de418 (54) fffff800123de3e8 : fffff8003102ed78 fffff800123de3e8 192.168.1.0/24 192.168.123.1 UGS 9203026 1500 tap0 mask (255) ffff ffff ff fffff8003102ed78 (60) fffff8003100f1c0 : fffff800123debe8 mk = fffff800122c25e0 {(56), , (255) ffff ffff ff } fffff8003100f1c0 (61) fffff8003102ebe8 : fffff8003100f190 fffff8003102ebe8 (63) fffff8003102ee10 : fffff8003102ebb8 fffff8003102ee10 192.168.2.0/24 link#3 U 309273008 1500 re1 mask (255) ffff ffff ff mk = fffff800122c25e0 {(56), , (255) ffff ffff ff } fffff8003102ebb8 192.168.2.1 link#3 UHS 882317 16384 lo0 fffff8003100f190 192.168.2.5 link#3 UHS 1578782 16384 lo0 fffff800123debe8 (61) fffff8003102ed48 : fffff800123debb8 fffff8003102ed48 192.168.2.8 link#3 UHS 487720 16384 lo0 fffff800123debb8 192.168.2.15 link#3 UHS 4513175 16384 lo0 fffff800123de4e0 (62) fffff800123de578 : fffff800123de4b0 mk = fffff800c54c1f40 {(56), , (255) ffff ffff ff } fffff800123de578 192.168.123.0/24 link#5 U 53756 1500 tap0 mask (255) ffff ffff ff mk = fffff800c54c1f40 {(56), , (255) ffff ffff ff } fffff800123de4b0 192.168.123.2 link#5 UHS 0 16384 lo0 fffff80001bc8cc8 (root node) --Multipart=_Tue__1_Dec_2015_09_03_32_+0100_6x3skEPKjLDdKR5L--