From 1eadd73e30deab778ddfc26e9222a4d23bedb140 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 9 May 2018 00:23:25 +0200 Subject: doc: add size keyword to meter example Signed-off-by: Florian Westphal --- doc/nft.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/nft.xml b/doc/nft.xml index e11ad8d5..60691580 100644 --- a/doc/nft.xml +++ b/doc/nft.xml @@ -5467,7 +5467,7 @@ dup to ip daddr map { 192.168.7.1 : "eth0", 192.168.7.2 : "eth1" } # add source ip addresses to the blacklist if more than 10 tcp connection requests occurred per second and ip address. # entries will timeout after one minute, after which they might be re-added if limit condition persists. - nft add rule ip filter input tcp flags syn tcp dport ssh meter flood { ip saddr timeout 10s limit rate over 10/second} add @blackhole { ip saddr timeout 1m } drop + nft add rule ip filter input tcp flags syn tcp dport ssh meter flood size 128000 { ip saddr timeout 10s limit rate over 10/second} add @blackhole { ip saddr timeout 1m } drop # inspect state of the rate limit meter: nft list meter ip filter flood -- cgit v1.2.3