- 论坛徽章:
- 0
|
不是很清楚哦,我就是ipfw+dummynet弄的哈
以下是我的配置过程,这方面还得多请教专家哦
ee /etc/ipfw.conf
add 10000 deny tcp from any to 192.168.9.15 1-19,23-24,26-79,81-109,111-138,140-444,446-3305,3307-8999,9001-50000,65534-65535 in
add 10001 allow tcp from any to 192.168.9.15 20,21,22,80,3306,9000 in
允许TCP到主机192.168.9.15的HTTP连接,限制流量为100K/s
ipfw add 500 pipe 5 tcp from any to 192.168.9.15 80
ipfw add 600 pipe 6 tcp from 192.168.9.15 80 to any
ipfw pipe 5 config bw 100KBytes/s
ipfw pipe 6 config bw 100KBytes/s
ipfw -a l
ee /etc/rc.conf
firewall_enable="YES"
firewall_script="/etc/rc.firewall"
firewall_type="/etc/ipfw.conf"
firewall_quiet="NO"
firewall_logging_enable="YES"
Go on
[ 本帖最后由 lhm0491 于 2008-9-2 12:50 编辑 ] |
|