+ Responder ao Tópico



  1. Boa tarde, bem como sou novo no microtik, quero saber se posso colocar 2 linhas de 1 mega cada no servidor ou ele so aceita uma, se resposta sim , como faÇo a configuraÇao. Obrigado pela atenÇao que me foi dada

  2. Citação Postado originalmente por lucianopk Ver Post
    Boa tarde, bem como sou novo no microtik, quero saber se posso colocar 2 linhas de 1 mega cada no servidor ou ele so aceita uma, se resposta sim , como faÇo a configuraÇao. Obrigado pela atenÇao que me foi dada
    LucianoPK e possivél sim fazer a conexão de 2 linhas no Servidor MK.

    Apenas vc vai ter que Criar algumas regras:

    1º - Balanceamento de Carga Usada.

    / ip firewall mangle
    add chain=prerouting in-interface= Local connection-state=new nth=1,1,0 action=mark-connection new-connection-mark=odd passthrough=yes comment="Balanceamento de carga" disabled=no

    add chain=prerouting in-interface= Local connection-mark=odd action=mark-routing new-routing-mark=odd passthrough=no comment="" disabled=no

    add chain=prerouting in-interface= Local connection-state=new nth=1,1,1 action=mark-connection new-connection-mark=even passthrough=yes comment="" disabled=no

    add chain=prerouting in-interface= Local connection-mark=even action=mark-routing new-routing-mark=even passthrough=no comment="" disabled=no



    / ip firewall nat
    add chain=srcnat connection-mark=odd action=src-nat to-addresses=192.168.15.199 to-ports=0-65535 comment="Balanceamento de carga" disabled=no

    add chain=srcnat connection-mark=even action=src-nat to-addresses=192.168.241.73 to-ports=0-65535 comment="" disabled=no



    / ip route
    add dst-address=0.0.0.0/0 gateway=192.168.15.254 scope=255 target-scope=10 routing-mark=odd comment="Gateway SttarNet" disabled=no

    add dst-address=0.0.0.0/0 gateway=192.168.251.254 scope=255 target-scope=10 routing-mark=even comment="Gateway INova" disabled=no


    add dst-address=0.0.0.0/0 gateway=192.168.15.254 scope=255 target-scope=10 comment="principal" disabled=yes

    Não esquece de Trocar o IP e Gateway para Sua Range.

    2º Balanceamento de Portas

    / ip route
    add dst-address=0.0.0.0/0 gateway=192.168.15.254 scope=255 target-scope=10 \
    routing-mark=link1 comment="Pacotes marcados redirecionados para o link1" \
    disabled=no

    add dst-address=0.0.0.0/0 gateway=192.168.251.254 scope=255 target-scope=10 \
    routing-mark=link2 comment="Pacotes marcados redirecionados para o link2" \
    disabled=no


    / ip firewall mangle

    add chain=prerouting protocol=tcp dst-port=80 action=mark-routing new-routing-mark=link2 passthrough=yes \
    comment="Portas redirecionada para o link2" disabled=no
    add chain=prerouting protocol=tcp dst-port=443 action=mark-routing new-routing-mark=link2 passthrough=yes \
    comment="" disabled=no
    add chain=prerouting protocol=tcp dst-port=1863 action=mark-routing new-routing-mark=link2 passthrough=yes \
    comment="" disabled=no
    add chain=prerouting protocol=tcp dst-port=6891 action=mark-routing new-routing-mark=link2 passthrough=yes \
    comment="" 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 routing-mark=link2 action=mark-packet new-packet-mark=link1 passthrough=yes \
    comment="Pacotes marcados do Link1" disabled=no

    add chain=prerouting protocol=tcp dst-port=21 action=mark-routing new-routing-mark=link1 passthrough=yes \
    comment="Portas redirecionada para o link1" disabled=no
    add chain=prerouting protocol=tcp dst-port=22 action=mark-routing new-routing-mark=link1 passthrough=yes \
    comment="" disabled=no
    add chain=prerouting protocol=tcp dst-port=23 action=mark-routing new-routing-mark=link1 passthrough=yes \
    comment="" disabled=no
    add chain=prerouting protocol=tcp dst-port=25 action=mark-routing new-routing-mark=link1 passthrough=yes \
    comment="" disabled=no
    add chain=prerouting protocol=tcp dst-port=53 action=mark-routing new-routing-mark=link1 passthrough=yes \
    comment="" disabled=no
    add chain=prerouting protocol=tcp dst-port=110 action=mark-routing new-routing-mark=link1 passthrough=yes \
    comment="" 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 protocol=tcp dst-port=443 action=mark-routing new-routing-mark=link1 passthrough=yes \
    comment="" disabled=no

    add chain=prerouting protocol=tcp p2p=all-p2p action=mark-routing new-routing-mark=link1 passthrough=yes \
    comment="p2p 1 redirecionado link1" disabled=no






Tópicos Similares

  1. grava linha no início do arquivo
    Por poppe no fórum Servidores de Rede
    Respostas: 3
    Último Post: 05-10-2006, 07:20
  2. pppoe relay no microtik
    Por arium no fórum Redes
    Respostas: 2
    Último Post: 09-08-2006, 07:22
  3. Placa Wireless no Microtik
    Por Molina no fórum Redes
    Respostas: 0
    Último Post: 07-08-2006, 09:14
  4. Limitar tamanho da linha nos posts
    Por felco no fórum Assuntos não relacionados
    Respostas: 1
    Último Post: 16-12-2005, 09:11
  5. Aumentar histórico de linhas no bash!
    Por flipeexpl no fórum Servidores de Rede
    Respostas: 0
    Último Post: 12-08-2004, 08:19

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L