| m0n0中的带宽控制 |
| 作者:佚名 文章来源:本站原创 点击数: 更新时间:2006-8-21 15:31:15 |
|
|
|
|
|
|
我最开始设置的lan subnet,限制到200k,结果发现整个网络的带宽变成了200k,郁闷,但是network我不知道怎么设置,这个说是限制网段,但是网段怎么会只有一个输入框?应该两个框才对啊,一个起始地址,一个结束地址才好输入啊,请大大们指点一下该怎么输入?还有配置好了以后要重启服务器吗?我试的时候限制了1个ip,但是发现没有限制到,下载速度还是1M多,和我想的25K差远了,现在服务器已经架设好了,又不能随便重启试下,郁闷
我的主要目的是想限制局域网中每台机器的带宽为200K,而有1台不限制(电影服务器,平时要在上面下电影的),当然我们的防火墙也不能被限制(我发现选择lan subnet后它把自己都限制了-.-)
下面是配置文件里相关的部分,800是限制普通客户机下载的,500是限制普通客户机上传的,3000是下载服务器(192.168.0.111,应该改成你自己服务器的)的,不想贴图,你用它替换自己的文件后恢复回去自己看图吧
QUOTE:
<shaper> <pipe> <bandwidth>800</bandwidth> <mask>destination</mask> <descr>down spd</descr> </pipe> <pipe> <bandwidth>500</bandwidth> <mask>source</mask> <descr>up spd</descr> </pipe> <pipe> <bandwidth>3000</bandwidth> <descr>server spd</descr> </pipe> <rule> <interface>wan</interface> <source> <any/> </source> <destination> <address>192.168.0.111</address> </destination> <direction>in</direction> <iplen/> <iptos/> <tcpflags/> <descr>server</descr> <targetpipe>2</targetpipe> </rule> <rule> <interface>wan</interface> <source> <address>192.168.0.111</address> </source> <destination> <any/> </destination> <direction>out</direction> <iplen/> <iptos/> <tcpflags/> <descr>server</descr> <targetpipe>2</targetpipe> </rule> <rule> <interface>wan</interface> <source> <any/> </source> <destination> <network>lan</network> </destination> <direction>in</direction> <iplen/> <iptos/> <tcpflags/> <descr>down</descr> <targetpipe>0</targetpipe> </rule> <rule> <interface>wan</interface> <source> <network>lan</network> </source> <destination> <any/> </destination> <direction>out</direction> <iplen/> <iptos/> <tcpflags/> <descr>up</descr> <targetpipe>1</targetpipe> </rule> <enable/> </shaper>
|
| 文章录入:zyydaolang 责任编辑:zyydaolang |
|
上一篇文章: 流控精灵---管理、修整数据流的好帮手 下一篇文章: 三步就可全面地查看各客户机流量的办法 |
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |