Hello, i’m new here but i know a thing or two..
I would like some advice about my settings and my case.
For the record, i can change the ip only on the one router..the other one is cisco 2811 and i dont have the password and i dont want to go there actually.
In my network there are about 60 users. I have one connection at 2Mbps up and 2Mbps down and one connection at 24Mbps down and 1Mbps up. The problem is that because i cant change the networks ip, because of servers, applications and people in my way , by following your great talks about load balance and fail over, i can only make it work by creating a bridge with all ports in it.(local, WAN1,WAN2).
So the 2/2Mbps router ip is 10.0.0.1 and the 24/1Mbps is 10.0.0.2.
I gave 10.0.0.3 at lan interface and also made it as default gateway in the pcs. The routerboard is the rb951ui-2hnd witch i bought recently.
the code im using is this, but the only way to have at least internet at local interface, is to make WAN1 and WAN2 slave and local their master. But then, some firewall ,nat and mangle rules need to set master ports instead of slave WAN1 and WAN2. So i created a bridge with all the ports and use the bridge port, which is master by its nature, in nat and mangle rules. So here it is.
/interface bridge
add name=Localwan
/interface ethernet
set [ find default-name=ether1 ] disabled=yes
set [ find default-name=ether2 ] master-port=none name=Local1
set [ find default-name=ether3 ] master-port=none name=WAN1
set [ find default-name=ether4 ] master-port=none name=WAN2
set [ find default-name=ether5 ] disabled=yes
/interface bridge port
add bridge=Localwan interface=Local1
add bridge=Localwan interface=WAN1
add bridge=Localwan interface=WAN2
/ip address
add address=10.0.0.3/24 network=10.0.0.0 broadcast=10.0.0.255 interface=Local1
add address=10.0.0.4/24 network=10.0.0.0 broadcast=10.0.0.255 interface=WAN1
add address=10.0.0.5/24 network=10.0.0.0 broadcast=10.0.0.255 interface=WAN2
/ip dns
set allow-remote-requests=no servers=8.8.8.8,8.8.4.4
/ip firewall layer7-protocol
add name=FACEBOOK regexp=“^.+(facebook.com|el-gr.facebook.com|youtube.com|newsit.gr|nooz.gr|whatsapp.com|instagram.com|pinterest.com|linkedin.com|twitter.com|xing.com|renren-inc.com|disqus.com|snapchat.com|tumblr.com|twoo.com|mymfb.com|vine.co|meetup.com|secret.ly|medium.com|plus.google.com).*$”
/ip firewall filter
add action=accept chain=input comment=“defconf: accept ICMP” protocol=icmp
add action=accept chain=input comment=“defconf: accept established,related” connection-state=established,related
add action=accept chain=forward comment=“defconf: accept established,related” connection-state=established,related
add action=drop chain=forward comment=“defconf: drop invalid” connection-state=invalid
add action=drop chain=forward layer7-protocol=FACEBOOK
/ip firewall mangle
add action=mark-connection chain=input in-interface=WAN1 new-connection-mark=WAN1_conn
add action=mark-connection chain=input in-interface=WAN2 new-connection-mark=WAN2_conn
add action=mark-routing chain=output connection-mark=WAN1_conn new-routing-mark=to_WAN1
add action=mark-routing chain=output connection-mark=WAN2_conn new-routing-mark=to_WAN2
add action=accept chain=prerouting dst-address=10.0.0.0/24 in-interface=Local1
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=Local1 new-connection-mark=WAN1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=Local1 new-connection-mark=WAN1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/1
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=Local1 new-connection-mark=WAN2_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/2
add action=mark-routing chain=prerouting connection-mark=WAN1_conn in-interface=Local1 new-routing-mark=to_WAN1
add action=mark-routing chain=prerouting connection-mark=WAN2_conn in-interface=Local1 new-routing-mark=to_WAN2
/ip firewall nat
add action=masquerade chain=srcnat out-interface=WAN1
add action=masquerade chain=srcnat out-interface=WAN2
/ip route
add dst-address=0.0.0.0/0 gateway=10.0.0.1 routing-mark=to_WAN2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.0.0.2 routing-mark=to_WAN1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.0.0.1 check-gateway=ping distance=2
add dst-address=0.0.0.0/0 gateway=10.0.0.2 check-gateway=ping distance=1
Am i good or do i have to make any changes? im watching the traffic but im not sure if the load balance works.
Thank you in advance!
b.t.w. rb951ui-2hnd is awesome!


