Skip to content

Instantly share code, notes, and snippets.

@mcantelon
Created October 6, 2010 21:13
Show Gist options
  • Save mcantelon/614100 to your computer and use it in GitHub Desktop.
Save mcantelon/614100 to your computer and use it in GitHub Desktop.
# Rate limiting for SSH requests -A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 22 -m recent --set -A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 22 -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