Created
June 22, 2014 15:19
-
-
Save lslucas/84cb57876b77cca582ce to your computer and use it in GitHub Desktop.
iptables - Rate-limit incoming connections
This file contains 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 80 -m state --state NEW -m recent --set | |
$ iptables -I INPUT -p tcp --dport 80 -m state --state NEW -m recent --update --seconds 30 --hitcount 10 -j DROP | |
#Source: http://codingfreak.blogspot.ca/2010/01/iptables-rate-limit-incoming.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment