From owner-freebsd-hackers Fri Mar 31 3:57:53 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from nothing-going-on.demon.co.uk (nothing-going-on.demon.co.uk [193.237.89.66]) by hub.freebsd.org (Postfix) with ESMTP id 2715637B62D for ; Fri, 31 Mar 2000 03:57:46 -0800 (PST) (envelope-from nik@nothing-going-on.demon.co.uk) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.9.3/8.9.3) id MAA10546 for hackers@freebsd.org; Fri, 31 Mar 2000 12:57:40 +0100 (BST) (envelope-from nik) Date: Fri, 31 Mar 2000 12:57:40 +0100 From: Nik Clayton To: hackers@freebsd.org Subject: No route for 127/8 to lo0 (?) Message-ID: <20000331125739.A97865@catkin.nothing-going-on.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i Organization: FreeBSD Project Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ Sigh. I had hoped to keep this to the uk mailing list, limiting the exposure of my ignorance. Sadly I now have to expose it to the whole world. This is on a 3.x-stable system. ] In the course of debugging why Samba was bringing my modem link up periodically, I discovered it was sending netbios packets to 127.255.255.255. Because the relevent entries from the routing table looked like Destination Gateway Flags Refs Use Netif Expire default 158.152.1.222 UGSc 22 0 tun0 127.0.0.1 127.0.0.1 UH 0 201 lo0 [...] 127.255.255.255 was going out of the default route, tun0, and bringing the line up. Obviously, there are several ways to fix this. You could add a network route ("route add -net 127 -interface lo0"), you could configure PPP's dial filter to ignore them, or you could filter them with a firewall. I thought that 127/8 was the "local net", and that packets sent to any of those addresses would go via the loopback interface. That seems to be how Linux and Windows 98 do things (the only systems I can check this on at the moment). Assuming that's the case, why does FreeBSD only add a a host route to 127.0.0.1, and not a network route for 127/8? Various other people have confirmed that they only have a 127.0.0.1 host route as well, so I don't believe this is a misconfiguration of my system. Or am I misguided, and need to go buy a copy of Stevens? N -- Internet connection, $19.95 a month. Computer, $799.95. Modem, $149.95. Telephone line, $24.95 a month. Software, free. USENET transmission, hundreds if not thousands of dollars. Thinking before posting, priceless. Somethings in life you can't buy. For everything else, there's MasterCard. -- Graham Reed, in the Scary Devil Monastery To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message