Página 2 de 3 PrimeiroPrimeiro 123 ÚltimoÚltimo
+ Responder ao Tópico



  1. eu procurando axei um tratamento de portas....

    esse codigo faz o q mais ou menos eu qro ? (não entendo muito )

    ele redireciona as portas principal para o link2 .. e o nixo para o link 1 ?

    / ip firewall mangle
    add chain=prerouting protocol=tcp dst-port=80 action=mark-routing new-routing-mark=link2
    passthrough=yes \
    comment="HTTP no link2" disabled=no
    add chain=prerouting routing-mark=link2 action=mark-packet new-packet-mark=link2 passthrough=yes \
    comment="Pacotes marcados do Link2" disabled=no

    add chain=prerouting protocol=tcp dst-port=443 action=mark-routing new-routing-mark=link2
    passthrough=yes \
    comment="HTTPS no Link2" disabled=no
    add chain=prerouting routing-mark=link2 action=mark-packet new-packet-mark=link2 passthrough=yes \
    comment="Pacotes marcados do Link2" disabled=no

    add chain=prerouting protocol=tcp dst-port=1863 action=mark-routing new-routing-mark=link2
    passthrough=yes \
    comment="MSN no Link2" disabled=no
    add chain=prerouting routing-mark=link2 action=mark-packet new-packet-mark=link2 passthrough=yes \
    comment="Pacotes marcados do Link2" disabled=no

    add chain=prerouting protocol=tcp dst-port=21 action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="FTP no link1" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp dst-port=22 action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="SSH no Link1" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp dst-port=23 action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="TELNET" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp dst-port=25 action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="SMPTP" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp dst-port=53 action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="DNS" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp dst-port=110 action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="POP3" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp dst-port=1080 action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp p2p=all-p2p action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="p2p no link1" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

  2. Te deram metade do que vc precisa. Isso são as marcações apenas. Depois tem que informar no ip - route - qual o gateway do link 1 e o gateway do link 2. Tem um porem, como vc vai usar o web-proxy, a navegação saira pelo gateway default, pois o trafego será gerado do proprio router(mk).



  3. Citação Postado originalmente por interhome Ver Post
    Te deram metade do que vc precisa. Isso são as marcações apenas. Depois tem que informar no ip - route - qual o gateway do link 1 e o gateway do link 2. Tem um porem, como vc vai usar o web-proxy, a navegação saira pelo gateway default, pois o trafego será gerado do proprio router(mk).

    com essas marcacões pode ser usado qndo o modem fika em brigde e o mkt autentica, e outro vindo do modem roteado ?

    o webproxy usaria o link que o mkt estara autenticando

  4. galera tem como me ajudar...
    montei com as regras acima..
    como o manual q tem wiki...
    e naum funciono o load balang...



  5. Citação Postado originalmente por mktguaruja Ver Post
    eu procurando axei um tratamento de portas....

    esse codigo faz o q mais ou menos eu qro ? (não entendo muito )

    ele redireciona as portas principal para o link2 .. e o nixo para o link 1 ?

    / ip firewall mangle
    add chain=prerouting protocol=tcp dst-port=80 action=mark-routing new-routing-mark=link2
    passthrough=yes \
    comment="HTTP no link2" disabled=no
    add chain=prerouting routing-mark=link2 action=mark-packet new-packet-mark=link2 passthrough=yes \
    comment="Pacotes marcados do Link2" disabled=no

    add chain=prerouting protocol=tcp dst-port=443 action=mark-routing new-routing-mark=link2
    passthrough=yes \
    comment="HTTPS no Link2" disabled=no
    add chain=prerouting routing-mark=link2 action=mark-packet new-packet-mark=link2 passthrough=yes \
    comment="Pacotes marcados do Link2" disabled=no

    add chain=prerouting protocol=tcp dst-port=1863 action=mark-routing new-routing-mark=link2
    passthrough=yes \
    comment="MSN no Link2" disabled=no
    add chain=prerouting routing-mark=link2 action=mark-packet new-packet-mark=link2 passthrough=yes \
    comment="Pacotes marcados do Link2" disabled=no

    add chain=prerouting protocol=tcp dst-port=21 action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="FTP no link1" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp dst-port=22 action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="SSH no Link1" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp dst-port=23 action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="TELNET" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp dst-port=25 action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="SMPTP" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp dst-port=53 action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="DNS" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp dst-port=110 action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="POP3" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp dst-port=1080 action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp p2p=all-p2p action=mark-routing new-routing-mark=link1
    passthrough=yes \
    comment="p2p no link1" disabled=no
    add chain=prerouting routing-mark=link1 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    interhome,

    entaum vo declarar as regras acima e no ip address
    colocar o ip ... no ip route declarar o gateway
    somente com isso o load vai funcionar ?






Tópicos Similares

  1. Respostas: 3
    Último Post: 25-05-2012, 10:20
  2. Respostas: 4
    Último Post: 05-08-2011, 13:17
  3. balanceamento de link(troca por requisição)
    Por tiagoggsouza no fórum Servidores de Rede
    Respostas: 2
    Último Post: 08-06-2011, 23:41
  4. Balanceamento de link por tipos de arquivos.
    Por warllock01 no fórum Redes
    Respostas: 3
    Último Post: 05-10-2010, 23:56
  5. Balanceamento de link por servico.
    Por oyama no fórum Redes
    Respostas: 2
    Último Post: 21-09-2006, 10:38

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L