From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: How to enable jhash for nftables v0.8 Date: Thu, 26 Oct 2017 11:22:02 +0200 Message-ID: <20171026092202.GA2589@salvia> References: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: Laura =?iso-8859-1?Q?Garc=EDa_Li=E9bana?= Cc: netfilter@vger.kernel.org On Thu, Oct 26, 2017 at 11:09:26AM +0200, Laura Garc=EDa Li=E9bana wrote: > > From: Zheng konia > > Date: Thu, Oct 26, 2017 at 10:48 AM > > Subject: How to enable jhash for nftables v0.8 > > To: Netfilter Users Mailing list > > > > > > Hi, > > > > I'm have some error with configureing nftables-nat with loading > > balance when I trying `jhash`. > > > > # nft add rule nat prerouting mark set jhash ip saddr . tcp dport mo= d 2 > > Error: Could not process rule: Invalid argument > > add rule nat prerouting mark set jhash ip saddr . tcp dport mo= d 2 > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^= ^^^ >=20 > Hi, the jhash expression it's correct but you should try with: >=20 > # nft add rule ip nat prerouting ct mark set jhash ... Probably he doesn't want to set the mark... but match on it based on the jhash result. @Zheng, what kernel version are you using? Thanks!