Routing to Multiple Providers with Linux? 21
"To that end, I did a little searching and came up with a few items to help me along the way. First, I had to download the iproute2 package, add a routing table for multipath routing based on this example, and do some interface/packet matching using this information. Unfortunately, none of this seems sufficient to do what I want. Based on what I've read, the issue lies in source address selection. If the multipath table is my default table, I think it chooses the source address based on the weights of the hops in that route. Even with interface selection rules (ip rule add dev eth0 table ...) the issue (routing problems to/from linux box) persists. While I am using the 2.2.19 kernel, I would consider moving to a newer kernel iff I can achieve my goal with it.
Based on the above, my question is this: Has anyone successfully configured their home network as described above under linux? I am interested in knowing how to do it."
Re:BGP (Score:2)
Re:God, are you are so geeky its scary. (Score:3)
--
You missed... (Score:2)
...the "iff" used in a gramatically correct manner, too.
No one should ever use "iff" in speech unless you're talking about flying fighter planes.
This space for rent. Call 1-800-STEAK4U
You could always use NAT. (Score:1)
If you can make the interfaces go down or the NAT rules change or something when the connection drops, you've got (semi-) reliable internet access.
--
Multihomed Consumer Internet (Score:2)
Is everyone sure that this is the case???
Re:BGP (Score:2)
On top of that problem, a majority of these types of providers use non-portable IP space which would make the BGP feed useless anyway.
Re:BGP (Score:2)
BGP (Score:4)
Look at other options... (Score:3)
You could also co-locate an external machine with a static IP, and form a vpn with it with your two links. Perhaps you could even find a host that could set that up for you for less than the cost of co-location. I know, bad latency, but do you really expect to have all three: Fast connection, low latency, low cost?
Part of the issue is that you're trying to take two consumer grade connections and create one business-grade connection. This isn't a 1+1=2 situation at all, you'll be lucky if 1+1=1.25 in your case, and if it is what you choose to do then you might as well use it for automatic failover with the associated glitch of losing any current tcp sessions when it switches. There is just no easy way to get around that with two dynamic IP connections and nothing else. If you can get your cable company(s) to give you static IPs, you might be able to finagle a few things, but you will not be able to mess with the many routers that you'd have to reconfigure to have completely transparent failover.
Often you will get what you pay for in this business, and what you are asking for is going to cost you either:
1) Try to make two broken connections equal one good connection: Work with your software and service providers and get things going (40+ hours, and ongoing problems, say 2-4hours/mo, as well as your connection fees of $80/mo or so) or
2) Skip the pain and simply do it right the first time: Get a dedicated business class connection with gurantees for $120/mo or more depending on your connection speed. A T1 (fractional, burstable, there are lots of options that reduce your cost) is surprisingly affordable these days, if you want better latency and reliability.
But then, your time and effort may be worth less than $10 an hour to you.
-Adam
This sig 80% recycled bits, 20% post user.
Re:Failover rather than multihoming (Score:1)
In addition, you can configure the routing table to basically use round robin on the two lines, so one connection will go out over one line, and the next over another. Note that this is at the connection/session level, not the packet level. So once you start a download (or upload) those packets will always come in (or go out) over the same interface. Your load balance won't be as good as packet by packet routing, but you should still see increased throughput. Might as well make use of the bandwidth, if you've got it..
Try this.... (Score:3)
Re:Failover rather than multihoming (Score:1)
Small LAN solution (Score:1)
--
Paul Gillingwater
Re:Not a chance (OK, very slim chance) (Score:1)
Re:BGP (Score:2)
You don't want BGP.
But if you did, try GNU Zebra as a nice alternative for all your heavy-duty rouing needs. (GNU Zebra homepage: http://www.zebra.org, site seems to be down at the moment)
--
News for geeks in Austin: www.geekaustin.org [geekaustin.org]
Failover rather than multihoming (Score:5)
You have 2 basic problems with this scheme:
The way I would go about that goal is:
Re:Not a chance (OK, very slim chance) (Score:2)
So you're a karma whore, eh? For the right price, I'll be a karma pimp...
Not a chance (OK, very slim chance) (Score:3)
I know that this how things sounds harsh and cruel, but the truth of it is that it's probably not going to happen the way that you want.
So you're a karma whore, eh? For the right price, I'll be a karma pimp...
God, are you are so geeky its scary. (Score:4)
You are sad, very sad.
I have RoadRunner, it only goes out when the electric does, so I can't use it anyways.
Oops, I forgot, you have your basement filled with leadAcid batterys so you will never be without a computer.
Lemme guess, you also have an I-opener in the Crapper so you can check your e-mail when "Other" business arises.
Go outside, get some fresh air, take a walk, something, but don't pay 40$ a month so you will have a backup connection for a few hours a month or so. Thats redicoulas.
IF you really want to, I would use Freesco, it allows connecting 3 networks together, and it just sees the cable modem as a network, I use it right now, ( I have it running on a p75 with 4 megs Ram) and it works great, Runs Linux, and was a sinch to install.
DynDns and a dial up.. (Score:1)
Get a cheap dial up 56k service or dsl or whatever for your budget.. then you should be able to write some simple scripts to bring up the backup connection when the primary fails.. change your outgoing routes.. and for incoming connections use the DynDns [dyndns.org] service to handle your domain(s). They have a service that allows them to host your domain and tie the IP into their dynamic dns service...
freesco (Score:1)