+ Responder ao Tópico



  1. #1

    Padrão novato pede ajuda com balanceamento

    Caros amigos,

    Sou novo no forum e esse é o meu primeiro servidor mikrotik, se alguem puder ajudar, agradeço.

    Tenho no meu servidor mikrotik 2 links do velox de 1 MB cada, estou fazedo balanceamento com nth e estou com o seguinte problema, alguns clientes nao conseguem acessar o gmail, orkut e msn, mas somente alguns clientes. outra coisa que preciso de ajuda é como fazer o balanceamento de forma que qdo um dos links caia o que continua ativo assuma os clientes pendurados no link que caiu. vou colocar abaixo a minha configuração.

    / ip firewall nat
    add chain=srcnat connection-mark=LINK-1 action=src-nat \
    to-addresses=192.168.100.1 to-ports=0-65535 comment="NAT LINK-1" \
    disabled=no
    add chain=srcnat connection-mark=LINK-2 action=src-nat \
    to-addresses=192.168.254.1 to-ports=0-65535 comment="NAT LINK-2" \
    disabled=no

    / ip firewall mangle
    add chain=prerouting in-interface=CLIENTES connection-state=new nth=1,2,0 \
    action=mark-connection new-connection-mark=LINK-1 passthrough=yes \
    comment="MARCA PRIMEIRA CONEXÃO" disabled=no
    add chain=prerouting in-interface=CLIENTES connection-mark=LINK-1 \
    action=mark-routing new-routing-mark="ROTA LINK-1" passthrough=no \
    comment="MARCA ROTA LINK-1" disabled=no
    add chain=prerouting in-interface=CLIENTES connection-state=new nth=1,2,1 \
    action=mark-connection new-connection-mark=LINK-2 passthrough=yes \
    comment="MARCA SEGUNDA CONEXÃO" disabled=no
    add chain=prerouting in-interface=CLIENTES connection-mark=LINK-2 \
    action=mark-routing new-routing-mark="ROTA LINK-2" passthrough=no \
    comment="MARCA ROTA LINK-2" disabled=no
    add chain=prerouting p2p=all-p2p action=mark-connection \
    new-connection-mark="CONEXÃO P2P" passthrough=yes comment="MARCA CONEXÃO \
    P2P" disabled=no
    add chain=prerouting connection-mark="CONEXÃO P2P" action=mark-packet \
    new-packet-mark=PACORES-P2P passthrough=yes comment="MARCA PACOTES P2P" \
    disabled=no

    / ip route
    add dst-address=0.0.0.0/0 gateway=192.168.100.254 scope=255 target-scope=10 \
    routing-mark="ROTA LINK-1" comment="ROTA LINK-1" disabled=no
    add dst-address=0.0.0.0/0 gateway=192.168.254.254 scope=255 target-scope=10 \
    routing-mark="ROTA LINK-2" comment="ROTA LINK-2" disabled=no
    add dst-address=0.0.0.0/0 gateway=192.168.100.254 scope=255 target-scope=10 \
    comment="ROTA DEFAULT" disabled=no

    até mais

  2. #2

    Smile

    / ip firewall mangle
    add chain=prerouting in-interface=CLIENTES connection-state=new nth=1,1,0 \
    action=mark-connection new-connection-mark=LINK-1 passthrough=yes \
    comment="MARCA PRIMEIRA CONEXÃO" disabled=no
    add chain=prerouting in-interface=CLIENTES connection-mark=LINK-1 \
    action=mark-routing new-routing-mark="ROTA LINK-1" passthrough=no \
    comment="MARCA ROTA LINK-1" disabled=no
    add chain=prerouting in-interface=CLIENTES connection-state=new nth=1,1,1 \
    action=mark-connection new-connection-mark=LINK-2 passthrough=yes \
    comment="MARCA SEGUNDA CONEXÃO" disabled=no
    add chain=prerouting in-interface=CLIENTES connection-mark=LINK-2 \
    action=mark-routing new-routing-mark="ROTA LINK-2" passthrough=no \
    comment="MARCA ROTA LINK-2" disabled=no

    Sua marcações nth estavam erradas eu alterei pra vc ;

  3. #3

    Padrão

    sandros2fabi

    Me diga onde estão erradas as minhas configurações de nth, pois a unica diferença que encontrei nas suas modificações foi no counter que usei 2 e vc 1.

    até mais