Community discussions

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

load balancing problem

Thu Jan 16, 2014 12:41 pm

hi,
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=0.0.0.0 out-interface=WAN3 

/ip firewall mangle

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

 1   chain=prerouting action=accept dst-address=192.168.2.0/24 

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

 3   chain=prerouting action=accept dst-address=192.168.3.0/24 

 4   chain=prerouting action=mark-connection new-connection-mark=WAN2_conn passthrough=yes dst-address-type=!local in-interface=Local 
     per-connection-classifier=both-addresses-and-ports:2/0 

 5   chain=prerouting action=mark-connection new-connection-mark=WAN3_conn passthrough=yes dst-address-type=!local in-interface=Local 
     per-connection-classifier=both-addresses-and-ports:2/1 

 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  0.0.0.0/0                          192.168.2.1               1
 1 A S  0.0.0.0/0                          192.168.3.1               1
 2 X S  0.0.0.0/0                          192.168.1.1               1
 3 A S  0.0.0.0/0                          192.168.3.1               1
 4   S  0.0.0.0/0                          192.168.2.1               2
 5 X S  0.0.0.0/0                          192.168.1.1               1
 6 ADC  192.168.2.0/24     192.168.2.124   WAN2                      0
 7 ADC  192.168.3.0/24     192.168.3.125   WAN3                      0
 8 ADC  192.168.100.0/24   192.168.100.1   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
example
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=192.168.100.6 to-ports=1025 protocol=tcp in-interface=!Local dst-port=1025 

 8   chain=dstnat action=dst-nat to-addresses=192.168.100.6 to-ports=9001 protocol=tcp in-interface=!Local dst-port=9001 
some body can help please.
tnks in addvance
 
User avatar
karina
Member
Member
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 0.0.0.0. should be masquerade
 
logg
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
 
deejayq
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
http://wiki.mikrotik.com/wiki/Manual:PCC

Who is online

Users browsing this forum: azcoppen, noonedeadpunk, Sob and 42 guests