+ Responder ao Tópico



  1. #1
    jhonnybravo
    oi galera posso usar o cbq para fazer um controle de banda no openBSD?




  2. #3
    etherlink
    so um exemplo...

    table <interna> {192.168.2.2, 192.168.2.1, 192.168.1.1, 192.168.1.8, 192.168.1.21, 192.168.1.23, 192.168.1.30, 192.168.1.31, 192.168.1.37, 192.168.1.40, 192.168.1.41, 192.168.1.42, 192.168.1.43, 192.168.1.95, 192.168.1.70}

    set loginterface $int_if
    set fingerprints "/etc/pf.os"

    altq on $int_if bandwidth 100Mb cbq queue { dflt_in, uext1_in, uext2_in, uext3_in, uext4_in}
    altq on $ext_if bandwidth 300Kb cbq queue { dflt_out }

    queue dflt_in cbq(default) bandwidth 80%
    queue dflt_out cbq(default)

    queue uext1_in bandwidth 30Kb
    queue uext2_in bandwidth 30Kb
    queue uext3_in bandwidth 30Kb
    queue uext4_in bandwidth 30Kb

    uext1="192.168.1.70"
    uext2="192.168.1.23"
    uext3="192.168.1.95"
    uext4="192.168.1.30"

    nat on $ext_if from <interna> to any -> ($ext_if)

    pass out on $int_if from any to $uext1 queue uext1_in
    pass out on $int_if from any to $uext2 queue uext2_in
    pass out on $int_if from any to $uext3 queue uext3_in
    pass out on $int_if from any to $uext4 queue uext4_in

  3. Citação Postado originalmente por etherlink
    so um exemplo...

    table <interna> {192.168.2.2, 192.168.2.1, 192.168.1.1, 192.168.1.8, 192.168.1.21, 192.168.1.23, 192.168.1.30, 192.168.1.31, 192.168.1.37, 192.168.1.40, 192.168.1.41, 192.168.1.42, 192.168.1.43, 192.168.1.95, 192.168.1.70}

    set loginterface $int_if
    set fingerprints "/etc/pf.os"

    altq on $int_if bandwidth 100Mb cbq queue { dflt_in, uext1_in, uext2_in, uext3_in, uext4_in}
    altq on $ext_if bandwidth 300Kb cbq queue { dflt_out }

    queue dflt_in cbq(default) bandwidth 80%
    queue dflt_out cbq(default)

    queue uext1_in bandwidth 30Kb
    queue uext2_in bandwidth 30Kb
    queue uext3_in bandwidth 30Kb
    queue uext4_in bandwidth 30Kb

    uext1="192.168.1.70"
    uext2="192.168.1.23"
    uext3="192.168.1.95"
    uext4="192.168.1.30"

    nat on $ext_if from <interna> to any -> ($ext_if)

    pass out on $int_if from any to $uext1 queue uext1_in
    pass out on $int_if from any to $uext2 queue uext2_in
    pass out on $int_if from any to $uext3 queue uext3_in
    pass out on $int_if from any to $uext4 queue uext4_in
    Se eu usar esse script do jeito que esta aqui ja vai fazer controle de banda etherlink???

    Desde ja obrigado...






Tópicos Similares

  1. Controle de banda no OPENBSD 3.6 + PROXY
    Por nikolas no fórum Sistemas Operacionais
    Respostas: 1
    Último Post: 13-07-2006, 21:31
  2. controle de banda no freebsd
    Por Alberto-de no fórum Sistemas Operacionais
    Respostas: 20
    Último Post: 11-05-2006, 08:29
  3. Controle de Banda no AP
    Por loganturbo no fórum Redes
    Respostas: 7
    Último Post: 06-10-2005, 09:42
  4. COntrole de banda no squid
    Por genival no fórum Servidores de Rede
    Respostas: 8
    Último Post: 29-07-2005, 13:28
  5. Controle de Banda no RH7.1
    Por no fórum Servidores de Rede
    Respostas: 0
    Último Post: 08-09-2003, 21:35

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L