[MASOCH-L] Controle de banda abaixo do esperado

Rogério Moura rogerpop at gmail.com
Tue Jun 7 11:37:18 BRT 2005


Segundo o FAQ do PF, usar enfileiramente é útil somente para pacotes
que estão SAINDO, e vejo que nas usa regras isso está senda aplicado
no tráfego que está ENTRANDO. Isso pode ser um item a ser observado as
suas regras, em relação ao CBQ

On 6/7/05, Mauricio Bonani <mbonani at gmail.com> wrote:
> Utilizo as regras abaixo num gateway que estou preparando para colocar
> em produção. Quando faço teste de controle de banda, ao invés de
> limitar a velocidade em 256Kb para a maioria dos "clientes", a
> velocidade fica limitada muito abaixo desse valor.
> 
> O que estou fazendo de errado?
> 
> ----- INICIO -----
> scrub in no-df random-id
> 
> altq on xl0 cbq bandwidth 14080Kb queue {std_int, admin, 10.0.0.3,
> 10.0.0.9, 10.0.0.11, 10.0.0.12, 10.0.0.13, 10.0.0.17, 10.0.0.33,
> 10.0.0.36, 10.0.0.38, 10.0.0.39, 10.0.0.48, 10.0.0.53, 10.0.0.62,
> 10.0.0.88, 10.0.0.104, 10.0.0.108, 10.0.0.111, 10.0.0.116, 10.0.0.118,
> 10.0.0.120, 10.0.0.124, 10.0.0.125, 10.0.0.126, 10.0.0.127,
> 10.0.0.130, 10.0.0.140, 10.0.0.141, 10.0.0.143, 10.0.0.146,
> 10.0.0.154, 10.0.0.170, 10.0.0.176, 10.0.0.196, 10.0.0.198,
> 10.0.0.205, 10.0.0.207, 10.0.0.209, 10.0.0.245}
> 
>       queue std_int bandwidth 0Kb priority 0 cbq(default)
>       queue admin bandwidth 1024Kb priority 7 cbq(borrow)
>       queue 10.0.0.3 bandwidth 3584Kb
>       queue 10.0.0.9 bandwidth 256Kb
>       queue 10.0.0.11 bandwidth 256Kb
>       queue 10.0.0.12 bandwidth 256Kb
>       queue 10.0.0.13 bandwidth 256Kb
>       queue 10.0.0.17 bandwidth 256Kb
>       queue 10.0.0.33 bandwidth 256Kb
>       queue 10.0.0.36 bandwidth 256Kb
>       queue 10.0.0.38 bandwidth 256Kb
>       queue 10.0.0.39 bandwidth 256Kb
>       queue 10.0.0.48 bandwidth 256Kb
>       queue 10.0.0.53 bandwidth 256Kb
>       queue 10.0.0.62 bandwidth 256Kb
>       queue 10.0.0.88 bandwidth 256Kb
>       queue 10.0.0.104 bandwidth 256Kb
>       queue 10.0.0.108 bandwidth 256Kb
>       queue 10.0.0.111 bandwidth 256Kb
>       queue 10.0.0.116 bandwidth 256Kb
>       queue 10.0.0.118 bandwidth 256Kb
>       queue 10.0.0.120 bandwidth 256Kb
>       queue 10.0.0.124 bandwidth 256Kb
>       queue 10.0.0.125 bandwidth 256Kb
>       queue 10.0.0.126 bandwidth 256Kb
>       queue 10.0.0.127 bandwidth 256Kb
>       queue 10.0.0.130 bandwidth 256Kb
>       queue 10.0.0.140 bandwidth 256Kb
>       queue 10.0.0.141 bandwidth 256Kb
>       queue 10.0.0.143 bandwidth 256Kb
>       queue 10.0.0.146 bandwidth 256Kb
>       queue 10.0.0.154 bandwidth 256Kb
>       queue 10.0.0.170 bandwidth 256Kb
>       queue 10.0.0.176 bandwidth 256Kb
>       queue 10.0.0.196 bandwidth 256Kb
>       queue 10.0.0.198 bandwidth 256Kb
>       queue 10.0.0.205 bandwidth 256Kb
>       queue 10.0.0.207 bandwidth 256Kb
>       queue 10.0.0.209 bandwidth 256Kb
>       queue 10.0.0.245 bandwidth 256Kb
> 
> no nat from 10.0.0.0/8 to 10.0.0.0/8
> nat from 10.0.0.0/8 to any -> 200.xxx.xxx.xxx
> 
> pass in quick from 10.0.0.242/32 to any keep state queue admin
> pass out quick from any to 10.0.0.242/32 keep state queue admin
> 
> pass in from 10.0.0.253
> pass out to 10.0.0.253
> pass in proto { tcp udp } from 192.168.1.59 to any port 22 keep state
> pass in from { 192.168.1.0/24 192.168.2.0/24 } to { 172.16.157.0/24
> 10.0.0.0/8 } keep state
> 
> pass in quick on xl0 from { 10.0.0.3 } to any keep state queue 10.0.0.3
> pass in quick on xl0 from { 10.0.0.9 } to any keep state queue 10.0.0.9
> pass in quick on xl0 from { 10.0.0.11 } to any keep state queue 10.0.0.11
> pass in quick on xl0 from { 10.0.0.12 } to any keep state queue 10.0.0.12
> pass in quick on xl0 from { 10.0.0.13 } to any keep state queue 10.0.0.13
> pass in quick on xl0 from { 10.0.0.17 } to any keep state queue 10.0.0.17
> pass in quick on xl0 from { 10.0.0.33 } to any keep state queue 10.0.0.33
> pass in quick on xl0 from { 10.0.0.36 10.0.0.35 } to any keep state
> queue 10.0.0.36
> pass in quick on xl0 from { 10.0.0.38 } to any keep state queue 10.0.0.38
> pass in quick on xl0 from { 10.0.0.39 10.0.0.43 10.0.0.44 } to any
> keep state queue 10.0.0.39
> pass in quick on xl0 from { 10.0.0.48 } to any keep state queue 10.0.0.48
> pass in quick on xl0 from { 10.0.0.53 10.0.0.52 } to any keep state
> queue 10.0.0.53
> pass in quick on xl0 from { 10.0.0.62 } to any keep state queue 10.0.0.62
> pass in quick on xl0 from { 10.0.0.88 10.0.0.87 10.0.0.86 } to any
> keep state queue 10.0.0.88
> pass in quick on xl0 from { 10.0.0.104 10.0.0.90 } to any keep state
> queue 10.0.0.104
> pass in quick on xl0 from { 10.0.0.108 10.0.0.107 10.0.0.106 } to any
> keep state queue 10.0.0.108
> pass in quick on xl0 from { 10.0.0.111 10.0.0.110 10.0.0.109 } to any
> keep state queue 10.0.0.111
> pass in quick on xl0 from { 10.0.0.116 } to any keep state queue 10.0.0.116
> pass in quick on xl0 from { 10.0.0.118 10.0.0.117 } to any keep state
> queue 10.0.0.118
> pass in quick on xl0 from { 10.0.0.120 10.0.0.119 } to any keep state
> queue 10.0.0.120
> pass in quick on xl0 from { 10.0.0.124 10.0.0.123 } to any keep state
> queue 10.0.0.124
> pass in quick on xl0 from { 10.0.0.125 10.0.0.192 } to any keep state
> queue 10.0.0.125
> pass in quick on xl0 from { 10.0.0.126 10.0.0.127 10.0.0.128 } to any
> keep state queue 10.0.0.126
> pass in quick on xl0 from { 10.0.0.127 10.0.0.124 } to any keep state
> queue 10.0.0.127
> pass in quick on xl0 from { 10.0.0.130 10.0.0.129 } to any keep state
> queue 10.0.0.130
> pass in quick on xl0 from { 10.0.0.140 10.0.0.139 10.0.0.138 10.0.0.18
> 10.0.0.19 } to any keep state queue 10.0.0.140
> pass in quick on xl0 from { 10.0.0.141 } to any keep state queue 10.0.0.141
> pass in quick on xl0 from { 10.0.0.143 10.0.0.144 } to any keep state
> queue 10.0.0.143
> pass in quick on xl0 from { 10.0.0.146 10.0.0.145 } to any keep state
> queue 10.0.0.146
> pass in quick on xl0 from { 10.0.0.154 10.0.0.153 10.0.0.152 } to any
> keep state queue 10.0.0.154
> pass in quick on xl0 from { 10.0.0.170 10.0.0.185 10.0.0.186 } to any
> keep state queue 10.0.0.170
> pass in quick on xl0 from { 10.0.0.176 } to any keep state queue 10.0.0.176
> pass in quick on xl0 from { 10.0.0.196 10.0.0.195 } to any keep state
> queue 10.0.0.196
> pass in quick on xl0 from { 10.0.0.198 } to any keep state queue 10.0.0.198
> pass in quick on xl0 from { 10.0.0.205 10.0.0.204 } to any keep state
> queue 10.0.0.205
> pass in quick on xl0 from { 10.0.0.207 10.0.0.206 } to any keep state
> queue 10.0.0.207
> pass in quick on xl0 from { 10.0.0.209 } to any keep state queue 10.0.0.209
> pass in quick on xl0 from { 10.0.0.245 } to any keep state queue 10.0.0.245
> ----- FIM -----
> 
> --
> Mauricio Bonani
> mailto:mbonani at gmail.com
> __
> masoch-l list
> https://eng.registro.br/mailman/listinfo/masoch-l
>


More information about the masoch-l mailing list