Andrey Asked:2020-07-23 04:29:54 +0000 UTC2020-07-23 04:29:54 +0000 UTC 2020-07-23 04:29:54 +0000 UTC 达到一定数量的请求时“中断”端口 772 如何在 debian 中达到每分钟 20 个请求时自动“中断”端口?我认为这可以用 iptables 来完成 linux 1 个回答 Voted Best Answer user_587 2020-08-02T08:26:22Z2020-08-02T08:26:22Z 像这样的东西(对于新的连接): 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 看看man iptables-extensions极限和极限爆发。
像这样的东西(对于新的连接):
看看
man iptables-extensions极限和极限爆发。