]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: libxt_hashlimit: Do not print default timeout and burst
authorHarsha Sharma <harshasharmaiitr@gmail.com>
Thu, 28 Dec 2017 07:28:33 +0000 (12:58 +0530)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 28 Dec 2017 10:50:51 +0000 (11:50 +0100)
commit1ffe6a74b366e24f3394603982823ade3ae01d85
tree9e44cb582d83ac5b48eb2ff8a1ebbf915728a836
parent27de281d8aca84e3c841b3ae72a17616b1382ac4
extensions: libxt_hashlimit: Do not print default timeout and burst

Do not print timeout and burst in case default values are used.
For e.g.
iptables-translate -A INPUT -m tcp -p tcp --dport 80 -m hashlimit
--hashlimit-above 200/sec --hashlimit-mode srcip,dstport
--hashlimit-name http1 -j DROP

nft add rule ip filter INPUT tcp dport 80 flow table http1 { tcp dport .
ip saddr limit rate over 200/second } counter drop

Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_hashlimit.c