From owner-freebsd-net Wed Jan 16 17:44: 2 2002 Delivered-To: freebsd-net@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id D994D37B435 for ; Wed, 16 Jan 2002 17:43:15 -0800 (PST) Received: from dialup-209.244.107.170.dial1.sanjose1.level3.net ([209.244.107.170] helo=blossom.cjclark.org) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16R1a4-0003DA-00; Wed, 16 Jan 2002 17:43:09 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id g0H1I9n36977; Wed, 16 Jan 2002 17:18:09 -0800 (PST) (envelope-from cjc) Date: Wed, 16 Jan 2002 17:18:09 -0800 From: "Crist J . Clark" To: "Reto Trachsel (NetModule)" Cc: "'net@freebsd.org'" Subject: Re: ICMP Redirect Message-ID: <20020116171809.E35910@blossom.cjclark.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from reto.trachsel@netmodule.com on Wed, Jan 16, 2002 at 01:15:54PM +0100 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Jan 16, 2002 at 01:15:54PM +0100, Reto Trachsel (NetModule) wrote: > Hi All > > I have some problems with ICMP Redirect. I'm using a FreeBSD-4.5-RC machine > as default Rrouter for our network. If i'm doing a ping to an external host, > a ICMP Redirect message is sended by the router-machine, but not only > once... it is sended every time a ICMP echo-request is detected. The Host > doesn't enter the route from the ICMP redirect into his table. With other > Systems (ie RH Linux and CISCO Routers), this will work on this host > correctly. I am a little unclear on this. Is "router-machine" the FreeBSD router in question? What kind of machine is "Host?" Are we trying to get "router-machine" to stop sending redirects? Or are we trying to get "Host" to accept and use the redirects? > Is there a posibility to switch on/off the ICMP redirect? How can i > configure, which hosts to redirect? You can turn sending/receiving redirects on and off with sysctl(8), but not on per-host basis. You could simulate this behavior to some degree using firewalling. > I saw the configs for sysctrl, but no way to enable or disable the sending > of these packets. Du you have an idea? > > net.inet.icmp.drop_redirect = 0 A machine will ignore incoming redirects. If you want "Host" to use the redirects, set this to one. > net.inet.icmp.log_redirect = 1 This logs the event. The other sysctl(8) you may be interested in is, net.inet.ip.redirect Which controls whether a router sends redirects. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message