From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Rabbitson Date: Wed, 27 Jun 2007 09:09:21 +0000 Subject: Re: [LARTC] Load Balance and SNAT problem. Message-Id: <46822941.7020604@rabbit.us> List-Id: References: <7e47206b0706242007q487365d3gb7c12658b9669edd@mail.gmail.com> In-Reply-To: <7e47206b0706242007q487365d3gb7c12658b9669edd@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Grant Taylor wrote: > On 6/27/2007 3:03 AM, Peter Rabbitson wrote: >> I want the kernel to be able to realize that a gateway is no good for >> any destinations other than the specified netblock. > > Would it be fair to say that you are wanting an administratively > configurable "ignore addresses that fall with in this " while > deciding if a gateway is dead? > > Obviously would need to be a bit more than just an ip / > netmask combination to make this realistic. > > If this is what you are wanting, it may be possible to augment the > kernel code that is used to detect dead gateways and have it check to > see if the networks match a list (from somewhere in proc / sysfs / > sysctl?) and not increment traffic counters. I am presuming that it is > the traffic counters that have to be incremented for the kernel to think > that a route is still alive. So, if you purposfully did not increment > the counters, you could probably detect that a given gateway is no good. Something along these lines, yes. Except that instead of a packet-counter there is a resettable timer, that gets reset anytime a matching packet comes in. When the timer goes over a specified limit - gateway is dead. > I think you would have to add an additional route that was to the given > network(s) that did not use such a feature to provide a way for the > routing code to route to those network(s) that it no longer would get to > via a default gateway. > This would be a manual task for the administrator, there is no place for this in-kernel. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc