问题原文
原帖链接 · John · CC BY-SA 4.0
I'm looking at SSH brute force prevention with iptables recent module.
I would like to know how does the --hitcount collect the value that it will use? Is it bytes, packets, no. of conntracked items or something else?
已采纳解答
原帖链接 · MadHatter · CC BY-SA 3.0
--rcheck --hitcount checks the value of an internal counter which is incremented by one for each hit on a -m recent --set (or --update) rule of the same --name. Rules are evaluated in the context of packets, so the number of packets is the tracked quantity. This from the man page for iptables on my CentOS 6 system:
--hitcount hits[...] When used, this will narrow the match to only happen when the address is in the list and packets had been received greater than or equal to the given value.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
