From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Westphal Subject: Re: nftables port forward on DHCP interface to static IP Date: Mon, 19 Apr 2021 23:51:45 +0200 Message-ID: <20210419215145.GA4841@breakpoint.cc> References: <973b2d85-567a-e9aa-1b64-749a1fb116a5@fhmtech.com> <0111b128-5639-7694-3e9a-67452408f71e@fhmtech.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <0111b128-5639-7694-3e9a-67452408f71e@fhmtech.com> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Frank Myhr Cc: Pekka =?iso-8859-15?Q?J=E4rvinen?= , netfilter@vger.kernel.org Frank Myhr wrote: > Nitpick: just in my personal opinion, better not to use table name that is a > nftables keyword ("filter"). I know the wiki does it lots of places. And > it's not technically wrong. But: "filter" is not a reserved keyword. > > # TCP SYN (CT NEW) > > tcp flags & (fin|syn|rst|ack) != syn ct state {new} drop > > You're filtering in a nat chain, generally not a good idea. My understanding > is that, since nat is based on connection tracking, this chain will see only > the FIRST packet of each connection. Correct.