[FUG-BR] ALTQ

Fernando de Lima fernandol.mail em terra.com.br
Quarta Junho 27 22:24:43 BRT 2007


Fala Renato. Obrigado cara.

O que acontece é o seguinte, eu estou testando nesse mesmo server um proxy ele não está trabalhando como proxy transparente

No caso eu coloquei os sites internos para não fazer uso do proxy ...

Valeu !!
De:freebsd-bounces em fug.com.br

Para:"Lista Brasileira de Discussão sobre FreeBSD (FUG-BR)" freebsd em fug.com.br

Cópia:

Data:Wed, 27 Jun 2007 16:00:16 -0300

Assunto:Re: [FUG-BR] ALTQ

> coloque uma regra com quick da sua rede para os ips do seu servidor na 
> interface interna
> ----- Original Message ----- 
> From: "Fernando de Lima" 
> To: "freebsd" 
> Sent: Wednesday, June 27, 2007 3:08 PM
> Subject: Re: [FUG-BR] ALTQ
> 
> 
> Fala Renato, beleza ??
> 
> Realmente desta maneira funciona, porém está limitando meu trafego interno 
> também eu gostaria de limitar somente o trafego para fora
> 
> Então mudei a regra para a forma que estou mandando abaixo para liberar o 
> trafego da LAN e ai libera todo o trafego. Ao invés de liberar só o trafego 
> da minha LAN.
> 
> E no caso para download ?
> 
> pass out quick on $ext_int proto {tcp, udp} from $teste to !$lan queue
> teste_out
> pass in quick on $ext_int proto {tcp, udp} from !$lan to $teste queue 
> teste_in
> 
> pass out quick on $int_int proto {tcp, udp} from !$lan to $teste queue
> teste_in
> pass in quick on $int_int proto {tcp, udp} from $teste to !$lan queue
> teste_out
> 
> pass out quick on $ext_int proto {tcp, udp} from $teste1 to !$lan queue
> teste1_out
> pass in quick on $ext_int proto {tcp, udp} from !$lan to $teste1 queue
> teste1_in
> 
> pass out quick on $int_int proto {tcp, udp} from !$lan to $teste1 queue
> teste1_in
> pass in quick on $int_int proto {tcp, udp} from $teste1 to !$lan queue
> teste1_out
> De:freebsd-bounces em fug.com.br
> 
> Para:"Lista Brasileira de Discussão sobre FreeBSD (FUG-BR)" 
> freebsd em fug.com.br
> 
> Cópia:
> 
> Data:Mon, 25 Jun 2007 18:10:51 -0300
> 
> Assunto:Re: [FUG-BR] ALTQ
> 
> > Fernando sempre uso o controle no upload das interfaces entao ficaria 
> > assim
> >
> > #cria filas ext
> > altq on $ext_int cbq bandwidth 512Kb queue { teste_out, teste1_out }
> > queue teste_out bandwidth 506Kb cbq (default)
> > queue teste1_out bandwidth 6Kb cbq
> >
> > # cria fila int
> > altq on $int_int cbq bandwidth 512Kb queue { teste_in, teste1_in }
> > queue teste_in bandwidth 506Kb cbq(default)
> > queue teste1_in bandwidth 6Kb cbq
> >
> > pass out quick on $ext_int proto {tcp, udp} from $teste to any queue
> > teste_out
> > pass in quick on $ext_int proto {tcp, udp} from any to $teste queue 
> > teste_in
> >
> > pass out quick on $int_int proto {tcp, udp} from any to $teste queue
> > teste_in
> > pass in quick on $int_int proto {tcp, udp} from $teste to any queue
> > teste_out
> >
> >
> > pass out quick on $ext_int proto {tcp, udp} from $teste1 to any queue
> > teste1_out
> > pass in quick on $ext_int proto {tcp, udp} from any to $teste1 queue
> > teste1_in
> >
> > pass out quick on $int_int proto {tcp, udp} from any to $teste1 queue
> > teste1_in
> > pass in quick on $int_int proto {tcp, udp} from $teste1 to any queue
> > teste1_out
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > ----- Original Message ----- 
> > From: "Fernando de Lima"
> > To: "freebsd"
> > Cc: "freebsd"
> > Sent: Monday, June 25, 2007 2:25 PM
> > Subject: Re: [FUG-BR] ALTQ
> >
> >
> > Desculpem !!!
> >
> > Segue como estou fazendo a configuração no pf.conf.
> >
> > Obrigado !
> >
> > ###################################
> > # Configuracao Controle de Banda - ALTQ #
> > ###################################
> > altq on $ext_int cbq bandwidth 512Kb queue { teste_out, teste1_out }
> > queue teste_out bandwidth 506Kb cbq (default)
> > queue teste1_out bandwidth 6Kb cbq
> >
> > altq on $int_int cbq bandwidth 512Kb queue { teste_in, teste1_in }
> > queue teste_in bandwidth 506Kb cbq(default)
> > queue teste1_in bandwidth 6Kb cbq
> >
> > pass out quick on $int_int proto {tcp, udp} from any to $teste queue
> > teste_out
> > pass in quick on $int_int proto {tcp, udp} from any to $teste queue 
> > teste_in
> >
> > pass in quick on $int_int proto {tcp, udp} from any to $teste1 queue
> > teste1_in
> > pass out quick on $int_int proto {tcp, udp} from any to $teste1 queue
> > teste1_out
> >
> >
> > De:freebsd-bounces em fug.com.br
> >
> > Para:"freebsd" freebsd em fug.com.br
> >
> > Cópia:
> >
> > Data:Mon, 25 Jun 2007 14:17:21 -0300
> >
> > Assunto:[FUG-BR] ALTQ
> >
> > > Pessoal,
> > >
> > > Boa tarde !!!
> > >
> > > Estou querendo colocar controle da banda aqui na empresa, porém não 
> > > estou
> > > tendo sucesso.
> > >
> > > Estou fazendo isso em ambiente de teste.
> > >
> > > No caso eu estou tentando limitar que um usuário consiga fazer downloads
> > > apenas usando 6Kb de minha banda.
> > >
> > > Abaixo a configuração que fiz ...
> > >
> > > ###################################
> > > # Configuracao Controle de Banda - ALTQ #
> > > ###################################
> > > altq on $ext_int cbq bandwidth 512Kb queue { teste_out, teste1_out }
> > > queue fernando_out bandwidth 506Kb cbq (default)
> > > queue marcelo_out bandwidth 6Kb cbq
> > >
> > > altq on $int_int cbq bandwidth 512Kb queue { teste_in, teste1_in }
> > > queue fernando_in bandwidth 506Kb cbq(default)
> > > queue marcelo_in bandwidth 6Kb cbq
> > >
> > > pass out quick on $int_int proto {tcp, udp} from any to $teste queue
> > > teste_out
> > > pass in quick on $int_int proto {tcp, udp} from any to $teste queue
> > > teste_in
> > >
> > > pass in quick on $int_int proto {tcp, udp} from any to $teste1 queue
> > > teste1_in
> > > pass out quick on $int_int proto {tcp, udp} from any to $teste1 queue
> > > teste1_out
> > >
> > > Mais não está funcionando... Alguém poderia me dar um help ?
> > >
> > > Grato !
> > > Fernando L Silva
> > > Analista de Suporte - Redes
> > > -------------------------
> > > Histórico: http://www.fug.com.br/historico/html/freebsd/
> > > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
> > >
> > -------------------------
> > Histórico: http://www.fug.com.br/historico/html/freebsd/
> > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
> >
> > -------------------------
> > Histórico: http://www.fug.com.br/historico/html/freebsd/
> > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
> >
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
> 
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
> 


Mais detalhes sobre a lista de discussão freebsd