]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
doc: fix non-working example
authorFlorian Westphal <fw@strlen.de>
Fri, 25 Jan 2019 14:08:10 +0000 (15:08 +0100)
committerFlorian Westphal <fw@strlen.de>
Fri, 25 Jan 2019 14:08:44 +0000 (15:08 +0100)
nft doesn't have the context to translate "dns" or "http" as being
service names here.

Signed-off-by: Florian Westphal <fw@strlen.de>
doc/payload-expression.txt

index abaf52f0b31c2b58b0b2bcfda43107d5056bd7ea..28061f362347b275f47f3871236fc38b597efc18 100644 (file)
@@ -481,7 +481,7 @@ Transport Header, for example TCP
 
 .Matching destination port of both UDP and TCP
 ----------------------------------------------
-inet filter input meta l4proto {tcp, udp} @th,16,16 { dns, http }
+inet filter input meta l4proto {tcp, udp} @th,16,16 { 53, 80 }
 -----------------------------------------------------------------
 
 .Rewrite arp packet target hardware address if target protocol address matches a given address