RES: [FUGSPBR] Bandwidth (Dinamica)

Bio )+(azarD bio em bsd-unix.com.br
Sáb Jan 11 00:07:58 BRST 2003


esse nao é o ip  essa é uma  regra  que ira   criar um tunel para cada 
ip   com a velocidade   desejada  super util para  os  engracadinhos 
 nao  tentarem    fazer varias conexoes     tentando  sugar +  banda

nao importa o numero de conexoes

ele cria  um tunnel dinamico  pra cada  ip que conectar   exemplo

00045: 100.000 Mbit/s    0 ms   50 sl. 65 queues (64 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x000000ff/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes 
Pkt/Byte Drp
  0 ip           0.0.0.0/0           0.0.0.128/0       20      899  0    
0   0
  1 ip           0.0.0.0/0             0.0.0.1/0     268849 16564682  
0    0   0
  2 ip           0.0.0.0/0             0.0.0.2/0        8      368  0    
0   0
  3 ip           0.0.0.0/0             0.0.0.3/0        4      208  0    
0   0
  4 ip           0.0.0.0/0            0.0.0.68/0      156     8333  0    
0   0
  4 ip           0.0.0.0/0           0.0.0.132/0        1       61  0    
0   0
  5 ip           0.0.0.0/0            0.0.0.69/0      962    39664  0    
0   0
  6 ip           0.0.0.0/0            0.0.0.70/0        1       40  0    
0   0
  7 ip           0.0.0.0/0             0.0.0.7/0        6      312  0    
0   0
  8 ip           0.0.0.0/0            0.0.0.72/0       62     4807  0    
0   0
  9 ip           0.0.0.0/0            0.0.0.73/0       59     4611  0    
0   0
 10 ip           0.0.0.0/0            0.0.0.74/0      119     9174  0    
0   0
 11 ip           0.0.0.0/0            0.0.0.75/0      367    25656  0    
0   0
 12 ip           0.0.0.0/0            0.0.0.12/0       53     3619  0    
0   0

note que   o ip  é so'o  HOST  FINAL   ne nao o ip  completo

cada um é um tunnel

da uma lida noROUTO de IPFW   que vc vai enteder melhor

http://www.free.bsd.com.br


Timmy wrote:

>mas que ip eh esse, 0x000000ff
>como eu posso converter pra hexa meus ips
>
>Frederico
>On Wed, 2003-01-08 at 10:44, Bio )+(azarD wrote:
>  
>
>>tenta  isso por portas
>>esse nao é o    esse  é uma  regra
>>#  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>}
>>
>>#  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>}
>>#    {red|gred} <fraction>/<number>/<number>/<fraction>
>>#    droptail
>>
>># Traffic Shapper  porta  80  rede 192.168.33.0/28
>>$IPFW add pipe 70 tcp from any to any out via ep0 keep-state
>>$IPFW add pipe 80 tcp from any to any in via ep0 keep-state
>>$IPFW pipe 70 config mask src-ip 0x000000ff src-port 80 bw 10KBytes/s
>>$IPFW pipe 80 config mask dst-ip 0x000000ff dst-port 80 bw 20KBytes/s
>>
>>veja se funciona .
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>Marcello Silva Coutinho wrote:
>>
>>    
>>
>>>tente assim:
>>>ipfw pipe 1 config bw 128Kbit/s queue 128Kbytes
>>>ipfw pipe 2 config bw 128Kbit/s queue 128Kbytes
>>>ipfw add pipe 1 ip from $ip to any
>>>ipfw add pipe 2 ip from any to $ip
>>>
>>>
>>>
>>>
>>> 
>>>
>>>      
>>>
>>_______________________________________________________________
>>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/
>
>
>
>  
>


_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/



Mais detalhes sobre a lista de discussão freebsd