+ Responder ao Tópico



  1. Citação Postado originalmente por Binhos5 Ver Post
    Amigo fiz exatamente isso no tato mesmo quebrando a cabeça, so precisava de uma confirmação. perfeito............

    Ainda nao testei o balanceamento so estou configurando tudo conforme o tuto de m4d3, assim q testar estarei aki falando e postando o q vai acontecer em tempo real.
    Só para ficar mais claro as regras q ira repetir de acordo com o manual do m4d3 são:

    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_ma0 passthrough=yes per-connection-classifier=both-addresses:2/1

    basta repetir elas como por exemplo acima repeti a regra jogando duas vezes para um link, como viu acoma basta vc fazer os calculos necessarios e fazer de acordo com sua necessidade

  2. Amigos gostaria de saber de vcs q usam o balanceamento mais com links de operadoras diferentes, qual dns vc usam q fique uma boa perfomace..........


    Jainstalei o balanceamento e pudi perceber q quando um link cai vc vai navegando abrindo paaginas mais uma hora da q a pagina nao pode ser exibiba, me parece q quando um link cai e a marcação vai pra ele nao passa pra outro link nao, alguem reparou isso.........
    Última edição por Binhos5; 28-10-2009 às 10:44.



  3. Citação Postado originalmente por Binhos5 Ver Post
    Amigos gostaria de saber de vcs q usam o balanceamento mais com links de operadoras diferentes, qual dns vc usam q fique uma boa perfomace..........


    Jainstalei o balanceamento e pudi perceber q quando um link cai vc vai navegando abrindo paaginas mais uma hora da q a pagina nao pode ser exibiba, me parece q quando um link cai e a marcação vai pra ele nao passa pra outro link nao, alguem reparou isso.........

    o ideal é vc ter um servidor dns para cada link, mas caso n tenha, coloca o primario DNS o DNS da operadora q tem o maior link, ou melhor link. Outra opção é quando um link cair faça um script para tirar o DNS da operadora q esta fora, isso vai resolver seu problema de expiraçào de pagina.

  4. Estou usando a Versao 4.2 do MK com PCC e esta Rodando 100% com PCC de 2 Links ADSL 4MiB

    Código :
    # nov/01/2009 00:45:02 by RouterOS 4.2
    #
     
    /interface ethernet
    set 0 arp=enabled auto-negotiation=yes cable-settings=default comment=\
        "Interface da Rede Interna" disable-running-check=yes disabled=no \
        full-duplex=yes l2mtu=1600 mac-address=00:1F:D0:E8:83:D2 mtu=1500 name=\
        EthClientes speed=1Gbps
    set 1 arp=enabled auto-negotiation=yes cable-settings=default comment=\
        "Interface do Modem B " disable-running-check=yes disabled=\
        no full-duplex=yes mac-address=00:50:DA:7A:4F:13 mtu=1500 name=WanB \
        speed=100Mbps
    set 2 arp=enabled auto-negotiation=yes cable-settings=default comment=\
        "Interface do Modem A " disable-running-check=yes disabled=\
        no full-duplex=yes mac-address=00:50:DA:B6:0D:8E mtu=1500 name=WanA \
        speed=100Mbps
    /interface pppoe-client
    add ac-name="" add-default-route=no allow=pap,chap,mschap1,mschap2 comment=\
        "PPPOE do Link A" dial-on-demand=no disabled=no interface=\
        WanA max-mru=1492 max-mtu=1492 mrru=disabled name=EthLinkA password=\
        seu_password profile=default service-name="" use-peer-dns=no user=\
        seu_id_@_provedor
    add ac-name="" add-default-route=no allow=pap,chap,mschap1,mschap2 comment=\
        "PPPOE do Link B" dial-on-demand=no disabled=no interface=\
        WanB max-mru=1492 max-mtu=1492 mrru=disabled name=EthLinkB password=\
        seu_password profile=default service-name="" use-peer-dns=no user=\
        seu_id_@_provedor
     
    /ip firewall address-list
    add address=200.155.0.0/16 comment="" disabled=no list=BRADESCO
    add address=200.201.0.0/16 comment="" disabled=no list=CEF
    add address=170.66.0.0/24 comment="" disabled=no list=BB
    add address=200.220.0.0/16 comment="" disabled=no list=SANTANDER
    add address=200.196.0.0/16 comment="" disabled=no list=ITAU
    add address=189.56.0.0/16 comment="" disabled=no list=NOSSACAIXA
    add address=161.113.0.0/24 comment="" disabled=no list=HSBC
    add address=201.7.176.0/24 comment="" disabled=no list=GLOBO1
    add address=201.7.180.0/24 comment="" disabled=no list=GLOBO2
    add address=201.7.176.0/24 comment="" disabled=no list=GLOBO3
    add address=200.154.56.0/24 comment="" disabled=no list=TERRA
    add address=208.84.247.0/24 comment="" disabled=no list=TERRA
    add address=10.10.0.0/20 comment="" disabled=yes list=sem_balance
    add address=62.140.0.0/16 comment="" disabled=no list=rapidshare
     
    /ip firewall mangle
    add action=accept chain=prerouting comment="SEM BALANCE" disabled=no \
        dst-address-list=sem_balance in-interface=EthClientes
    add action=accept chain=prerouting comment="LIBERAR SITES HTTPS" disabled=no \
        dst-address-list=BB in-interface=EthClientes
    add action=accept chain=prerouting comment="" disabled=no dst-address-list=\
        BRADESCO in-interface=EthClientes
    add action=accept chain=prerouting comment="" disabled=no dst-address-list=\
        CEF in-interface=EthClientes
    add action=accept chain=prerouting comment="" disabled=no dst-address-list=\
        HSBC in-interface=EthClientes
    add action=accept chain=prerouting comment="" disabled=no dst-address-list=\
        ITAU in-interface=EthClientes
    add action=accept chain=prerouting comment="" disabled=no dst-address-list=\
        NOSSACAIXA in-interface=EthClientes
    add action=accept chain=prerouting comment="" disabled=no dst-address-list=\
        SANTANDER in-interface=EthClientes
    add action=accept chain=prerouting comment="" disabled=no dst-address-list=\
        GLOBO1 in-interface=EthClientes
    add action=accept chain=prerouting comment="" disabled=no dst-address-list=\
        GLOBO2 in-interface=EthClientes
    add action=accept chain=prerouting comment="" disabled=no dst-address-list=\
        GLOBO3 in-interface=EthClientes
    add action=accept chain=prerouting comment="" disabled=no dst-address-list=\
        TERRA in-interface=EthClientes
    add action=accept chain=prerouting comment="" disabled=no dst-address-list=\
        rapidshare in-interface=EthClientes
    add action=mark-connection chain=input comment=\
        "********************Marca Novas Conexoes" 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="Marcando Rotas" \
        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=Balanceando 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=\
        "********************Marca Rotas de Saida" 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-connection chain=forward comment="Marca p2p" disabled=no \
        new-connection-mark=p2p_conn p2p=all-p2p passthrough=yes
    add action=mark-packet chain=forward comment="" connection-mark=p2p_conn \
        disabled=no new-packet-mark=p2p passthrough=yes
    add action=mark-packet chain=forward comment="" connection-mark=!p2p_conn \
        disabled=no new-packet-mark=other passthrough=yes
    add action=change-mss chain=forward comment="Ajuste de Quadros para o MSN" \
        disabled=no new-mss=1380 protocol=tcp tcp-flags=syn
    add action=change-ttl chain=forward comment=\
        "BLOQUEIO DE TRACERT E TRACEROUTE" disabled=no new-ttl=set:30 protocol=\
        icmp
     
    /ip firewall nat
    add action=passthrough chain=unused-hs-chain comment=\
        "place hotspot rules here" disabled=yes
    add action=masquerade chain=srcnat comment="Macaramento dos Links" disabled=\
        no out-interface=EthLinkB src-address=10.10.0.0/20
    add action=masquerade chain=srcnat comment="" disabled=no out-interface=\
        EthLinkA src-address=10.10.0.0/20
    add action=masquerade chain=srcnat comment="masquerade hotspot network" \
        disabled=no src-address=10.10.0.0/20
     
    /ip route
    add check-gateway=ping comment="" disabled=no distance=1 dst-address=\
        0.0.0.0/0 gateway=EthLinkA routing-mark=to_nra scope=30 target-scope=10
    add check-gateway=ping comment="" disabled=no distance=1 dst-address=\
        0.0.0.0/0 gateway=EthLinkB routing-mark=to_nrb scope=30 target-scope=10
    add check-gateway=ping comment="Rota padrao Modem B" disabled=no \
        distance=2 dst-address=0.0.0.0/0 gateway=EthLinkB scope=30 target-scope=\
        10
    add check-gateway=ping comment="Rota de sombra Modem A" disabled=\
        no distance=3 dst-address=0.0.0.0/0 gateway=EthLinkA scope=30 \
        target-scope=10

    by Load Balance PCC Geeek



  5. nao estou conseguindo fazer communicar a rb450 onde faço somente PCC com o pc/mikrotik onde faço controle dos cliente, que regras tenho que criar no pc/mikrotik.
    na rb450 consigo acessar normal internet pela saida Cliente. desde ja agradeço.






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