]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
doc: move drop rule on a separate line in blackhole example
authorSimon Ruderich <simon@ruderich.org>
Sun, 7 Mar 2021 09:51:36 +0000 (10:51 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Mar 2021 01:41:59 +0000 (02:41 +0100)
At first I overlooked the "drop". Putting it on a separate line makes it
more visible and also details the separate steps of this rule.

Signed-off-by: Simon Ruderich <simon@ruderich.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/statements.txt

index 7bb538a92df03a6b43d51cc370f4286abd342dce..0973e5efbe2755bf99b348e36485af21c66b4097 100644 (file)
@@ -712,7 +712,8 @@ nft add rule ip filter input ip saddr @blackhole counter drop
 # requests occurred per second and ip address.
 nft add rule ip filter input tcp flags syn tcp dport ssh \
     add @flood { ip saddr limit rate over 10/second } \
-    add @blackhole { ip saddr } drop
+    add @blackhole { ip saddr } \
+    drop
 
 # inspect state of the sets.
 nft list set ip filter flood