Em Terça 20 Março 2007 00:10, r.pg escreveu:

> Pessoal,
> alguém aí tem a manha de escrever um firewall (ipfw ou pf) para q eu possa
> fazer controle de banda por grupos (tipo grupo1 -> cir = 64 mir = 256)? tem
> q ter uma forma de especificar o mir e o cir

Olha um exemplo ai pra voce fazer as adaptacoes!

#DEFINE AS FILAS
altq on $int01 bandwidth 1.5Mb cbq queue  {alta_in normal_in baixa_in }
queue alta_in           bandwidth 1000Kb        priority 7 cbq (default borrow 
red)
queue normal_in bandwidth 400Kb priority 3 cbq (borrow red)
queue baixa_in  bandwidth 100Kb priority 1 cbq (red)

# CRIA AS REGRAS
pass in log on $int01 from <alta>               to any keep state queue alta_in
pass in log on $int01 from <normal>     to any keep state queue normal_in
pass in log on $int01 from <baixa>      to any keep state queue baixa_in        

[] ' S  JOse Luiz
-- 
Nós "matamos" o tempo, mas ele nos enterra !
-------------------------
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

Responder a