Skip to content

Instantly share code, notes, and snippets.

@lslucas
Created June 22, 2014 15:19
Show Gist options
  • Save lslucas/84cb57876b77cca582ce to your computer and use it in GitHub Desktop.
Save lslucas/84cb57876b77cca582ce to your computer and use it in GitHub Desktop.
iptables - Rate-limit incoming connections
$ 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