看板FreeBSD
标 题>"<限流问题
发信站朝阳向日葵BBS (Sun May 22 06:25:19 2005)
转信站ptt!ctu-reader!ctu-peer!news.nctu!news.nchu!SunFlower
各位大大…
到底怎麽在内部网路内设限流量…
因为我怎麽设都会设成内部"总"流量
就是不能设成内部每人的流量…
快被搞疯了=_+.......
以下是我的设法
ipfw pipe 10 config bw 64KBytes/s
ipfw pipe 20 config bw 8KBytes/s
#--------------------------------
#--------------------------------
ipfw add pipe 10 ip from any to 192.168.1.0/24 out
ipfw add pipe 20 ip from 192.168.1.0/24 to any in
#--------------------------------
我还试过,一个ip 一个ip设…
ipfw pipe 30 config bw 32KBytes/s
ipfw pipe 40 config bw 48KBytes/s
ipfw pipe 50 config bw 52KBytes/s
ipfw pipe 60 config bw 64KBytes/s
ipfw pipe 90 config bw 108KBytes/s
#--------------------------------
#-------------200-----------------
ipfw add pipe 30 ip from any to 192.168.1.200 out
ipfw add pipe 10 ip from 192.168.1.200 to any in
#--------------------------------
#--------------------------------
#-------------201-----------------
ipfw add pipe 30 ip from any to 192.168.1.201 out
ipfw add pipe 10 ip from 192.168.1.201 to any in
#--------------------------------
#--------------------------------
这样是好像,有限到…不过又有问题
就是只有设一个ip,流量还蛮正确的
一但八个ip设完…就很不正确了=_=|||
比如说,我设out 64 但测下载…却只有24...28…
上传更是可怕…不能低於50KBytes/s…不然…连ssh进我主机都会lag…
我的网路是so-net 2M/256K 8人用q_q...
--
孺子,汝之奇,必欲其新
吾赐汝爽
--
※ Origin: 向 日 葵 <bbs.im.cyut.edu.tw>
◆ From: home.cyut.edu.tw