Community discussions

MikroTik App
 
engineertote
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Tue May 19, 2009 1:36 pm

Load Balance"use upload from ISP and download from other ISP

Sat May 14, 2011 12:25 pm

Hi to all

i have two ISPs and need to use the uplink from ISP1 and downlink from ISP2 , i have search in wike but didn't found anything helpful.

i do appreciate if any one past me any weki example or advice how to do the above config.


Regards
 
jtroybailey
Member Candidate
Member Candidate
Posts: 176
Joined: Thu Oct 07, 2010 10:24 am
Location: Brisbane, Australia

Re: Load Balance"use upload from ISP and download from other

Sat May 14, 2011 2:59 pm

sorry, but i don't think that than can be done. you would have a different source/destination address to start with. you could however "load balance" so half connections go through one and half use the other. someone correct me if I am wrong.
 
Sanity
Member Candidate
Member Candidate
Posts: 198
Joined: Sun Mar 06, 2011 8:51 am

Re: Load Balance"use upload from ISP and download from other

Sat May 14, 2011 4:09 pm

Hi to all

i have two ISPs and need to use the uplink from ISP1 and downlink from ISP2 , i have search in wike but didn't found anything helpful.

i do appreciate if any one past me any weki example or advice how to do the above config.


Regards
Ok, you are finished. As in fired. As in given a task that is impossible to do. Game over.

You can not do that, never ever. Only totally idiot ispä#s will accept packets not from their own address (so you can not send to isp 1 with the soruce address from isp2) and isp2 will not even get the return packets for the upload via isp1.

One address, one routing, one tcp link.
 
krakenant
Member Candidate
Member Candidate
Posts: 135
Joined: Sat Feb 06, 2010 6:32 am

Re: Load Balance"use upload from ISP and download from other

Mon May 16, 2011 4:09 pm

Not saying it is possible but if one wanted to do this, they would set their default route to use the default gateway for ISP 1 and then create a source NAT rule using the IP of the ISP 2 connection.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Load Balance"use upload from ISP and download from other

Mon May 16, 2011 4:26 pm

It's also possible with your own IP space tied to your own AS via BGP.
 
Sanity
Member Candidate
Member Candidate
Posts: 198
Joined: Sun Mar 06, 2011 8:51 am

Re: Load Balance"use upload from ISP and download from other

Mon May 16, 2011 6:18 pm

Not saying it is possible but if one wanted to do this, they would set their default route to use the default gateway for ISP 1 and then create a source NAT rule using the IP of the ISP 2 connection.
Ah, no. WIll not work. YOu can not establish a TCP connection when half of the connection is NATted. Incoming connections will not establish like this.
 
krakenant
Member Candidate
Member Candidate
Posts: 135
Joined: Sat Feb 06, 2010 6:32 am

Re: Load Balance"use upload from ISP and download from other

Tue May 17, 2011 5:13 pm

I was actually able to do it (on accident) with two modems on the same IP segment. IE the MikroTik will do it. Ended up fixing the issue and sending things where they needed to go properly, but it was working for a while.
 
defekt
just joined
Posts: 13
Joined: Wed May 31, 2006 4:43 pm
Location: Bulgaria

Re: Load Balance"use upload from ISP and download from other

Tue May 17, 2011 5:57 pm

there is 2 possible methods:
1. as Fewi mentioned, you need to have own AS and IP block
2. to put mikrotik router in datacenter with good connection and from your local router to establish 2 separate tunneled connection to it, one trough ISP1 and other trough ISP2 and to load-balance traffic over them.
In the 2nd way your clients Internet connection will exit from IP address of mikrotik router in the datacenter .
My second example is not best practice but it will work :) and will be expansive because u will pay for server in datacenter :(
Better pay for high speed connection from one ISP :)
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Load Balance"use upload from ISP and download from other

Mon Jun 06, 2011 1:31 am

Ah, no. WIll not work. YOu can not establish a TCP connection when half of the connection is NATted. Incoming connections will not establish like this.
sure they will: you may send outgoing packets of incoming connection via another gateway, if your're NATting on the same device; the main requirement is that uplink ISP not blocking your packets with wrong addresses. that's because NAT catches only new connection, and response packets is already established connection, so they won't be affected by src-nat
 
abbasito
just joined
Posts: 2
Joined: Fri Jun 10, 2016 5:41 pm

Re: Load Balance"use upload from ISP and download from other

Fri Jun 10, 2016 6:29 pm

there is 2 possible methods:
1. as Fewi mentioned, you need to have own AS and IP block
2. to put mikrotik router in datacenter with good connection and from your local router to establish 2 separate tunneled connection to it, one trough ISP1 and other trough ISP2 and to load-balance traffic over them.
In the 2nd way your clients Internet connection will exit from IP address of mikrotik router in the datacenter .
My second example is not best practice but it will work :) and will be expansive because u will pay for server in datacenter :(
Better pay for high speed connection from one ISP :)
Hello
i exactly need to setup option 2, to connect two machines via router OS, the first machine is datacenter server with Static IP, the second is local machine that will use two or more 4g modems with dynamic IP, and use vpn to send traffic to router os in the data center. i need to be able to do both load balancing, or upload on a wan link an download on another link. the purpose of my usage is VOIP.
where can i find a freelancer to seutup this for me?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Load Balance"use upload from ISP and download from other

Sun Jun 12, 2016 2:37 pm

where can i find a freelancer to seutup this for me?
http://www.mikrotik.com/consultants
 
abbasito
just joined
Posts: 2
Joined: Fri Jun 10, 2016 5:41 pm

Re: Load Balance"use upload from ISP and download from other ISP

Mon Jun 20, 2016 5:13 am

thank you.

Who is online

Users browsing this forum: No registered users and 20 guests