centos 限速软件,求推荐,谢!

2016-02-16 14:48:15 +08:00
 barb

为了国外服务器安全!

2919 次点击
所在节点    问与答
8 条回复
mageemeng
2016-02-16 14:50:40 +08:00
可以试试 iptables 、
predator
2016-02-16 14:54:13 +08:00
tc

字数补丁.exe

算了送佛送到西……参考下 https://gist.github.com/akrasic/7242498#file-limit-tc-sh
daocheng
2016-02-16 14:54:56 +08:00
Tc 限速。 Wonder shaper 限速软件。
Devin
2016-02-16 14:55:06 +08:00
有个叫 traffic-shape 的,但没用过,可以搜索下
barb
2016-02-16 15:07:06 +08:00
发现 TC 解除不了限速,命令如下
/sbin/tc qdisc del dev eth0 root tbf
-----------
出错代码
tbf: the "rate" parameter is mandatory.
tbf: the "burst" parameter is mandatory.
.....
barb
2016-02-16 15:18:54 +08:00
/sbin/tc qdisc add dev eth0 root tbf rate 50kbit latency 50ms burst 1000
这个命令貌似没什么用
barb
2016-02-16 15:35:39 +08:00
@predator 这个怎么用啊,再送我一下啊
predator
2016-02-16 21:58:03 +08:00
@barb

interface 和 interface_speed 两个参数按照自己的机器设置一下,保存为 limit-tc.sh 文件
然后用下面的命令:

启动限速: ḃash limit-tc.sh start
关闭限速: bash limit-tc.sh stop
查看状态: bash limit-tc.sh status

原作者就是这么写的

可以参考脚本内容了解 tc 的使用,也可以再翻翻 tc 的更多资料
大部分基于 linux 的路由器固件内部的 QOS 都应该就是一堆 tc 脚本

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/256851

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX