How to automatically break a port when it reaches 20 requests per minute in debian? I think it can be done using iptables
Something like this (for new connections):
iptables -A INPUT -m state --state NEW -p tcp --dport nash_port -m limit --limit 20/minute --limit-burst 1 -j ACCEPT iptables -A INPUT -m state --state NEW -p tcp --dport nash_port -j REJECT
See man iptables-extensions for limit and limit-burst.
man iptables-extensions
Source: https://ru.stackoverflow.com/questions/858947/More articles:Is it possible to ignore a piece of code depending on the platform?PHP: displaying the number of entries in each categoryWPF. Part of the text Title change the font to BoldForm with XHR and authorization on the “bot” on the siteFilling an array of php dataCode :: Blocks code highlighting in definedUn / boxing in C #; object to intAdmob. Invoke Firebase method getInstance errorFilter selection of products and output from the databaseError while internationalizing Java applicationAll Articles