From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [nft PATCH v2] src: add redirect support Date: Tue, 4 Nov 2014 15:44:55 +0100 Message-ID: <20141104144455.GB10239@salvia> References: <20141016104056.8678.71075.stgit@nfdev.cica.es> <20141030162520.GA2074@salvia> <20141104133712.GA9190@salvia> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Netfilter Development Mailing list To: Arturo Borrero Gonzalez Return-path: Received: from mail.us.es ([193.147.175.20]:43240 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753923AbaKDOnO (ORCPT ); Tue, 4 Nov 2014 09:43:14 -0500 Content-Disposition: inline In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Tue, Nov 04, 2014 at 02:56:58PM +0100, Arturo Borrero Gonzalez wrote: > On 4 November 2014 14:37, Pablo Neira Ayuso wrote: > > > > I think this needs to be: > > > > % nft add rule nat prerouting redirect [port] [nat_flags] > > > > The port and nat_flags arguments are mutually exclusives. That's why I > used the [port|nat_flags] syntax. iptables allows this: -j REDIRECT --to-ports 8000-8010 --random