ola eu estou fqazendo assim tente t
# Libera micro Full-Duplex
$IPFW add pipe 30 all from any to 10.0.1.2/32 out via fxp0
$IPFW add pipe 40 all from 10.0.1.2/32 to any in via fxp0
$IPFW pipe 30 config mask src-ip 0x000000ff bw 100Mbit/s
$IPFW pipe 40 config mask dst-ip 0x000000ff bw 100Mbit/s
$IPFW add count all from 10.0.1.3/32 to any in via fxp0
$IPFW add count all from any to 10.0.1.3/32 out via fxp0
# Libera micro 16KBytes
$IPFW add pipe 35 all from any to 10.0.1.3/32 out via fxp0
$IPFW add pipe 45 all from 10.0.1.3/32 to any in via fxp0
$IPFW pipe 35 config mask src-ip 0x000000ff bw 16KBytes/s
$IPFW pipe 45 config mask dst-ip 0x000000ff bw 16KBytes/s
$IPFW add count all from 10.0.1.5/32 to any in via fxp0
$IPFW add count all from any to 10.0.1.5/32 out via fxp0
# Libera micro 30KBytes
$IPFW add pipe 50 all from any to 10.0.1.5/32 out via fxp0
$IPFW add pipe 60 all from 10.0.1.5/32 to any in via fxp0
$IPFW pipe 50 config mask src-ip 0x000000ff bw 30KBytes/s
$IPFW pipe 60 config mask dst-ip 0x000000ff bw 30KBytes/s
$IPFW add count all from 10.0.1.0/24 to any out via fxp0
$IPFW add count all from any to 10.0.1.0/24 in via fxp0
# Traffic Shaper Rede 10.0.1.0/24 8KBytes
$IPFW add pipe 10 all from 10.0.1.0/24 to any out via fxp0
$IPFW add pipe 20 all from any to 10.0.1.0/24 in via fxp0
$IPFW pipe 10 config mask src-ip 0x000000ff bw 8KBytes/s
$IPFW pipe 20 config mask dst-ip 0x000000ff bw 8KBytes/s
$IPFW add allow all from 10.0.1.0/24 to any keep-state via fxp0
$IPFW add count all from any to any out via fxp0
existe uma outra op�ao do pipe que � shaper por porta direto
# pipeconfig:
# {bw|bandwidth} <number>{bit/s|Kbit/s|Mbit/s|Bytes/s|KBytes/s|MBytes/s}
# {bw|bandwidth} interface_name
# delay <milliseconds>
# queue <size>{packets|Bytes|KBytes}
# plr <fraction>
# mask {all| [dst-ip|src-ip|dst-port|src-port|proto] <number>}
# buckets <number>}
exc: porta 80
$IPFW pipe 10 config mask src-ip 0x000000ff src-port 0x50 bw 8KBytes/s
$IPFW pipe 20 config mask dst-ip 0x000000ff dst-port 0x50 bw 8KBytes/s
talvez isso ja lhe ajude.
Capriotti wrote:
Salve, gente.
Vamos colocar da seguinte maneira:
Tenho um servi�o na porta x, UDP, no qual os usu�rios conectam - remotamente - e, obviamente, competem entre si por largura de banda.
Sem entrar no m�rito de "quem paga mais tem direito a usar uma largurta de banda maior", eu gostaria de equalizar a largura de banda que cada um deles usa. Ou seja, definir um teto para cada conex�o, talvez com pipe/dummynet.
Com IPs din�micos, e com usu�rios vari�veis, fazer por IP � invi�vel.
O "limit" apenas limita o n�mero de conex�es, e n�o outros quesitos.
Pensei ent�o em utilizar as regras din�micas do ipfw, mas n�o sei exatamente como elas funcionam. Estou seriamente inclinado a usar o ipfw2, no pr�prio FreeBSD 5.
Existe refer�ncia sobre pipes din�micos, mas eu n�o entendi bem como usar (e n�o tive tempo para ler), Algu�m tem alguma dica ?
_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
_______________________________________________________________ Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
