Skip to content

Instantly share code, notes, and snippets.

@robbwagoner
Created February 21, 2017 15:18
Show Gist options
  • Save robbwagoner/7c7d4c898df81cc690a76d29dfca16b2 to your computer and use it in GitHub Desktop.
Save robbwagoner/7c7d4c898df81cc690a76d29dfca16b2 to your computer and use it in GitHub Desktop.
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --name SSH_RATE_LIMIT --set
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --name SSH_RATE_LIMIT --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