Página 7 de 7 PrimeiroPrimeiro ... 234567
+ Responder ao Tópico



  1. #37

    Padrão

    Sera q alguem teria uma lista de IPs, qual é o MSN, bancos e etc...

    Eu tenho alguns q me deram mas nao sei de onde é, se alguem puder esclarecer e postar mais eu agradeco:


    32.0.0.0/3 =
    64.0.0.0/3 =
    64.0.0.0/8 =
    65.54.0.0/16 =
    66.232.99.0/24 =
    72.0.0.0/8 =
    200.101.81.0/24 =
    200.201.0.0/16 =
    200.241.42.4 =
    200.252.57.4 =
    207.0.0.0/8 =
    207.46.0.0/16 =

  2. #38

    Smile

    Citação Postado originalmente por _AGM_ Ver Post
    Você vai ter que marcar as redes para usar links diferentes.

    Em IP / Firewall / Mangle coloque as seguintes regras:
    add chain=prerouting src-address=10.10.10.0/24 action=mark-routing new-routing-mark=Link1 passthrough=yes comment="" disabled=no
    add chain=prerouting src-address=10.1.1.0/24 action=mark-routing new-routing-mark=Link2 passthrough=yes comment="" disabled=no
    add chain=prerouting src-address=192.168.2.0/24 action=mark-routing new-routing-mark=Link3 passthrough=yes comment="" disabled=no

    Essas linhas acima marcarão todos os pacotes vindos de cada rede...
    Agora em IP / Route adicione as seguintes rotas:
    add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 routing-mark=Link1 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=192.168.1.2 scope=255 target-scope=10 routing-mark=Link2 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=192.168.1.3 scope=255 target-scope=10 routing-mark=Link3 comment="" disabled=no

    Assim estão definidas as rotas para cada rede. Para forçar que alguns sites saiam pelo Link4, adicione a seguinte regra em IP / Firewall / Mangle
    add chain=prerouting dst-address-list=Link4 action=mark-routing new-routing-mark=Link4 passthrough=yes comment="" disabled=no

    Agora, vc precisa colocar todas as redes de IP que vc quer que saiam pelo Link4, mas para isso vc precisa saber quais são. Vou dar um exemplo aqui com um IP qualquer. Em IP / Firewall / Address-List adicione uma regra para cada rede de IP´s:
    add list=Link4 address=200.200.200.0/24 comment="" disabled=no

    Essa regra adicionará à Addres-List a rede 200.200.200.0/24, que sofrerá marcação para sair pelo link 4 no mangle, agora basta adicionar a rota específica em IP / Routes:
    add dst-address=0.0.0.0/0 gateway=192.168.1.4 scope=255 target-scope=10 routing-mark=Link4 comment="" disabled=no

    Testa aeh e poste os resultados...

    Obrigado pela força!!!

    Mas tentei dessa forma, naum sei se fiz algo errado, mas naum funcionou!!!



  3. #39

    Padrão

    Olá pessoal!!!


    Só quero que agradeçam depois, aqui está a solução para vocês em anexo !!!!!!!
    Arquivos Anexos Arquivos Anexos

  4. #40

    Padrão

    Citação Postado originalmente por maxmelo Ver Post
    Sera q alguem teria uma lista de IPs, qual é o MSN, bancos e etc...

    Eu tenho alguns q me deram mas nao sei de onde é, se alguem puder esclarecer e postar mais eu agradeco:


    32.0.0.0/3 =
    64.0.0.0/3 =
    64.0.0.0/8 =
    65.54.0.0/16 =
    66.232.99.0/24 =
    72.0.0.0/8 =
    200.101.81.0/24 =
    200.201.0.0/16 =
    200.241.42.4 =
    200.252.57.4 =
    207.0.0.0/8 =
    207.46.0.0/16 =
    Olá Brother!!!

    baixa um programa chamado ''angry ip scan'' dentro do software tem uma caixa que você digita o endereço do site e ele te dá o ip, se baixar e não conseguir avisa aqui que te ajudo, mas é fácil...



  5. #41

    Padrão

    Citação Postado originalmente por wagnercandioto Ver Post
    Tá na mão, so preciso entender elas, heheheeee

    Segue meus scripts de balanceamento:

    / ip firewall mangle

    add chain=prerouting in-interface=Clientes connection-state=new nth=6,1,0 \
    dst-address-list=!NoMark action=mark-connection \
    new-connection-mark=Rota1 passthrough=yes comment="" disabled=no
    add chain=prerouting in-interface=Clientes connection-mark=Rota1 \
    action=mark-routing new-routing-mark=Rota1 passthrough=no comment="" \
    disabled=no
    add chain=prerouting in-interface=Clientes connection-state=new nth=6,1,1 \
    dst-address-list=!NoMark action=mark-connection \
    new-connection-mark=Rota2 passthrough=yes comment="" disabled=no
    add chain=prerouting in-interface=Clientes connection-mark=Rota2 \
    action=mark-routing new-routing-mark=Rota2 passthrough=no comment="" \
    disabled=no
    add chain=prerouting in-interface=Clientes connection-state=new nth=6,1,2 \
    dst-address-list=!NoMark action=mark-connection \
    new-connection-mark=Rota3 passthrough=yes comment="" disabled=no
    add chain=prerouting in-interface=Clientes connection-mark=Rota3 \
    action=mark-routing new-routing-mark=Rota3 passthrough=no comment="" \
    disabled=no
    add chain=prerouting in-interface=Clientes connection-state=new nth=6,1,3 \
    dst-address-list=!NoMark action=mark-connection \
    new-connection-mark=Rota4 passthrough=yes comment="" disabled=no
    add chain=prerouting in-interface=Clientes connection-mark=Rota4 \
    action=mark-routing new-routing-mark=Rota4 passthrough=no comment="" \
    disabled=no
    add chain=prerouting in-interface=Clientes connection-state=new nth=6,1,4 \
    dst-address-list=!NoMark action=mark-connection \
    new-connection-mark=Rota5 passthrough=yes comment="" disabled=no
    add chain=prerouting in-interface=Clientes connection-mark=Rota5 \
    action=mark-routing new-routing-mark=Rota5 passthrough=no comment="" \
    disabled=no
    add chain=prerouting in-interface=Clientes connection-state=new nth=6,1,5 \
    dst-address-list=!NoMark action=mark-connection \
    new-connection-mark=Rota6 passthrough=yes comment="" disabled=no
    add chain=prerouting in-interface=Clientes connection-mark=Rota6 \
    action=mark-routing new-routing-mark=Rota6 passthrough=no comment="" \
    disabled=no
    add chain=prerouting in-interface=Clientes connection-state=new nth=6,1,6 \
    dst-address-list=!NoMark action=mark-connection \
    new-connection-mark=Rota7 passthrough=yes comment="" disabled=no
    add chain=prerouting in-interface=Clientes connection-mark=Rota7 \
    action=mark-routing new-routing-mark=Rota7 passthrough=no comment="" \
    disabled=no

    / ip firewall nat
    add chain=srcnat src-address=192.168.99.0/30 action=masquerade comment="" \ disabled=no
    add chain=srcnat connection-mark=Rota1 action=src-nat \
    to-addresses=10.2.2.2 to-ports=0-65535 comment="" disabled=no
    add chain=srcnat connection-mark=Rota2 action=src-nat \
    to-addresses=10.3.3.2 to-ports=0-65535 comment="" disabled=no
    add chain=srcnat connection-mark=Rota3 action=src-nat \
    to-addresses=10.4.4.2 to-ports=0-65535 comment="" disabled=no
    add chain=srcnat connection-mark=Rota4 action=src-nat \
    to-addresses=10.5.5.2 to-ports=0-65535 comment="" disabled=no
    add chain=srcnat connection-mark=Rota5 action=src-nat \
    to-addresses=10.6.6.2 to-ports=0-65535 comment="" disabled=no
    add chain=srcnat connection-mark=Rota6 action=src-nat \
    to-addresses=10.7.7.2 to-ports=0-65535 comment="" disabled=no
    add chain=srcnat connection-mark=Rota7 action=src-nat \
    to-addresses=10.8.8.2 to-ports=0-65535 comment="" disabled=no


    Estes são apenas algumas das redes que não entram no balanceamento:

    / ip firewall address-list
    add list=NoMark address=200.212.0.0/16 comment="Bradesco" disabled=no
    add list=NoMark address=200.221.0.0/16 comment="Zipmail" disabled=no
    add list=NoMark address=200.252.60.0/24 comment="Correios" disabled=no
    add list=NoMark address=209.9.0.0/16 comment="Oreys" disabled=no
    add list=NoMark address=200.208.15.0/24 comment="Banco Real" disabled=no
    add list=NoMark address=200.152.32.0/24 comment="Dataprev" disabled=no


    / ip route
    add dst-address=0.0.0.0/0 gateway=10.2.2.1 scope=255 target-scope=10 \
    routing-mark=Rota1 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.3.3.1 scope=255 target-scope=10 \
    routing-mark=Rota2 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.4.4.1 scope=255 target-scope=10 \
    routing-mark=Rota3 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.5.5.1 scope=255 target-scope=10 \
    routing-mark=Rota4 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.6.6.1 scope=255 target-scope=10 \
    routing-mark=Rota5 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.7.7.1 scope=255 target-scope=10 \
    routing-mark=Rota6 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.8.8.1 scope=255 target-scope=10 \
    routing-mark=Rota7 comment="" disabled=no







    Teria como vcs modificarem essa regra para apenas dois links e uma eternet......

    Grato....

  6. #42
    danielmenezes
    Visitante

    Padrão

    posso utilizar o loadbalance para um POP em AP Bridge, utilizando PPPoE para dar IPs publicos de ranges diferentes para os clientes?? ou teria outra forma para isso??
    valeuuu!!!