Page 1 of 1

load balance withe 2 different WANs

Posted: Fri Nov 09, 2012 11:26 am
by ronix
Hi...

I was made a PCC load balance with 2 WANs :
1st : 5M up / 5M down
2nd :5M up / 5M down

but now I want to upgrade one of my WANs connection to be like this :
1st : 5M up / 5M down
2nd :7.5M up / 7.5M down

how can i solve it ? ( by double the traffic in 1/2 ratio )

Regards,

Re: load balance withe 2 different WANs

Posted: Fri Nov 23, 2012 1:05 pm
by ronix
up....

Re: load balance withe 2 different WANs

Posted: Fri Nov 23, 2012 9:28 pm
by Caci99
The ratio there is 2/3, not 1/2. So, two connections on the first WAN and three on the second.

Re: load balance withe 2 different WANs

Posted: Sat Nov 24, 2012 7:42 pm
by mixig

Re: load balance withe 2 different WANs

Posted: Sat Nov 24, 2012 8:06 pm
by ronix
so my Denominator will be 5 :

/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN1 passthrough=yes per-connection-classifier=both-addresses:5/0
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN2 passthrough=yes per-connection-classifier=both-addresses:5/1
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN1 passthrough=yes per-connection-classifier=both-addresses:5/2
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN2 passthrough=yes per-connection-classifier=both-addresses:5/3
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN2 passthrough=yes per-connection-classifier=both-addresses:5/4

is this rule right or not ?

Re: load balance withe 2 different WANs

Posted: Sun Nov 25, 2012 1:00 pm
by Caci99
so my Denominator will be 5 :

/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN1 passthrough=yes per-connection-classifier=both-addresses:5/0
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN2 passthrough=yes per-connection-classifier=both-addresses:5/1
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN1 passthrough=yes per-connection-classifier=both-addresses:5/2
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN2 passthrough=yes per-connection-classifier=both-addresses:5/3
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN2 passthrough=yes per-connection-classifier=both-addresses:5/4

is this rule right or not ?
Yes, that's right. Have you given it a try?

Re: load balance withe 2 different WANs

Posted: Mon Nov 26, 2012 8:05 pm
by ronix
ok, I will call the ISP to upgrade my WAN2 connection
then i will test it & feed you back ....

thank you for your help

Re: load balance withe 2 different WANs

Posted: Fri Nov 30, 2012 4:18 pm
by Robotics909
I hope your load balancing is working fine. Do u do any thing for the FTP. My load balancing is working fine. But when i try to upload something through ftp. Its drops the connection. After that i disable the one connection do the upload through the ftp.

Re: load balance withe 2 different WANs

Posted: Sun Dec 02, 2012 1:41 pm
by ronix
Dears....

I upgrade my bandwidth & editing the mangle rules...
tell now every thing is OK but I must Watching it for 24 to 48 hours...


Robotics909 : I did't use ftp, try to use dstnat rule in NAT