Página 1 de 3 123 ÚltimoÚltimo
+ Responder ao Tópico



  1. # ip address --------------------------
    /ip address add address=192.168.100.1/24/24 interface=Rede Local

    # interface pppoe-client ---------------
    /interface pppoe-client add ac-name="" add-default-route=no allow=pap,chap,mschap1,mschap2 dial-on-demand=no disabled=no interface=link 1 max-mru=1480 max-mtu=1480 mrru=disabled name=adsl_link 1 password=internet profile=default service-name="" use-peer-dns=no user=speedycorp@speedycorp.com.br
    /interface pppoe-client add ac-name="" add-default-route=no allow=pap,chap,mschap1,mschap2 dial-on-demand=no disabled=no interface=link 2 max-mru=1480 max-mtu=1480 mrru=disabled name=adsl_link 2 password=internet profile=default service-name="" use-peer-dns=no user=speedycorp@speedycorp.com.br

    # ip dns --------------------------------
    /ip dns set primary-dns=200.204.0.10
    /ip dns set secondary-dns=200.204.0.138
    /ip dns set allow-remote-requests=yes


    # ip firewall Filter------------------------
    /ip firewall filter add action=drop chain=forward comment="BLOQUEIO DE DNS REVERSO" content=velox.user.com.br disabled=no
    /ip firewall filter add action=drop chain=forward comment="BLOQUEIO DE DNS REVERSO" content=speed.user.com.br disabled=no

    # ip firewall nat--------------------------
    /ip firewall nat add action=masquerade chain=srcnat disabled=no out-interface=adsl_link 1
    /ip firewall nat add action=masquerade chain=srcnat disabled=no out-interface=adsl_link 2

    # ip firewall mangle------------------------

    # LoopBack por link-------------------------
    / ip firewall mangle add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no dst-address-list=LINK0 in-interface=Rede Local new-connection-mark=Sites0 passthrough=yes
    / ip firewall mangle add action=mark-routing chain=prerouting comment="" connection-mark=Sites0 disabled=no in-interface=Rede Local new-routing-mark=Rota0 passthrough=no
    / ip route add gateway=adsl_link 1 routing-mark=Rota0
    / ip firewall mangle add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no dst-address-list=LINK1 in-interface="Rede Local" new-connection-mark=Sites1 passthrough=yes
    / ip firewall mangle add action=mark-routing chain=prerouting comment="" connection-mark=Sites1 disabled=no in-interface="Rede Local" new-routing-mark=Rota1 passthrough=no
    / ip route add gateway=adsl_link 2 routing-mark=Rota1

    /ip firewall address-list add address=200.155.80.0-200.155.255.255 comment="BRADESCO" disabled=no list=LINK0
    /ip firewall address-list add address=200.220.186.0/24 comment="" disabled=no list=LINK0
    /ip firewall address-list add address=200.220.178.0/24 comment="" disabled=no list=LINK0
    /ip firewall address-list add address=201.7.176.0/24 comment="" disabled=no list=LINK1
    /ip firewall address-list add address=201.7.178.0/24 comment="" disabled=no list=LINK1
    /ip firewall address-list add address=208.67.217.0/24 comment="" disabled=no list=LINK1
    /ip firewall address-list add address=208.69.32.0/24 comment="" disabled=no list=LINK1
    /ip firewall address-list add address=64.38.29.0/24 comment="RapidShare" disabled=no list=LINK1
    # Fim LoopBack por link----------------------

    /ip firewall mangle add action=mark-connection connection-state=new chain=prerouting disabled=no in-interface="adsl_link 1" new-connection-mark=adsl_link 1_conn passthrough=yes
    /ip firewall mangle add action=mark-connection connection-state=new chain=prerouting disabled=no in-interface=adsl_link 2 new-connection-mark=adsl_link 2_conn passthrough=yes
    /ip firewall mangle add action=mark-routing chain=output connection-mark=adsl_link 1_conn disabled=no new-routing-mark=to_adsl_link 1 passthrough=yes
    /ip firewall mangle add action=mark-routing chain=output connection-mark=adsl_link 2_conn disabled=no new-routing-mark=to_adsl_link 2 passthrough=yes
    /ip firewall mangle add action=mark-connection connection-state=new chain=prerouting disabled=no dst-address-type=!local in-interface=Rede Local new-connection-mark=adsl_link 1_conn passthrough=yes per-connection-classifier=:2/0
    /ip firewall mangle add action=mark-connection connection-state=new chain=prerouting disabled=no dst-address-type=!local in-interface=Rede Local new-connection-mark=adsl_link 2_conn passthrough=yes per-connection-classifier=:2/1
    /ip firewall mangle add action=mark-routing chain=prerouting connection-mark=adsl_link 1_conn disabled=no in-interface=Rede Local new-routing-mark=to_adsl_link 1 passthrough=yes
    /ip firewall mangle add action=mark-routing chain=prerouting connection-mark=adsl_link 2_conn disabled=no in-interface=Rede Local new-routing-mark=to_adsl_link 2 passthrough=yes

    # ip route----------------------------------
    /ip route add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=adsl_link 1 routing-mark=to_adsl_link 1 comment="Link0"
    /ip route add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=adsl_link 2 routing-mark=to_adsl_link 2 comment="Link1"
    /ip route add comment="Link0" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=adsl_link 1 scope=30 target-scope=10
    /ip route add comment="Link1" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=adsl_link 2 scope=30 target-scope=10

    espero ter ajudado.

  2. Valeu amigo!!!



  3. vlw amigo!!! isso vai ajudar muita gente!!!

  4. Rapaz, isso ai vai me ajudar demais! Ah tempos procuro por isso!
    Parece que o fórum está sendo utilizado com a intenção para qual foi criado, ajudar sem complicações!
    Obrigado amigo!



  5. Colega muito bom mesmo, vai ajuda muita gente.. rs como eu.. esse esquema é pra modem em bridge é isso?
    Obrigado.






Tópicos Similares

  1. PCC LOADBALANCE COM 8 LINKS SIMÉTRICOS
    Por adrianocurvelo no fórum Redes
    Respostas: 7
    Último Post: 11-07-2011, 10:28
  2. Respostas: 1
    Último Post: 09-02-2011, 15:39
  3. Respostas: 20
    Último Post: 18-12-2008, 23:43
  4. Respostas: 3
    Último Post: 17-03-2008, 08:36
  5. LoadBalance com 2 Links! AJUDA
    Por mauriciommagalhaes no fórum Servidores de Rede
    Respostas: 0
    Último Post: 14-08-2006, 06:51

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L