如何为所有FTP配置带宽限制?


2

我通过使用以下命令为FTP配置了带宽限制

sudo /sbin/tc qdisc add dev eth0 root handle 1:0 htb default 1
sudo /sbin/tc class add dev eth0 parent 1:0 classid 1:1 htb rate 5kbps ceil 9kbps prio 0
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dport 20 0xffff flowid 1:1

然后我wget通过从Internet下载文件检查了命令。但是下载速度没有改变,即不限制在9kbps以下。

我该怎么办?我必须配置延迟吗?如果是,多少钱?

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.