Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
routing with two ISP's
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Sat Oct 22, 2005 1:49 pm    Post subject: routing with two ISP's Reply with quote

To reduce downtime I'm thinking of getting two dsl lines - from two different ISP's. That way, if one of them go down all trafic will be routed to the other one. When both are up they can share the load. (I guess this is called load balancing?)

I have some concerns about this.
With two isp's there will be two IP adresses. If a user on the local network have a open session, say a vpn connection, using webmail, ..., on an remote server - what happens if the load balancer is routing parts of the data in the same session over both connections? The remote server will see two different IP's, right? Will that break the session?

What about running ssh / mail / web servers on this type of connection? Does the servers need to be setup in any particilary way?

I was thinking of letting a gentoo box handle the routing. Is that a bad idea? How would I set it up to make this work?
Back to top
View user's profile Send private message
anjunod
n00b
n00b


Joined: 03 Jul 2004
Posts: 11

PostPosted: Sat Oct 22, 2005 2:00 pm    Post subject: Re: routing with two ISP's Reply with quote

petterg wrote:
With two isp's there will be two IP adresses. If a user on the local network have a open session, say a vpn connection, using webmail, ..., on an remote server - what happens if the load balancer is routing parts of the data in the same session over both connections? The remote server will see two different IP's, right? Will that break the session?
If your box has it ows public static IP, the other machines are like any other routers on the net. And your webmail is always speaking with the same end-client. But datas will take different path.

I don't know if you can do that with non static public IP.
-AJ
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Sat Oct 22, 2005 2:03 pm    Post subject: Re: routing with two ISP's Reply with quote

petterg wrote:
To reduce downtime I'm thinking of getting two dsl lines - from two different ISP's. That way, if one of them go down all trafic will be routed to the other one. When both are up they can share the load. (I guess this is called load balancing?)

I have some concerns about this.
With two isp's there will be two IP adresses. If a user on the local network have a open session, say a vpn connection, using webmail, ..., on an remote server - what happens if the load balancer is routing parts of the data in the same session over both connections? The remote server will see two different IP's, right? Will that break the session?

What about running ssh / mail / web servers on this type of connection? Does the servers need to be setup in any particilary way?

I was thinking of letting a gentoo box handle the routing. Is that a bad idea? How would I set it up to make this work?


What you want isn't really possibly without a higher level routing protocol called BGP. BGP is not trivial and you won't find any ISP that will do BGP over DSL, so you're basically screwed.

You can 'load balance' them, by splitting your outbound connections, but your inbound connections will be static, and services listening on those particular ip's will no longer respond if one of your dsl lines go down.
_________________
http://get.a.clue.de
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Sat Oct 22, 2005 2:51 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-383488-highlight-bgp.html

Here's a fairly lengthy discussion about a similar setup and the issues involved.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Sat Oct 22, 2005 7:03 pm    Post subject: Reply with quote

So outbound connections wold work fine then? I don't need to wory that vpn and ssh connections will randomly fall down because of the loadbalancing?

For mailserver I guess the incomming routing could be solved by using two MX records?

Outbound connections are the most important.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Oct 24, 2005 5:35 pm    Post subject: Reply with quote

Yeah for the most part that would work. The only issue might be checking your email. If you hit the IP that's down you don't get in. So you'd have to play DNS roulette till you got the up IP. Chances are this won't happen often so it's not a bad solution.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Tue Nov 08, 2005 8:47 am    Post subject: Reply with quote

I have some problems with making this outbound routing work.

First I tried this howto
http://lartc.org/howto/lartc.rpdb.multiple-links.html

Then this one:
http://www.ssi.bg/~ja/nano.txt

All other howto's seem to be the same as one of those. Even refering to them.

The problem is that it takes "forever" to switch over from a failed line to the working one. Once it did switch over after about 2 hours. The other times I've tested I've been waiting for 24 hours before giving up. (My way of testing is to unplug one of the network cables.)
Well, outbound connections is the problem. Inbound does actually work! (In the dns record I added two records for the testserver using the same host.domain.tld - one for each of its public ip's.)

Does anyone know of any other way to do loadbalancing / failover for outbound connections? (I'm using 2.6.13 kernel)
Back to top
View user's profile Send private message
midknight
n00b
n00b


Joined: 03 Dec 2005
Posts: 2

PostPosted: Sat Dec 03, 2005 11:45 pm    Post subject: Reply with quote

my setup is probably a little different then yours.. i was never able to get the advanced routing to work.
i ended up using two seperate routers for the incoming lines (cisco 2514) and they both go into an old cisco 4500M
both 2514's do natting to the 10 network i use on my lan.

so my mail server has .100 and .101
both IPs are on the same physical interface

so say ISP1 comes in gets natted to .100
ISP2 has a request.. it gets natted to .101

my 4500 has 3 interfaces, one for each router and one for the lan

the lan interface has a routemap asigned..
it basically says anything with source .100 ... set next hop ISP1 gateway
anything .101 set next hop ISP2 gateway...

it has worked like a treat
both my lines are DSL.. so no BGP.
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Mon Dec 05, 2005 9:21 am    Post subject: Reply with quote

midknight wrote:
my setup is probably a little different then yours.. i was never able to get the advanced routing to work.
i ended up using two seperate routers for the incoming lines (cisco 2514) and they both go into an old cisco 4500M
both 2514's do natting to the 10 network i use on my lan.


The is a nice way to go with incomming connections.
The reminding problem is still how to get around balancing outbound connections...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum