Traffic throttling using iptables
It can be useful in certain cases to limit the frequency of certain request as described here.
Key code:
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent \ --set iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent \ --update --seconds 60 --hitcount 4 -j DROP To view existing rules and/or delete existing one, one can use these instructions.
Please leave a Comment