全球VPS主机交流论坛

 找回密码
 注册
查看: 667|回复: 0

如何 限制某个端口上传速度

[复制链接]
发表于 2023-11-14 14:53:41 | 显示全部楼层 |阅读模式
如何限制某个端口上传速度, 注意是到服务器的上传
ng limit_rate 不行.
iptables 我只会指定 dstip -d, 指定端口不知道咋搞.

iptables -A OUTPUT -p tcp -m hashlimit --hashlimit-name burst2 --hashlimit-upto 200kb/s --hashlimit-mode dstip -d $toip -j ACCEPT
iptables -A OUTPUT -p tcp -d $toip -j REJECT


您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球VPS主机交流论坛

GMT+8, 2025-10-12 21:32 , Processed in 0.079021 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 RRS订阅.

快速回复 返回顶部 返回列表