[GTER] Limitar Upload com PF+HFSC

Mauricio Bonani mbonani at gmail.com
Fri Mar 31 10:07:45 -03 2006


O tráfego dessa regra está entrando na interface, a fila não se
aplicaria a esse caso, certo?
Por isso coloquei uma tag na regra para depois enfileirar na saída
pela outra interface.

Em 31/03/06, Christopher Giese - iRapida<chris at irapida.com.br> escreveu:
> Salve
>
> pass in  quick on $if_int from $cli1 to any tag UP_CLI1 keep state
>
> esta regra vc nao colocou FILA... entaum tudo o que esta nela passa pela padrao ;)
>
> Qq coisa pvt e eu helpeio vc ;)
>
> t+
>
> Christopher Giese
> chris at irapida.com.br
>
>
>
> Mauricio Bonani wrote:
> > Estou com o mesmo problema que o amigo Fabio
> > Catelani, a diferença é que uso OpenBSD+PF+HFSC.
> >
> > Fiz a configuração da seguinte forma:
> >
> > # Filas
> > altq on $if_ext hfsc bandwidth 100000Kb queue { std_ext, up_cli1 }
> >       queue std_ext bandwidth 2Kb hfsc(default)
> >       queue up_cli1 bandwidth 128Kb hfsc(realtime 64Kb, upperlimit 128Kb)
> >
> > altq on $if_int hfsc bandwidth 100000Kb queue { std_int, dn_cli1 }
> >       queue std_int bandwidth 2Kb hfsc(default)
> >       queue dn_cli1 bandwidth 256Kb hfsc(realtime 128Kb, upperlimit 256Kb)
> >
> > # Regras
> > pass in  quick on $if_int from $cli1 to any tag UP_CLI1 keep state
> > pass out quick on $if_ext tagged UP_CLI1 keep state queue up_cli1
> > pass out quick on $if_int from any to $cli1 queue dn_cli1
> >
> > O tráfego de saída passa pela fila padrão
> > (std_ext) ao invés de ir pela fila do cliente (up_cli1).
> >
> > Onde estou "pisando na bola"?
> >
> > Unix is very simple, but it takes a genius to understand the simplicity.
> > (Dennis Ritchie)
> >
> > --
> > Mauricio Bonani
> > mailto:mbonani at gmail.com
> >
> > --
> > gter list    https://eng.registro.br/mailman/listinfo/gter
> >
>
> --
> gter list    https://eng.registro.br/mailman/listinfo/gter
>


--
Mauricio Bonani
mailto:mbonani at gmail.com



More information about the gter mailing list