Skip to content

Instantly share code, notes, and snippets.

@brianherman
Created November 27, 2011 02:14
Show Gist options
  • Save brianherman/1396810 to your computer and use it in GitHub Desktop.
Save brianherman/1396810 to your computer and use it in GitHub Desktop.
amaranthus
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 -j LOG --log-prefix "SSH_brute_force "
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment