Postado originalmente por
peritinaicos
Boa tarde pessoal, hoje chegou uns equipamentos pra mim e um RB750 e preciso fazer um load balance, tentei com um programa para gerar mais só está saindo por 1link quando desligo o primeiro o segundo funciona, mais nada de funcionar os dois juntos... Alguém pode me dar uma mãozinha nisso? Segue minha configuração:
# ip address --------------------------
/ip address add address=10.50.0.1/24 interface=saida
/ip address add address=192.168.1.100/24 interface=link
/ip address add address=10.0.0.2/24 interface=adsl
# interface pppoe-client ---------------
# ip dns --------------------------------
/ip dns set primary-dns=8.8.8.8
/ip dns set secondary-dns=8.8.4.4
/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 filter add action=accept chain=input disabled=no in-interface=!link src-address=10.50.0.1/24
/ip firewall filter add action=accept chain=input disabled=no in-interface=!adsl src-address=10.50.0.1/24
# ip firewall nat--------------------------
/ip firewall nat add action=masquerade chain=srcnat disabled=no out-interface=link
/ip firewall nat add action=masquerade chain=srcnat disabled=no out-interface=adsl
# 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=saida new-connection-mark=Sites0 passthrough=yes
/ ip firewall mangle add action=mark-routing chain=prerouting comment="" connection-mark=Sites0 disabled=no in-interface=saida new-routing-mark=Rota0 passthrough=no
/ ip route add gateway=192.168.1.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=saida new-connection-mark=Sites1 passthrough=yes
/ ip firewall mangle add action=mark-routing chain=prerouting comment="" connection-mark=Sites1 disabled=no in-interface=saida new-routing-mark=Rota1 passthrough=no
/ ip route add gateway=10.0.0.1 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=link new-connection-mark=link_conn passthrough=yes
/ip firewall mangle add action=mark-connection connection-state=new chain=prerouting disabled=no in-interface=adsl new-connection-mark=adsl_conn passthrough=yes
/ip firewall mangle add action=mark-routing chain=output connection-mark=link_conn disabled=no new-routing-mark=to_link passthrough=yes
/ip firewall mangle add action=mark-routing chain=output connection-mark=adsl_conn disabled=no new-routing-mark=to_adsl passthrough=yes
/ip firewall mangle add action=accept chain=prerouting disabled=no dst-address=192.168.1.0/24 in-interface=saida
/ip firewall mangle add action=accept chain=prerouting disabled=no dst-address=10.0.0.0/24 in-interface=saida
/ip firewall mangle add action=mark-connection connection-state=new chain=prerouting disabled=no dst-address-type=!local in-interface=saida new-connection-mark=link_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=saida new-connection-mark=adsl_conn passthrough=yes per-connection-classifier=:2/1
/ip firewall mangle add action=mark-routing chain=prerouting connection-mark=link_conn disabled=no in-interface=saida new-routing-mark=to_link passthrough=yes
/ip firewall mangle add action=mark-routing chain=prerouting connection-mark=adsl_conn disabled=no in-interface=saida new-routing-mark=to_adsl passthrough=yes
# ip route----------------------------------
/ip route add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_link comment="Link0"
/ip route add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.0.0.1 routing-mark=to_adsl comment="Link1"
/ip route add check-gateway=ping comment="Link0" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=30 target-scope=10
/ip route add check-gateway=ping comment="Link1" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=10.0.0.1 scope=30 target-scope=10