lunarhotel.co.uk

How about a view of the sea of tranquility?

Sponsored Links
Part 1: Outbound routing over multiple internet connections PDF Print E-mail
Tag it:
Digg
Delicious
De.lirio.us
YahooMyWeb
Reddit
Article Index
Part 1: Outbound routing over multiple internet connections
Page 2: Getting a fairly basic router going
Page 3 : Routing tables
Page 4 : Finishing off

{mosignorehit}

 

This article deals with routing over two (or more) internet connections. There are many different ways of setting this up, including load balancing, auto fail over, and selective routing (routing depending on traffic type) configurations. The one I've detailed here features selective routing, and inbound routing. The inbound routing is actually slightly more difficult to do than the outbound routing, but once its set up would allow the ipsec vpn service to be available on both public ip addresses, or have dual access points to an internal web server

This configuration also allows mapping types of traffic to specific internet connections. For example, have all http traffic going out via internet connection 1 and all ftp traffic going out via internet connection 2.

 

Note: While I havent checked (and would love to be proved wrong) I dont think this is possible to do on a windows based pc. If you know any different, and care to share that information. Leave a comment at the end of the article

 


 

 

So, lets have some background:

"For example, have all http traffic going out via internet connection 1 and all ftp traffic going out via internet connection 2."
Lets say you have two internet connections (this could be two xdsl lines, or an adsl and a standard modem). If you want to utilise both lines, you have a problem, which takes the form of the gateway setting. You can only define one default gateway, and ergo it will only ever use that one (and ergo one internet connection) to service any internet requests. The routing table is obviously central to this process. You can list the routing table in linux by issuing the following command

 

ip route show table main

 

You'll note at the bottom of this table is an entry that look something like

 

default via <your gateway address> dev <internet device> 

 

Fortunatley, with Linux, its possible to set more than one routing table, which is key to routing over multiple internet connections. First, lets look at the pc we need to setup to act as our router. The one I used was a pentium 3 500mhz with 256MB RAM. into this I put 4 network cards. "Why 4?" I hear you ask! The work network has two subnets for reasons of security, The "Repro" network gets exposed to a lot of removable media, usb sticks and various other potentiall sources of viruses.  It also carries alot more traffic than the other, and requires a faster and better quality switch. So, we have:

 

 NetworkDescription Rangeeth
 Admin Normal admin network used by accounts, sales, purchasing etc...  192.168.2.0/24 eth3
 Repro
Higher risk, high data throughput network
 192.168.1.0/24 eth0
 Internet connection A 512k adsl
 192.168.4.0/24 eth2
 Internet connection B2Mb adsl  192.168.5.0/24 eth1

 

Of course, the two internal networks just add to the complication of things, but if you can get your head around all this, then you should be able to do the same with only one internal network range.

 


Last Updated ( Friday, 08 August 2008 )
 
Tag it:
Digg
Delicious
De.lirio.us
YahooMyWeb
Reddit
< Prev   Next >