+ Responder ao Tópico



  1. Citação Postado originalmente por tiagomatias Ver Post
    Ola dsss,

    desculpe pela demora, estava apurado por aqui esses dias...

    amigo precisamos do exporto do seu mangle e rotas para podermos ver o q pode ser o erro. Isso caso ainda n tenha resolvido, mas caso já tenha resolvido, diga para o pessoal qual foi a solução

    abraços
    Sem problemas Tiago, agradeço por responder! Veja só sempre que defino a rota com prioridade maior para um determinado link sempre consumo do link da rota é maior, até ai tudo bem, mas note que se eu fizer o inverso, pôr a rota para o link ADSL além de ter maior velocidade de download, o link full fica praticamente parado, mesmo como tendo dito anteriormente, fazendo a divisão correta pela marcação do mangle, segue ai meu mangle.



    /ip firewall mangle
    add action=accept chain=prerouting comment="Sem Balance" disabled=no dst-address-list=sem_balance in-interface=\
    EthClientes
    add action=mark-connection chain=input comment=PCC connection-state=new disabled=no in-interface=EthLinkA \
    new-connection-mark=conn_na passthrough=yes
    add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=pppoe-out1 \
    new-connection-mark=conn_nb passthrough=yes
    add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=EthLinkC \
    new-connection-mark=conn_nc passthrough=yes
    add action=mark-routing chain=output comment="" connection-mark=conn_na disabled=no new-routing-mark=to_ra passthrough=\
    no
    add action=mark-routing chain=output comment="" connection-mark=conn_nb disabled=no new-routing-mark=to_rb passthrough=\
    no
    add action=mark-routing chain=output comment="" connection-mark=conn_nc disabled=no new-routing-mark=to_rc passthrough=\
    no
    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=EthClientes \
    new-connection-mark=conn_ma0 passthrough=yes per-connection-classifier=both-addresses:8/0
    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=EthClientes \
    new-connection-mark=conn_mb1 passthrough=yes per-connection-classifier=both-addresses:8/1
    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=EthClientes \
    new-connection-mark=conn_mb1 passthrough=yes per-connection-classifier=src-address:8/2
    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=EthClientes \
    new-connection-mark=conn_mb1 passthrough=yes per-connection-classifier=src-address:8/3
    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=EthClientes \
    new-connection-mark=conn_mb1 passthrough=yes per-connection-classifier=src-address:8/4
    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=EthClientes \
    new-connection-mark=conn_mc2 passthrough=yes per-connection-classifier=src-address:8/5
    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=EthClientes \
    new-connection-mark=conn_mc2 passthrough=yes per-connection-classifier=src-address:8/6
    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=EthClientes \
    new-connection-mark=conn_mc2 passthrough=yes per-connection-classifier=src-address:8/7
    add action=mark-routing chain=prerouting comment="" connection-mark=conn_ma0 disabled=no in-interface=EthClientes \
    new-routing-mark=to_nra passthrough=no
    add action=mark-routing chain=prerouting comment="" connection-mark=conn_mb1 disabled=no in-interface=EthClientes \
    new-routing-mark=to_nrb passthrough=no
    add action=mark-routing chain=prerouting comment="" connection-mark=conn_mc2 disabled=no in-interface=EthClientes \
    new-routing-mark=to_nrc passthrough=no


    /ip route


    add check-gateway=ping comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=200.249.152.129 scope=30 \
    target-scope=10
    add check-gateway=ping comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=pppoe-out1
    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=200.249.152.129 routing-mark=to_nra scope=30 \
    target-scope=10
    add comment="" disabled=yes distance=1 dst-address=0.0.0.0/0 gateway=192.168.253.254 routing-mark=to_nrc scope=30 \
    target-scope=10
    add comment="" disabled=yes distance=4 dst-address=0.0.0.0/0 gateway=192.168.253.254 scope=30 target-scope=10
    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_nrb
    add comment="" disabled=no distance=2 dst-address=200.249.152.129/32 gateway=EthLinkA

    Última edição por DSSS; 20-09-2009 às 01:27. Razão: por a rotas

  2. Amigos, voces usam nos clientes IP Valido ou Invalido? Fixo ou Dinamico?

    Mais uma coisa... estou usando esse PCC e agradeço ao autor, e parabens pelo tuto... porem....
    queria saber 2 coisa.

    Quando um link cai o outro nao eh para assumir? ou nao?
    Meus clientes sempre pegam o MESMO IP VALIDO, isso é correto?

    Abraços!
    Última edição por thiagotgc; 22-09-2009 às 11:15.



  3. Será que alguém poderia me ajudar. Tenho dois links adsl e fiz o balanceamento do início do forum, parece estar tudo certo, mas só um link fica rodando, o outro fica parado, só às vezes ele vai e puxa 400 Kbps ou um pouco mais e volta pro 0,00. Os dois links estão conectados e navegando normalmente. Quando tiro o cabo de um o outro assume e vice-versa. O que pode estar errado? Tenho certeza que conseguirei encontrar uma solução com as respostas aqui do fórum. Segue minha ip>firewall>mangle ip>route e ip>nat. A princípio, uso uma rb450g, só para saberem.

    /ip firewall mangle
    add action=accept chain=prerouting comment="SEM BALANCE" disabled=no \
    dst-address-list=sem_balance in-interface=EthClientes
    add action=mark-connection chain=input comment="" connection-state=new \
    disabled=no in-interface=EthLinkA new-connection-mark=conn_na \
    passthrough=yes
    add action=mark-connection chain=input comment="" connection-state=new \
    disabled=no in-interface=EthLinkB new-connection-mark=conn_nb \
    passthrough=yes
    add action=mark-routing chain=output comment="" connection-mark=conn_na \
    disabled=no new-routing-mark=to_ra passthrough=no
    add action=mark-routing chain=output comment="" connection-mark=conn_nb \
    disabled=no new-routing-mark=to_rb passthrough=no
    add action=mark-connection chain=prerouting comment="" disabled=no \
    dst-address-type=local in-interface=EthClientes new-connection-mark=\
    conn_ma0 passthrough=yes per-connection-classifier=both-addresses:2/0
    add action=mark-connection chain=prerouting comment="" disabled=no \
    dst-address-type=local in-interface=EthClientes new-connection-mark=\
    conn_mb1 passthrough=yes per-connection-classifier=both-addresses:2/1
    add action=mark-routing chain=prerouting comment="" connection-mark=conn_ma0 \
    disabled=no in-interface=EthClientes new-routing-mark=to_nra passthrough=\
    no
    add action=mark-routing chain=prerouting comment="" connection-mark=conn_mb1 \
    disabled=no in-interface=EthClientes new-routing-mark=to_nrb passthrough=\
    no

    /ip route
    add comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=EthLinkA
    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=EthLinkA \
    routing-mark=to_nra
    add comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=EthLinkB
    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=EthLinkB \
    routing-mark=to_nrb
    add comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=EthLinkA
    add comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=EthLinkB
    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=EthLinkA \
    routing-mark=to_nra
    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=EthLinkB \
    routing-mark=to_nrb

    /ip firewall nat
    add action=accept chain=srcnat comment="MASCARAMENTO PCC" disabled=no \
    out-interface=EthLinkA
    add action=masquerade chain=srcnat comment="" disabled=no out-interface=\
    EthLinkB
    add action=masquerade chain=srcnat comment="MASCARAMENTO PCC" disabled=no \
    src-address=xx.xx.xx.xx/24

  4. amigo veja que sua marcação na contagem esta faltando uns detalhes espero que releia os topicos que vera onde esta errando, não vou postar o erro pois o intuito e de voce ver e aprender pelo como colocar as regras no sistema ok. qualquer duvida poste ai.



  5. Amigo parece que voce esta repetindo 2 vezes as mesmas regras no /ip route ??

    /ip route
    add comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=EthLinkA
    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=EthLinkA \
    routing-mark=to_nra
    add comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=EthLinkB
    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=EthLinkB \
    routing-mark=to_nrb

    add comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=EthLinkA
    add comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=EthLinkB
    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=EthLinkA \
    routing-mark=to_nra
    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=EthLinkB \
    routing-mark=to_nrb






Tópicos Similares

  1. Respostas: 12
    Último Post: 15-05-2015, 17:14
  2. Respostas: 6
    Último Post: 08-03-2015, 02:04
  3. Respostas: 2
    Último Post: 18-06-2014, 16:27
  4. Respostas: 273
    Último Post: 20-09-2012, 10:39
  5. duvida sobre link dedicado por balance de operadora
    Por boneco no fórum Servidores de Rede
    Respostas: 13
    Último Post: 05-05-2011, 18:07

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L