From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: multi-path route can't keep long time connections Date: Tue, 22 Jun 2010 08:16:17 +0200 Message-ID: <4C205531.2010402@trash.net> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: tingwei liu Cc: netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org tingwei liu wrote: > Because route circularly flush route cache > (/proc/net/sys/ipv4/route/secret_timeval),the multi-path route can't > keep long time connections. The long time connections maybe interrupt > every "secret_timeval" seconds. > Such as: > default nexthop via 192.168.0.1 weight 1 > via 192.168.1.1 weight 1 > via 192.168.2.1 weight 1 > > With a connection cross 192.168.0.1 in the first time."secret_timeval" > seconds later,this connection maybe cross 192.168.1.1,then this > connection will be reconnect. > > Anyone can help me? Use CONNMARK to mark new connections, than use that mark to bind them to a specific route.