From owner-freebsd-current@FreeBSD.ORG Thu Jan 9 01:18:24 2014 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9DC6A94E for ; Thu, 9 Jan 2014 01:18:24 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 609DA1569 for ; Thu, 9 Jan 2014 01:18:24 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s091INt2041377 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 8 Jan 2014 17:18:23 -0800 (PST) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s091INkv041376 for current@FreeBSD.org; Wed, 8 Jan 2014 17:18:23 -0800 (PST) (envelope-from jmg) Date: Wed, 8 Jan 2014 17:18:23 -0800 From: John-Mark Gurney To: current@FreeBSD.org Subject: interesting routing bug... Message-ID: <20140109011823.GI99167@funkthat.com> Mail-Followup-To: current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Wed, 08 Jan 2014 17:18:23 -0800 (PST) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jan 2014 01:18:24 -0000 Well, I was trying to manually add a route for a host on the local network (I can explain why, but it doesn't matter) and I got this: # netstat -rnfinet Routing tables Internet: Destination Gateway Flags Netif Expire default 192.168.0.14 UGS re0 127.0.0.1 link#3 UH lo0 192.168.0.0/24 link#1 U re0 192.168.0.21 link#1 UHS lo0 # route add -host 192.168.0.254 -interface re0 -link 04:4a:31:d3:95:dc add net 192.168.0.254: gateway re0 # netstat -rnfinet Routing tables Internet: Destination Gateway Flags Netif Expire 0.0.0.0&0x20500 90:2b:34:ab:bb:85 US re0 default 192.168.0.14 UGS re0 10.0.0.0/8 link#2 U msk0 10.42.42.21 link#2 UHS lo0 127.0.0.1 link#3 UH lo0 192.168.0.0/24 link#1 U re0 192.168.0.21 link#1 UHS lo0 # route delete 0.0.0.0 delete net 0.0.0.0 # route flush :: localhost -fib 0 done ::ffff:0.0.0.0 localhost -fib 0 done fe80:: localhost -fib 0 done ff02:: localhost -fib 0 done # netstat -rnfinet Routing tables Internet: Destination Gateway Flags Netif Expire 0.0.0.0&0x20500 90:2b:34:ab:bb:85 US re0 127.0.0.1 link#3 UH lo0 192.168.0.0/24 link#1 U re0 192.168.0.21 link#1 UHS lo0 So, as you can see, I have managed to add a bogus route w/o a way to remove it short of rebooting the box... And because of this route, some hosts like svn0.us-west.freebsd.org will match causing the machine to try to find the ip on the local network. This route I assume should be rejected by the kernel and not added, or there is a mismatch between the route program and how the kernel understands it. I can provide more information upon request. Thanks. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."