From: Florian Westphal Subject: [PATCH v2 nftables 7/7] doc: ct helper objects and helper set support Date: Wed, 15 Mar 2017 16:01:11 +0100 Message-ID: <20170315150111.18477-8-fw@strlen.de> References: <20170315150111.18477-1-fw@strlen.de> Cc: Florian Westphal To: Return-path: Received: from Chamillionaire.breakpoint.cc ([146.0.238.67]:46454 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753126AbdCOPBS (ORCPT ); Wed, 15 Mar 2017 11:01:18 -0400 In-Reply-To: <20170315150111.18477-1-fw@strlen.de> Sender: netfilter-devel-owner@vger.kernel.org List-ID: Signed-off-by: Florian Westphal --- changes since v1: use in cmdsynopsis, update example doc/nft.xml | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/doc/nft.xml b/doc/nft.xml index 8ea280417742..80f201e89d37 100644 --- a/doc/nft.xml +++ b/doc/nft.xml @@ -950,6 +950,77 @@ filter input iif $int_ifs accept + Ct + + + ct + helper + type + type + protocol + protocol + l3proto + family + + + + 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 + address family (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 +3447,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