Im looking at SSH bruteforce 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?
thanks!
Jonathan
Im looking at SSH bruteforce 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?
thanks!
Jonathan
--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 theman
page foriptables
on my CentOS 6 system: