From: Phil Sutter Subject: [nft PATCH 2/6] nft.8: Describe conntrack types Date: Thu, 10 Aug 2017 19:29:16 +0200 Message-ID: <20170810172920.14893-3-phil@nwl.cc> References: <20170810172920.14893-1-phil@nwl.cc> Cc: netfilter-devel@vger.kernel.org To: Pablo Neira Ayuso Return-path: Received: from orbyte.nwl.cc ([151.80.46.58]:42469 "EHLO mail.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752559AbdHJRaK (ORCPT ); Thu, 10 Aug 2017 13:30:10 -0400 In-Reply-To: <20170810172920.14893-1-phil@nwl.cc> Sender: netfilter-devel-owner@vger.kernel.org List-ID: Signed-off-by: Phil Sutter --- doc/nft.xml | 230 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 230 insertions(+) diff --git a/doc/nft.xml b/doc/nft.xml index 91b9bb378c80a..3ef88a79efd70 100644 --- a/doc/nft.xml +++ b/doc/nft.xml @@ -1921,6 +1921,232 @@ filter output icmpv6 type { echo-request, echo-reply } + + Conntrack types + + This is an overview of types used in ct + expression and statement: + + + + + + + + + Name + Keyword + Size + Base type + + + + + conntrack state + ct_state + 4 byte + bitmask + + + conntrack direction + ct_dir + 8 bit + integer + + + conntrack status + ct_status + 4 byte + bitmask + + + conntrack event bits + ct_event + 4 byte + bitmask + + + conntrack label + ct_label + 128 bit + bitmask + + + +
+
+ + For each of the types above, keywords are available for convenience: + + conntrack state (ct_state) + + + + + + Keyword + Value + + + + + invalid + 1 + + + established + 2 + + + related + 4 + + + new + 8 + + + untracked + 64 + + + +
+ + + conntrack direction (ct_dir) + + + + + + Keyword + Value + + + + + original + 0 + + + reply + 1 + + + +
+ + + conntrack status (ct_status) + + + + + + Keyword + Value + + + + + expected + 1 + + + seen-reply + 2 + + + assured + 4 + + + confirmed + 8 + + + snat + 16 + + + dnat + 32 + + + dying + 512 + + + +
+ + + conntrack event bits (ct_event) + + + + + + Keyword + Value + + + + + new + 1 + + + related + 2 + + + destroy + 4 + + + reply + 8 + + + assured + 16 + + + protoinfo + 32 + + + helper + 64 + + + mark + 128 + + + seqadj + 256 + + + secmark + 512 + + + label + 1024 + + + +
+ + Possible keywords for conntrack label type + (ct_label) are read at runtime from + /etc/connlabel.conf. + +
+
@@ -3577,6 +3803,10 @@ ip6 filter input frag more-fragments 1 counter + + A description of conntrack-specific types listed above can be + found sub-section CONNTRACK TYPES above. + -- 2.13.1