From owner-freebsd-net@FreeBSD.ORG Mon Mar 20 12:16:45 2006 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 CFD5816A400 for ; Mon, 20 Mar 2006 12:16:45 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01B2943D45 for ; Mon, 20 Mar 2006 12:16:44 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (adsl-66-124-231-46.dsl.snfc21.pacbell.net [66.124.231.46]) (authenticated bits=0) by igloo.linux.gr (8.13.5/8.13.5/Debian-3) with ESMTP id k2KCGTFG025043; Mon, 20 Mar 2006 14:16:33 +0200 Received: by flame.pc (Postfix, from userid 1001) id A7E0F19; Mon, 20 Mar 2006 04:16:07 -0800 (PST) Date: Mon, 20 Mar 2006 04:16:07 -0800 From: Giorgos Keramidas To: Ludovit Koren Message-ID: <20060320121607.GA7924@flame.pc> References: <20060320.125130.92586288.lk@tempest.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060320.125130.92586288.lk@tempest.sk> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.525, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.87, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr Cc: freebsd-net@freebsd.org Subject: Re: static routes 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, 20 Mar 2006 12:16:45 -0000 On 2006-03-20 12:51, Ludovit Koren wrote: > > Hi, > > I realized on several different versions of FreeBSD including > 5.4-STABLE, when using static routes to specific subnets and the WAN > link goes down for unpredictable reasons, the server gets ICMP > redirect message and rearranges routes to use default router. Then all > the traffic is routed to the default router even the WAN link is again > up. Other unix like system (HP-UX, Linux) do not act the way, > i.e. they do not change static routes. > > Should not be ignored the ICMP redirect messages concerning static > routes? That depends on what you have configured the system to do. You can set the net.inet.icmp.drop_redirect sysctl to 1 to drop them.