看板FreeBSD
标 题Re: ipfw限制out失效?
发信站兴国管理学院 (Thu Apr 22 14:49:35 2004)
转信站ptt!ctu-reader!ctu-peer!news.nctu!news.csie.ncyu!news.cs.nthu!freebsd.
※ 引述《[email protected] (会唱歌的羊咩咩~~~咩~)》之铭言:
> : ipfw -f flush
> : # /usr/bin/sockstat
> : ipfw add 10 divert natd all from any to any via fxp0
> : ipfw add 10 allow ip from any to any via rl1
> : ipfw add 3000 allow ip from any to any
> : ipfw -f pipe flush
> : V ipfw add 200 pipe 1 ip from 192.168.3.22 to any via fxp0
> : V ipfw add 200 pipe 2 ip from any to 192.168.3.22 via fxp0
> : ^ ipfw pipe 1 config bw 100Kbit/s queue 10Kbytes
> : ^ ipfw pipe 2 config bw 1Mbit/s queue 100Kbytes
> 将^的两个移到V的两个之上
> 应该OK
设定pipe也有分先後顺序阿?
它没指定序号(像add ???),那它是以什麽方式判别先後顺序呢?
还没试,试了来回报结果...
谢拉...
--
※ Origin: 兴国管院恋恋苹香 <bbs.hku.edu.tw>
◆ From: 221-169-136-204.adsl.static.seed.net.tw