From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Westphal Subject: [PATCH nft 2/2] doc: payload and conntrack statement Date: Fri, 9 Sep 2016 00:16:56 +0200 Message-ID: <1473373016-24078-2-git-send-email-fw@strlen.de> References: <1473373016-24078-1-git-send-email-fw@strlen.de> Cc: Florian Westphal To: Return-path: Received: from Chamillionaire.breakpoint.cc ([146.0.238.67]:46584 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751907AbcIHWQq (ORCPT ); Thu, 8 Sep 2016 18:16:46 -0400 In-Reply-To: <1473373016-24078-1-git-send-email-fw@strlen.de> Sender: netfilter-devel-owner@vger.kernel.org List-ID: Signed-off-by: Florian Westphal --- doc/nft.xml | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 81 insertions(+), 1 deletion(-) diff --git a/doc/nft.xml b/doc/nft.xml index 6297674..3b215f8 100644 --- a/doc/nft.xml +++ b/doc/nft.xml @@ -2037,7 +2037,7 @@ filter output oif eth0 label - Connection tracking label + Connection tracking label bit or symbolic name defined in connlabel.conf in the nftables include path ct_label @@ -2207,6 +2207,29 @@ filter input iif eth0 drop + Payload statement + + The payload statement alters packet content. + It can be used for example to set ip DSCP (differv) header field or ipv6 flow labels. + + + + route some packets instead of bridging + +# redirect tcp:http from 192.160.0.0/16 to local machine for routing instead of bridging +# assumes 00:11:22:33:44:55 is local MAC address. +bridge input meta iif eth0 ip saddr 192.168.0.0/16 tcp dport 80 meta pkttype set unicast ether daddr set 00:11:22:33:44:55 + + + + Set IPv4 DSCP header field + +ip forward ip dscp set 42 + + + + + Log statement @@ -2390,6 +2413,63 @@ filter input iif eth0 drop + Conntrack statement + + The conntrack statement can be used to set the conntrack mark and conntrack labels. + + + + ct + + mark + label + + set + value + + + + The ct statement sets meta data associated with a connection. + + + + Meta statement types + + + + + + + Keyword + Description + Value + + + + + mark + Connection tracking mark + mark + + + label + Connection tracking label + label + + + +
+
+ + + save packet nfmark in conntrack + +ct set mark meta mark + + + +
+ Meta statement A meta statement sets the value of a meta expression. -- 2.7.3