-p TCP --syn --dport 22 -m recent --name ssh_rate_limit --set -p TCP --syn --dport 22 -m recent --name ssh_rate_limit --update --seconds 300 --hitcount 4 -j LOG -p TCP --syn --dport 22 -m recent --name ssh_rate_limit --update --seconds 300 --hitcount 4 -j DROP