Categories
學習筆記

iptables侦听80端口连接数 限制单个IP的并发数

防范胜于未然!
玩VPS和服都得防止别人来D,所以iptables自然得用了,侦听80端口连接数,限制单个IP的并发数。

iptables -I INPUT -p tcp --dport 80 -m connlimit --connlimit-above 10 -j DROP

One reply on “iptables侦听80端口连接数 限制单个IP的并发数”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.