Community discussions

MUM Europe 2020
just joined
Topic Author
Posts: 7
Joined: Thu Jan 16, 2014 12:23 pm

load balancing problem

Thu Jan 16, 2014 12:41 pm

a week ago i bought a rb 751U-2HnD i neet to configure it for make a load balancing between 2 adsl.
i've this configuration

/ip firewall nat
 0 X ;;; Load Balancing | NON TOCCARE |
     chain=srcnat action=masquerade out-interface=Wireless 

 1   chain=srcnat action=masquerade out-interface=WAN2 

 2   chain=srcnat action=masquerade to-addresses= out-interface=WAN3 

/ip firewall mangle

 0   chain=prerouting action=accept dst-address= in-interface=Local 

 1   chain=prerouting action=accept dst-address= 

 2   chain=prerouting action=accept dst-address= in-interface=Local 

 3   chain=prerouting action=accept dst-address= 

 4   chain=prerouting action=mark-connection new-connection-mark=WAN2_conn passthrough=yes dst-address-type=!local in-interface=Local 

 5   chain=prerouting action=mark-connection new-connection-mark=WAN3_conn passthrough=yes dst-address-type=!local in-interface=Local 

 6   chain=prerouting action=mark-routing new-routing-mark=to_WAN3 passthrough=yes in-interface=Local connection-mark=WAN3_conn 

 7   chain=input action=mark-connection new-connection-mark=WAN2_conn passthrough=yes in-interface=WAN2 

 8   chain=input action=mark-connection new-connection-mark=WAN3_conn passthrough=yes in-interface=WAN3 

 9   chain=prerouting action=mark-routing new-routing-mark=to_WAN2 passthrough=yes in-interface=Local connection-mark=WAN2_conn 

10   chain=output action=mark-routing new-routing-mark=to_WAN2 passthrough=yes connection-mark=WAN2_conn 

11   chain=output action=mark-routing new-routing-mark=to_WAN3 passthrough=yes connection-mark=WAN3_conn 

/ip route

0 A S                               1
 1 A S                               1
 2 X S                               1
 3 A S                               1
 4   S                               2
 5 X S                               1
 6 ADC   WAN2                      0
 7 ADC   WAN3                      0
 8 ADC   Local                     0

i've some problem:
-traffic balacing is not the same on two balancig,in wan2 i've 10 gbt traffic in wan3 only 400 mb
-when i try to open a page it go slowly like if load balancig lose time to Establish from wich wan request is to send
when i try to go on mikrotik site it lose 10 seconds to give me page, when i'm on mikrotik site ad visit the site speed is much more

-i can't work properly port forwarding on my dvr
when i try to connect on mydvr sometime go sometime no
this is my rule for it

7   chain=dstnat action=dst-nat to-addresses= to-ports=1025 protocol=tcp in-interface=!Local dst-port=1025 

 8   chain=dstnat action=dst-nat to-addresses= to-ports=9001 protocol=tcp in-interface=!Local dst-port=9001 
some body can help please.
tnks in addvance
User avatar
Posts: 446
Joined: Sat Feb 06, 2010 2:18 am
Location: Spain

Re: load balancing problem

Fri Jan 17, 2014 5:20 pm

before anything those SRc NAT rules are not right

1.. is ok

2. is changing the source nat to should be masquerade
just joined
Topic Author
Posts: 7
Joined: Thu Jan 16, 2014 12:23 pm

Re: load balancing problem

Sun Jan 19, 2014 1:29 pm

tnks for answer
can you tell me more pls
Member Candidate
Member Candidate
Posts: 195
Joined: Wed Feb 23, 2011 8:33 am

Re: load balancing problem

Mon Jan 20, 2014 4:49 pm

your rules seem messed up

try the example here

Who is online

Users browsing this forum: No registered users and 46 guests