Skip to content

Instantly share code, notes, and snippets.

@yoimbert
Last active August 29, 2015 14:23
Show Gist options
  • Save yoimbert/95a7f45a722b6e2d9364 to your computer and use it in GitHub Desktop.
Save yoimbert/95a7f45a722b6e2d9364 to your computer and use it in GitHub Desktop.
DDOS_IPTABLES
iptables -A INPUT -p tcp --dport 80 -m state --state NEW -m recent --name BLACKLIST --set
iptables -A INPUT -p tcp --dport 80 -m state --state NEW -m recent --name BLACKLIST --update --seconds 10 --hitcount 10 --rttl -j DROP
SUPPRESSION
iptables -D INPUT -p tcp --dport 80 -m state --state NEW -m recent --name BLACKLIST --update --seconds 10 --hitcount 10 --rttl -j DROP
SUPPRESSION DE MA LISTE
iptables -L --line-numbers
numero de ma chaine
iptables -D INPUT 4 <-- numero de ma chaine
SOURCE :
http://dev.petitchevalroux.net/linux/iptable-limiter-nombre-connexions-par-linux.342.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment