From: Florian Westphal Subject: [PATCH nft 9/9] doc: helper assignement Date: Tue, 14 Mar 2017 20:58:16 +0100 Message-ID: <20170314195816.1721-10-fw@strlen.de> References: <20170314195816.1721-1-fw@strlen.de> Cc: Florian Westphal To: Return-path: Received: from Chamillionaire.breakpoint.cc ([146.0.238.67]:42170 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751102AbdCNT6g (ORCPT ); Tue, 14 Mar 2017 15:58:36 -0400 In-Reply-To: <20170314195816.1721-1-fw@strlen.de> Sender: netfilter-devel-owner@vger.kernel.org List-ID: Signed-off-by: Florian Westphal --- doc/nft.xml | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/doc/nft.xml b/doc/nft.xml index 8ea280417742..ffca6cc9322e 100644 --- a/doc/nft.xml +++ b/doc/nft.xml @@ -950,6 +950,72 @@ filter input iif $int_ifs accept + Ct + + + ct + helper + + + + Ct helper is used to define connection tracking helpers that can then be used in combination with the "ct helper set" statement. + type and protocol are mandatory, l3proto is derived from the table family by default, i.e. in the inet table the kernel will + try to load both the ipv4 and ipv6 helper backends, if they are supported by the kernel. + + + conntrack helper specifications + + + + + + + Keyword + Description + Type + + + + + type + name of helper type + quoted string (e.g. "ftp") + + + protocol + layer 4 protocol of the helper + string (e.g. tcp) + + + l3proto + layer 3 protocol of the helper + string (e.g. ip) + + + +
+ + defining and assigning ftp helper + + Unlike iptables, helper assignment needs to be performed after the conntrack lookup has completed, for example + with the default 0 hook priority. + + +table inet myhelpers { + ct helper ftp-standard { + type "ftp" + protocol tcp + } + chain prerouting { + type filter hook prerouting priority 0; + tcp dport 21 ct helper set "ftp-standard" + } +} + + +
+ + Counter @@ -3376,6 +3442,11 @@ ip6 filter output log flags all + helper + name of ct helper object to assign to the connection + quoted string + + mark Connection tracking mark mark -- 2.10.2