tcp – iptables/haproxy limit packets per second

iptables -A INPUT -p tcp --dport 1234 -m state --state NEW -j ACCEPT

iptables -I INPUT -p tcp --dport 1234 -m hashlimit --hashlimit-mode srcip,srcport --hashlimit-name HASHNAME --hashlimit-htable-max 5000 --hashlimit-htable-expire 10000 --hashlimit-above 5/sec -j DROP

Source: tcp – iptables/haproxy limit packets per second – Server Fault

tcp – iptables/haproxy limit packets per second was last modified: April 29th, 2022 by Jovan Stosic

Leave a Reply