From owner-freebsd-net@FreeBSD.ORG Mon Oct 10 10:32:20 2005 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E83A516A41F for ; Mon, 10 Oct 2005 10:32:20 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E30043D48 for ; Mon, 10 Oct 2005 10:32:20 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id j9AAWHVl069022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 Oct 2005 14:32:17 +0400 (MSD) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id j9AAWGcE069021; Mon, 10 Oct 2005 14:32:16 +0400 (MSD) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Mon, 10 Oct 2005 14:32:16 +0400 From: Gleb Smirnoff To: Iasen Kostov Message-ID: <20051010103216.GP14542@cell.sick.ru> Mail-Followup-To: Gleb Smirnoff , Iasen Kostov , freebsd-net@freebsd.org References: <1128697135.71975.24.camel@DraGoN.OTEL.net> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <1128697135.71975.24.camel@DraGoN.OTEL.net> User-Agent: Mutt/1.5.6i Cc: freebsd-net@FreeBSD.org Subject: Re: Proxy arp should only replay on specified interface. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 10:32:21 -0000 Iasen, On Fri, Oct 07, 2005 at 05:58:55PM +0300, Iasen Kostov wrote: I> IMHO proxy arp should only replay on specified interface not on every I> arp capable interface which recieved request for the proxied address. I> If lets say host A have arp capable if0 and if1 interfaces and U set: I> route add -host 1.0.0.2 -iface if1 -proxy I> I> and then a request is recieved on if0 for 1.0.0.2, host A will replay I> that it has it (which IMHO is wrong as the proxy route is set for if1). I> I> This sometimes is a big problem for our PPPoE/VPN server when the I> client uses linux or some small routers (e.g Linksys or something) I> probably linux based. It happen that sometimes (when the link is down or I> god knows why) it broadcasts arp "who-has" and the gateway replays. Then I> this host try to use ethernet path and not the (right) tunnel path until I> arp cache expires (which is not real fun as there is firewall rules I> blocking ethernet path :)). I> I> And even worse :) - I can think of ways to bypass routing protocols I> using proxy-arp routes like the one mentioned above. But it will not I> work if proxy-arp behaves the way it does now. I> And 1 thing more - there could be a switch which restores (or turns on) I> old behavior. I> I> (patch agains 5.4-STABLE is attached) Isn't this what you need? http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netinet/if_ether.c?rev=1.140&content-type=text/x-cvsweb-markup -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE