Last active
August 29, 2015 14:23
-
-
Save yoimbert/95a7f45a722b6e2d9364 to your computer and use it in GitHub Desktop.
DDOS_IPTABLES
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 -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