linux server as load-balanced gateway inside a network with 2 routers using only one network interface
hi,
i am planing to use my linux-file-server as getway for the lan
this file-server has 3 network interfaces:
Gigabit --> lan (switch)
Gigabit --> my computer
100Mbit --> lan (switch)
inside the lan there are two dsl router (my and my neighbours)
linux-file-server should do load-balancing using this routers to be the gateway to other pc in the lan and even do port-fowarding and qos (Quality of Service) for voice-over-ip
all this should be done over the 100mbit network interface
i would like to know if this is possible to do or not
ofcorse tips and hints would be great
thanks in advance
Georg form germany
Am Saturday, den 21 July hub Georg Hohenberger folgendes in die Tasten:
Hi!
Quoted 7 lines
i am planing to use my linux-file-server as getway for the lan
this file-server has 3 network interfaces:
Gigabit --> lan (switch) Gigabit --> my computer 100Mbit --> lan (switch)
Quoted 7 lines
inside the lan there are two dsl router (my and my neighbours)
linux-file-server should do load-balancing using this routers to be the gateway to other pc in the lan and even do port-fowarding and qos (Quality of Service) for voice-over-ip
all this should be done over the 100mbit network interface
Sorry, I don´t get what you want to do. What exactly should your file-server load-balance? The access to the internet using both DSL routers?
Ciao
Max
Signature · 1 line
Follow the white penguin.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Am Sunday, den 22 July hub Georg Hohenberger folgendes in die Tasten:
Hi!
Please reply to the list, so everone can answer and read the mail. I redirected the thread to the list again.
Quoted 7 lines
Quoted 3 lines · Maximilian Wilhelm
Sorry, I don´t get what you want to do. What exactly should your file-server load-balance? The access to the internet using both DSL routers?
yes, inside my lan there are 2 routers which schould be used by my server to do load-balancing to share a gateway to the other pc's in my lan
That should be possible.
The basic concept is to point the default gateway of all your boxes to your linux box and let the linux box decide where to push the traffic along.
If you just have two normal DSL lines you will most probably not be able to do *real* loadbalancing as your ISP would have to help you.
What you can do is to push different types of connections along the two routers, but you have to take care the a connection (e.g. a ssh session) is routed along the same path while active.
So you may want to set up two routing tables on your linux box (one for each DSL router which becomes default gateway in that table) and set up some iptables rules which decide which traffic should be routed via which routing table (think: DSL router).
Have a look at
http://lists.netfilter.org/pipermail/netfilter/2007-June/069142.html
to get an idea about how to set something like this up (It is not an exact example, just a similar one, but the general idea should become clear)
HTH
Ciao
Max
Signature · 1 line
Follow the white penguin.