Hello , here I am again. I Know this post is so large and tired but I need your help.
I have 3.13 in my pc and I have been trying to made load balancing with 3 or 4 connections, with 2 worked good as manual said, but i dont know what happend or what i set wrong.
I’ll post my rules, and the conf of the manual.
Manual*********
/ ip address add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255
interface=Local comment=“” disabled=no
/ ip address add address=10.111.0.2/30 network=10.111.0.0 broadcast=10.111.0.3
interface=Uplink1 comment=“” disabled=no
/ ip address add address=10.112.0.2/30 network=10.112.0.0 broadcast=10.112.0.3
interface=Uplink2 comment=“” disabled=no
/ ip address add address=10.113.0.2/30 network=10.113.0.0 broadcast=10.113.0.3
interface=Uplink3 comment=“” disabled=no
/ ip address add address=10.114.0.2/30 network=10.114.0.0 broadcast=10.114.0.3
interface=Uplink4 comment=“” disabled=no
/ ip address add address=10.115.0.2/30 network=10.115.0.0 broadcast=10.115.0.3
interface=Uplink5 comment=“” disabled=no
Mangle Configuration
/ ip firewall mangle add chain=prerouting in-interface=Local connection-state=new
nth=5,1 action=mark-connection new-connection-mark=conn1 passthrough=yes comment=“”
disabled=no
/ ip firewall mangle add chain=prerouting in-interface=Local connection-mark=conn1
action=mark-routing new-routing-mark=conn1 passthrough=no comment=“” disabled=no
/ ip firewall mangle add chain=prerouting in-interface=Local connection-state=new
nth=4,1 action=mark-connection new-connection-mark=conn2 passthrough=yes comment=“”
disabled=no
/ ip firewall mangle add chain=prerouting in-interface=Local connection-mark=conn2
action=mark-routing new-routing-mark=conn2 passthrough=no comment=“” disabled=no
/ ip firewall mangle add chain=prerouting in-interface=Local connection-state=new
nth=3,1 action=mark-connection new-connection-mark=conn3 passthrough=yes comment=“”
disabled=no
/ ip firewall mangle add chain=prerouting in-interface=Local connection-mark=conn3
action=mark-routing new-routing-mark=conn3 passthrough=no comment=“” disabled=no
/ ip firewall mangle add chain=prerouting in-interface=Local connection-state=new
nth=2,1 action=mark-connection new-connection-mark=conn4 passthrough=yes comment=“”
disabled=no
/ ip firewall mangle add chain=prerouting in-interface=Local connection-mark=conn4
action=mark-routing new-routing-mark=conn4 passthrough=no comment=“” disabled=no
/ ip firewall mangle add chain=prerouting in-interface=Local connection-state=new
action=mark-connection new-connection-mark=conn5 passthrough=yes comment=“”
disabled=no
/ ip firewall mangle add chain=prerouting in-interface=Local connection-mark=conn5
action=mark-routing new-routing-mark=conn5 passthrough=no comment=“” disabled=no
Masquerade Local Network
/ ip firewall nat add chain=srcnat connection-mark=conn1 action=masquerade outinterface=
Uplink1 comment=“” disabled=no
/ ip firewall nat add chain=srcnat connection-mark=conn2 action=masquerade outinterface=
Uplink2 comment=“” disabled=no
/ ip firewall nat add chain=srcnat connection-mark=conn3 action=masquerade outinterface=
Uplink3 comment=“” disabled=no
/ ip firewall nat add chain=srcnat connection-mark=conn4 action=masquerade outinterface=
Uplink4 comment=“” disabled=no
/ ip firewall nat add chain=srcnat connection-mark=conn5 action=masquerade outinterface=
Uplink5 comment=“” disabled=no
Route
/ ip route add dst-address=0.0.0.0/0 gateway=10.111.0.1 scope=255 target-scope=10
routing-mark=conn1 comment=“” disabled=no
/ ip route add dst-address=0.0.0.0/0 gateway=10.112.0.1 scope=255 target-scope=10
routing-mark=conn2 comment=“” disabled=no
/ ip route add dst-address=0.0.0.0/0 gateway=10.113.0.1 scope=255 target-scope=10
routing-mark=conn3 comment=“” disabled=no
/ ip route add dst-address=0.0.0.0/0 gateway=10.114.0.1 scope=255 target-scope=10
routing-mark=conn4 comment=“” disabled=no
/ ip route add dst-address=0.0.0.0/0 gateway=10.115.0.1 scope=255 target-scope=10
routing-mark=conn5 comment=“” disabled=no
/ ip route add dst-address=0.0.0.0/0 gateway=10.111.0.1 scope=255 target-scope=10
comment=“” disabled=no
******* My Rules******************
The only diferent between the manual and my rules, I use dhcp-client in my 3 connectios to get Ip from the dsl’s.
/ ip address add address=172.16.68.1/24 network=172.16.68.0 broadcast=172.16.68.255
interface=Local comment=“” disabled=no
After that I set the mangle’s rules
/ ip firewall mangle add chain=prerouting in-interface=Local connection-state=new
nth=3,1 action=mark-connection new-connection-mark=wan1 passthrough=yes comment=“”
disabled=no
/ ip firewall mangle add chain=prerouting in-interface=Local connection-mark=wan1
action=mark-routing new-routing-mark=wan1 passthrough=no comment=“” disabled=no
/ ip firewall mangle add chain=prerouting in-interface=Local connection-state=new
nth=2,1 action=mark-connection new-connection-mark=wan2 passthrough=yes comment=“”
disabled=no
/ ip firewall mangle add chain=prerouting in-interface=Local connection-mark=wan2
action=mark-routing new-routing-mark=wan2 passthrough=no comment=“” disabled=no
/ ip firewall mangle add chain=prerouting in-interface=Local connection-state=new
action=mark-connection new-connection-mark=wan3 passthrough=yes comment=“”
disabled=no
/ ip firewall mangle add chain=prerouting in-interface=Local connection-mark=wan3
action=mark-routing new-routing-mark=wan3 passthrough=no comment=“” disabled=no
Masquerade Local Network
/ ip firewall nat add chain=srcnat connection-mark=wan1 action=masquerade outinterface=
internet1 comment=“” disabled=no
/ ip firewall nat add chain=srcnat connection-mark=wan2action=masquerade outinterface=
internet2 comment=“” disabled=no
/ ip firewall nat add chain=srcnat connection-mark=wan2action=masquerade outinterface=
internet3 comment=“” disabled=no
Route
/ ip route add dst-address=0.0.0.0/0 int-gateway=internet1 scope=255 target-scope=10
routing-mark=wan1 comment=“” disabled=no
/ ip route add dst-address=0.0.0.0/0 int-gateway=internet2 scope=255 target-scope=10
routing-mark=wan2 comment=“” disabled=no
/ ip route add dst-address=0.0.0.0/0 int-gateway=internet3 scope=255 target-scope=10
routing-mark=wan3 comment=“” disabled=no
/ ip route add dst-address=0.0.0.0/0 int-gateway=internet1 scope=255 target-scope=10
comment=“” disabled=no
When I make bandwidth test only work 1dsl sometimes 2dsl, but never work 3
Each WAN has 4mb.
Thanks