Páginas

domingo, 14 de março de 2010

Controle de Banda (FreeBSD)

Controle de banda para IP individual e mantendo o controle do resto da rede

ipfw disable one_pass
ipfw add 5000 skipto 6000 all from 192.168.0.50 to any
ipfw add 5000 skipto 6000 all from any to 192.168.0.50
ipfw pipe 1 config mask src-ip 0x000000ff bw 128Kbit/s queue 18Kbytes
ipfw pipe 2 config mask dst-ip 0x000000ff bw 128Kbit/s queue 18Kbytes
ipfw pipe 3 config bw 256kbit/s queue 40Kbytes
ipfw add 5010 pipe 1 ip from 192.168.0.0/24 to any out
ipfw add 5020 pipe 2 ip from any to 192.168.0.0/24 in
ipfw add 6000 pipe 3 ip from 192.168.0.50 to any
ipfw add 6000 pipe 3 ip from any to 192.168.0.50
ipfw add 6500 divert natd all from any to any via vr1

Nenhum comentário:

Postar um comentário