Created
February 21, 2017 15:18
-
-
Save robbwagoner/7c7d4c898df81cc690a76d29dfca16b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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