freebsd
[Início] [Todas as Listas]

Re: [FUG-BR] Ajuda com DUMMYNET (RESOLVIDO)

From: "Welkson Renny de Medeiros" <welkson@xxxxxxxxxxxxxxxxxxxxx>
To: Lista Brasileira de Discussão sobre FreeBSD (FUG-BR) <freebsd@xxxxxxxxxx>
Subject: Re: [FUG-BR] Ajuda com DUMMYNET (RESOLVIDO)
Date: Thu, 24 Jul 2008 09:07:29 -0300
Pessoal,


Acabei achando um material com uns exemplos e resolvi o problema.

Segue o link do material:
http://posredes.catolica-to.edu.br/downloads/ipfw.pdf

Segue as regras:

### LIMITANDO DOWNLOAD/UPLOAD / DISTRIBUIDOR ###
ipfw pipe 70 config bw 100Kbit/s queue 10Kbytes
ipfw pipe 71 config bw 100Kbit/s queue 10Kbytes
ipfw add 70 pipe 70 ip from any to 192.168.1.198/32 out via vr1
ipfw add 71 pipe 71 ip from 192.168.1.198/32 to any in via vr1

# dica para analisar somente um ip com iftop:
iftop -P -m 200000 -i vr1 -N -F 192.168.1.198/32

Fica aí as dicas para o histórico.

Abraço,

Welkson Renny


----- Original Message ----- From: "Welkson Renny de Medeiros" <welkson@xxxxxxxxxxxxxxxxxxxxx>
To: <freebsd@xxxxxxxxxx>
Sent: Thursday, July 24, 2008 8:36 AM
Subject: [FUG-BR] Ajuda com DUMMYNET


Pessoal,

Ainda "apanho" desses "in/out" do IPFW. Estou tentando LIMITAR o DOWN/UP de
um determinado ip a 100kbps.

Segue a regra:

### LIMITANDO DOWNLOAD/UPLOAD / DISTRIBUIDOR ###
ipfw add pipe 101 ip from 192.168.1.198 to any out via vr1
ipfw add pipe 102 ip from any to 192.168.1.198 in via vr1
ipfw pipe 101 config bw 100Kbit/s
ipfw pipe 102 config bw 100Kbit/s


# vr1: interface interna
# vr0: interface externa

Fico acompanhando no iftop mas sempre passa do valor limitado... tenho
outras regras de download que limitam perfeitamente... mas upload tá
complicado.

[root@zebedeu:/etc/firewall] # cat /bin/banda-servidor
iftop -P -m 200000 -i vr1 -N -F 192.168.1.198/32

Dicas?

--
Welkson Renny de Medeiros
Focus Automação Comercial
Desenvolvimento / Gerência de Redes
welkson@xxxxxxxxxxxxxxxxxxxxx



                     Powered by ....

                                          (__)
                                       \\\'',)
                                         \/  \ ^
                                         .\._/_)

                                     www.FreeBSD.org

-------------------------
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


<Anterior na Thread] Thread Atual [Próximo na Thread>