Página 1 de 8 123456 ... ÚltimoÚltimo
+ Responder ao Tópico



  1. Bom dia a todos

    Eu estava lendo o topico do usuario jeanfrank, alias parabens para ele.. otimo post.

    Balanceamento 5 links Perfeito !!!!!

    E estou rabiscando primeiramente para min ... heheh
    rabiscando no bloco de notas para depois fazer os testes, rsrs


    tem como a galera da um olhada nas anotações, pois troquei faixas de ip..fiz marcações com outros nomes praticamente tudo do zero, usei a logika demostrada pelo jeanfrank. A classe de ip 192.168.10.253/24 é o proxy paralelo do nosso amigo pcram que estou testando.
    Os meus link's são adsl de 2megas, e estou querendo colocar eles nun roteador linksys que não tem wireless, dizem que é muito bom.
    Outra coisa que eu estava pensando, o codigo abaixo eh o balanceamento com 3 links adsl. Queria saber se 1 ou 2 link cair...1 link assumiria tudo ??
    bem galera eh isso ai.. espero a ajuda de vc´s ;;;

    /ip address
    add address=172.31.110.10/24 network=172.31.110.0 broadcast=172.31.110.255 interface=EthClientes comment="" \
    disabled=no
    add address=192.168.1.254/24 network=192.168.1.0 broadcast=192.168.1.255 interface=EthWan1 comment="" \
    disabled=no
    add address=192.168.2.254/24 network=192.168.2.0 broadcast=192.168.2.255 interface=EthWan2 comment="" \
    disabled=no
    add address=192.168.3.254/24 network=192.168.3.0 broadcast=192.168.3.255 interface=EthWan3 comment="" \
    disabled=no
    add address=192.168.10.253/24 network=192.168.10.0 broadcast=192.168.10.255 interface=EthIntranet comment="" \
    disabled=no
    / ip firewall address-list
    add list=EthWan1 address=192.168.1.254 comment="" disabled=yes
    add list=EthWan2 address=192.168.2.254 comment="" disabled=yes
    add list=EthWan3 address=192.168.3.254 comment="" disabled=yes
    minha duvida aqui seria se fika desabilitado mesmo ??
    /ip firewall magle
    add chain=prerouting in-interface=EthClientes src-address-list=EthWan1 \
    action=mark-connection new-connection-mark=connection_EthWan1 \
    passthrough=yes comment="" disabled=yes
    add chain=prerouting in-interface=EthClientes src-address-list=EthWan1 \
    action=mark-routing new-routing-mark=routing_EthWan1 \
    passthrough=no comment="" disabled=yes
    add chain=prerouting in-interface=EthClientes src-address-list=EthWan2 \
    action=mark-connection new-connection-mark=connection_EthWan2 \
    passthrough=yes comment="" disabled=yes
    add chain=prerouting in-interface=EthClientes src-address-list=EthWan2 \
    action=mark-routing new-routing-mark=routing_EthWan2 \
    passthrough=no comment="" disabled=yes
    add chain=prerouting in-interface=EthClientes src-address-list=EthWan3 \
    action=mark-connection new-connection-mark=connection_EthWan3 \
    passthrough=yes comment="" disabled=yes
    add chain=prerouting in-interface=EthClientes src-address-list=EthWan3 \
    action=mark-routing new-routing-mark=routing_EthWan3 \
    passthrough=no comment="" disabled=yes
    add chain=prerouting in-interface=EthCliente connection-state=new nth=2,2,0 \
    action=mark-connection new-connection-mark=nth_EthWan1 passthrough=yes \
    comment="" disabled=no
    add chain=prerouting in-interface=EthCliente connection-mark=nth_EthWan1 \
    action=add-src-to-address-list address-list=EthWan1 \
    address-list-timeout=1d comment="" disabled=no
    add chain=prerouting in-interface=EthCliente connection-mark=nth_EthWan1 \
    action=mark-routing new-routing-mark=rout_EthWan1 passthrough=no \
    comment="" disabled=no

    add chain=prerouting in-interface=EthCliente connection-state=new nth=2,2,1 \
    action=mark-connection new-connection-mark=nth_EthWan2 passthrough=yes \
    comment="" disabled=no
    add chain=prerouting in-interface=EthCliente connection-mark=nth_EthWan1 \
    action=add-src-to-address-list address-list=EthWan2 \
    address-list-timeout=1d comment="" disabled=no
    add chain=prerouting in-interface=EthCliente connection-mark=nth_EthWan1 \
    action=mark-routing new-routing-mark=rout_EthWan2 passthrough=no \
    comment="" disabled=no
    add chain=prerouting in-interface=EthCliente connection-state=new nth=2,2,2 \
    action=mark-connection new-connection-mark=nth_EthWan3 passthrough=yes \
    comment="" disabled=no
    add chain=prerouting in-interface=EthCliente connection-mark=nth_EthWan3 \
    action=add-src-to-address-list address-list=EthWan3 \
    address-list-timeout=1d comment="" disabled=no
    add chain=prerouting in-interface=EthCliente connection-mark=nth_EthWan3 \
    action=mark-routing new-routing-mark=rout_EthWan3 passthrough=no \
    comment="" disabled=no

    /ip firewall nat
    add chain=srcnat connection-mark=EthWan1 action=src-nat \
    to-addresses=192.168.1.253 to-ports=0-65535 comment="" disabled=no
    add chain=srcnat connection-mark=EthWan2 action=src-nat \
    to-addresses=192.168.2.253 to-ports=0-65535 comment="" disabled=no
    add chain=srcnat connection-mark=EthWan3 action=src-nat \
    to-addresses=192.168.3.253 to-ports=0-65535 comment="" disabled=no

    /ip route list
    Destination: 0.0.0.0/0
    gateway: 192.168.1.254
    Mark: EthWan1
    Destination: 0.0.0.0/0
    gateway: 192.168.2.254
    Mark: EthWan2
    Destination: 0.0.0.0/0
    gateway: 192.168.3.254
    Mark: EthWan3

    Aqui eh o fim xD....
    muito obrigado pela força...
    t+

  2. galera minha logika ta mais ou menos certa?????

    me ajudem......

    devo roteador o modem ou colocar um roteador ?????


    muitoo obrigadoo



  3. Citação Postado originalmente por mktguaruja Ver Post
    galera minha logika ta mais ou menos certa?????

    me ajudem......

    devo roteador o modem ou colocar um roteador ?????


    muitoo obrigadoo

    Este Load vai atender diretamente os clientes ? se vai passar para outro servidor e depois para os clientes recomendo que use a opção basica por NTH com modems em modo router !

    https://under-linux.org/f96456-loadbalance-wiki-com-3-adsl-4

    Abraços

  4. Teste este modo que você esta querendo utilizar,mas para min não deu certo pois depois do load vai para outros servidores ! em neste caso ficou so utilizando o primeiro link.



  5. Eu adaptei suas regras para min, so dei uma rabiscada ainda naum coloquei em pratica vo testa amanha tem como da uma verificada para min ve c ta tudo certinho ??

    / ip address
    add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=EthClientes comment="" \
    disabled=no
    add address=10.0.0.138/24 network=10.0.0.0 broadcast=10.0.0.255 interface=EthWanTouch \
    comment="" disabled=no
    add address=192.168.254.254/24 network=192.168.254.0 broadcast=192.168.254.255 interface=EthWanStream \
    comment="" disabled=no
    add address=10.1.1.1/24 network=10.1.1.0 broadcast=10.1.1.255 interface=EthWanDlink \
    comment="" disabled=no

    / ip firewall mangle
    add chain=prerouting in-interface=EthClientes connection-state=new nth=2,1,0 \
    action=mark-connection new-connection-mark=odd passthrough=yes comment="" \
    disabled=no
    add chain=prerouting in-interface=EthClientes connection-mark=odd action=mark-routing \
    new-routing-mark=odd passthrough=no comment="" disabled=no
    add chain=prerouting in-interface=EthClientes connection-state=new nth=2,1,1 \
    action=mark-connection new-connection-mark=even passthrough=yes comment="" \
    disabled=no
    add chain=prerouting in-interface=EthClientes connection-mark=even action=mark-routing \
    new-routing-mark=even passthrough=no comment="" disabled=no
    add chain=prerouting in-interface=EthClientes connection-state=new nth=2,1,2 \
    action=mark-connection new-connection-mark=ode passthrough=yes comment="" \
    disabled=no
    add chain=prerouting in-interface=EthClientes connection-mark=ode action=mark-routing \
    new-routing-mark=ode passthrough=no comment="" disabled=no

    / ip firewall nat
    add chain=srcnat connection-mark=odd action=src-nat to-addresses=10.0.0.138 \
    to-ports=0-65535 comment="" disabled=no
    add chain=srcnat connection-mark=even action=src-nat to-addresses=192.168.254.254 \
    to-ports=0-65535 comment="" disabled=no
    add chain=srcnat connection-mark=ode action=src-nat to-addresses=
    10.1.1.1 \
    to-ports=0-65535 comment="" disabled=no

    / ip route
    add dst-address=0.0.0.0/0 gateway=10.0.0.138 scope=255 target-scope=10 routing-mark=odd \
    comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=192.168.254.254 scope=255 target-scope=10 routing-mark=even \
    comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.1.1.1 scope=255 target-scope=10 routing-mark=ode \
    comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.1.1.1 scope=255 target-scope=10 comment="" \
    disabled=no

    dns que coloquei no ip>dns>
    primario 208.67.222.222
    secundario 208.67.220.220

    eu vo testar ele.. eu tava pensando eu uso um LB604 da dlink, sera q eu consigo fazer mesa coisa q ele faz.. dividir por porcentagem igual o dlink .. cada link 30% de uso... o outro tbm e o outro 40% sera q tem como ou nuam ?


    obrigado a todos !!!






Tópicos Similares

  1. RB 450g e 750 - Balanceamento entre links
    Por geovaneboth no fórum Redes
    Respostas: 22
    Último Post: 06-04-2016, 16:36
  2. Balanceamento de carga entre links com iproute2 - mini-howto
    Por PEdroArthurJEdi no fórum Servidores de Rede
    Respostas: 33
    Último Post: 29-10-2011, 21:55
  3. Balanceamento entre 3 link + squid
    Por brunophsp no fórum Redes
    Respostas: 4
    Último Post: 12-08-2010, 21:47
  4. Hotspot + Balanceamento entre 2 Links
    Por romeudu no fórum Redes
    Respostas: 2
    Último Post: 25-01-2009, 23:22
  5. Balanceamento entre links
    Por jairof no fórum Servidores de Rede
    Respostas: 3
    Último Post: 23-06-2004, 22:35

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L