All of lore.kernel.org
 help / color / mirror / Atom feed
* Load balancing
  2001-01-04 10:43 WOOHOO!!!!!! IDEDMA Timeouts!! Andre Hedrick
@ 2001-01-04 11:31 ` John Brosnan
  0 siblings, 0 replies; 19+ messages in thread
From: John Brosnan @ 2001-01-04 11:31 UTC (permalink / raw)
  To: linux-kernel; +Cc: John Brosnan


Hi, 

I've been using Linux bridging (from Lennert Buytenhek) on 
a 2.2.16 kernel for a while now and it seems to work fine. 

Anybody know of any way I could implement
some sort of load balancing over multiple
ethernet ports ? Maybe I could use bridging ?

Thanks in advance for any help. 

John.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 19+ messages in thread

* load balancing
@ 2003-02-03 13:49 Sander Sneekes
  2003-02-03 14:35 ` Sander Sneekes
  0 siblings, 1 reply; 19+ messages in thread
From: Sander Sneekes @ 2003-02-03 13:49 UTC (permalink / raw)
  To: Netfilter Mailing List

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

Hi all,

I need to load balance between 2 webserver 
what is the most fastest way of doing this?
With iptables? if yes wich line's do i need to use
i have a RH 7.2 with iptables running already doing
al network traffic

cheers
Sander

[-- Attachment #2: Type: text/html, Size: 498 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: load balancing
  2003-02-03 13:49 load balancing Sander Sneekes
@ 2003-02-03 14:35 ` Sander Sneekes
  2003-02-03 16:30   ` Daniel F. Chief Security Engineer -
  0 siblings, 1 reply; 19+ messages in thread
From: Sander Sneekes @ 2003-02-03 14:35 UTC (permalink / raw)
  To: Netfilter Mailing List

[-- Attachment #1: Type: text/plain, Size: 705 bytes --]

currently i'm using this line

iptable -t nat -A PREROUTING -d X.X.X.X -p tcp --dport http -j DNAT
--to-dest 192.168.0.100-192.168.0.111

this this the job but the if i use the same client it always uses 100
for ex. 

but we need to do some preformance test with 3 client's so everytime a
client
does a reqeust to the http server i want to get it for a different
server.

anybody ?

thanks
Sander


On Mon, 2003-02-03 at 14:49, Sander Sneekes wrote:

> Hi all,
> 
> I need to load balance between 2 webserver 
> what is the most fastest way of doing this?
> With iptables? if yes wich line's do i need to use
> i have a RH 7.2 with iptables running already doing
> al network traffic
> 
> cheers
> Sander

[-- Attachment #2: Type: text/html, Size: 1130 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: load balancing
  2003-02-03 14:35 ` Sander Sneekes
@ 2003-02-03 16:30   ` Daniel F. Chief Security Engineer -
  2003-02-04 15:35     ` Sander Sneekes
  0 siblings, 1 reply; 19+ messages in thread
From: Daniel F. Chief Security Engineer - @ 2003-02-03 16:30 UTC (permalink / raw)
  To: Sander Sneekes, Netfilter Mailing List

Im going to be working on one of these later this year it's my understanding 
that you would want to use the nth patch and the state table and SNAT to 
accoplish this. 

From the nth patch.
------------------------
2) Unique rule for every packet.  This is an easy and quick
   method to produce load-balancing for both inbound and outbound.
   example:
   iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7              
--every 3 --packet 0 -j SNAT --to-source 10.0.0.5
   iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7              
--every 3 --packet 1 -j SNAT --to-source 10.0.0.6
   iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7              
--every 3 --packet 2 -j SNAT --to-source 10.0.0.7
   This example evenly splits connections between the three SNAT
   addresses.

   By using the mangle table and iproute2, you can setup complex
   load-balanced routing.
------------------------

Here's a site with good infos on the patches available.
http://www.netfilter.org/documentation/HOWTO//netfilter-extensions-HOWTO.html

Hope this helps. 

On Monday 03 February 2003 08:35, Sander Sneekes wrote:
> currently i'm using this line
>
> iptable -t nat -A PREROUTING -d X.X.X.X -p tcp --dport http -j DNAT
> --to-dest 192.168.0.100-192.168.0.111
>
> this this the job but the if i use the same client it always uses 100
> for ex.
>
> but we need to do some preformance test with 3 client's so everytime a
> client
> does a reqeust to the http server i want to get it for a different
> server.
>
> anybody ?
>
> thanks
> Sander
>
> On Mon, 2003-02-03 at 14:49, Sander Sneekes wrote:
> > Hi all,
> >
> > I need to load balance between 2 webserver
> > what is the most fastest way of doing this?
> > With iptables? if yes wich line's do i need to use
> > i have a RH 7.2 with iptables running already doing
> > al network traffic
> >
> > cheers
> > Sander

-- 
Daniel Fairchild - Chief Security Engineer | danielf@supportteam.net
The distance between nothing and infinity is always the same no matter how 
close you get to nothing.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: load balancing
  2003-02-03 16:30   ` Daniel F. Chief Security Engineer -
@ 2003-02-04 15:35     ` Sander Sneekes
  0 siblings, 0 replies; 19+ messages in thread
From: Sander Sneekes @ 2003-02-04 15:35 UTC (permalink / raw)
  To: Daniel F. Chief   Security Engineer -; +Cc: Netfilter Mailing List

[-- Attachment #1: Type: text/plain, Size: 2167 bytes --]

yepz thank daniel got the stuff working

also will the a deeper look to iproute

thx sander

On Mon, 2003-02-03 at 17:30, Daniel F. Chief Security Engineer - wrote:

> Im going to be working on one of these later this year it's my understanding 
> that you would want to use the nth patch and the state table and SNAT to 
> accoplish this. 
> 
> From the nth patch.
> ------------------------
> 2) Unique rule for every packet.  This is an easy and quick
>    method to produce load-balancing for both inbound and outbound.
>    example:
>    iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7              
> --every 3 --packet 0 -j SNAT --to-source 10.0.0.5
>    iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7              
> --every 3 --packet 1 -j SNAT --to-source 10.0.0.6
>    iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7              
> --every 3 --packet 2 -j SNAT --to-source 10.0.0.7
>    This example evenly splits connections between the three SNAT
>    addresses.
> 
>    By using the mangle table and iproute2, you can setup complex
>    load-balanced routing.
> ------------------------
> 
> Here's a site with good infos on the patches available.
> http://www.netfilter.org/documentation/HOWTO//netfilter-extensions-HOWTO.html
> 
> Hope this helps. 
> 
> On Monday 03 February 2003 08:35, Sander Sneekes wrote:
> > currently i'm using this line
> >
> > iptable -t nat -A PREROUTING -d X.X.X.X -p tcp --dport http -j DNAT
> > --to-dest 192.168.0.100-192.168.0.111
> >
> > this this the job but the if i use the same client it always uses 100
> > for ex.
> >
> > but we need to do some preformance test with 3 client's so everytime a
> > client
> > does a reqeust to the http server i want to get it for a different
> > server.
> >
> > anybody ?
> >
> > thanks
> > Sander
> >
> > On Mon, 2003-02-03 at 14:49, Sander Sneekes wrote:
> > > Hi all,
> > >
> > > I need to load balance between 2 webserver
> > > what is the most fastest way of doing this?
> > > With iptables? if yes wich line's do i need to use
> > > i have a RH 7.2 with iptables running already doing
> > > al network traffic
> > >
> > > cheers
> > > Sander

[-- Attachment #2: Type: text/html, Size: 2666 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Load balancing
@ 2003-03-17 21:29 Walsh, Ed
  2003-03-17 21:44 ` Nathan
  2003-03-18  7:48 ` Jamie Harris
  0 siblings, 2 replies; 19+ messages in thread
From: Walsh, Ed @ 2003-03-17 21:29 UTC (permalink / raw)
  To: linux-admin

Hi all,

Does anyone know of a very good way to do website load balancing? I don't
want to use apache mods to do this. I thought of Beowulf Clustering but I'm
not exactly sure if this will work since it's last updated info is 1998
(anything recent?).

I'm running a farm of RedHat Linux 7.1 and 7.3. Any advice is much
appreciated.

Thanks, 

Ed Walsh
Senior System Engineer
Wrenchead.com
email: ewalsh@wrenchead.com


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Load balancing
  2003-03-17 21:29 Load balancing Walsh, Ed
@ 2003-03-17 21:44 ` Nathan
  2003-03-18  7:48 ` Jamie Harris
  1 sibling, 0 replies; 19+ messages in thread
From: Nathan @ 2003-03-17 21:44 UTC (permalink / raw)
  To: Walsh, Ed; +Cc: linux-admin


Hi Ed,

> Does anyone know of a very good way to do website load balancing? I don't
> want to use apache mods to do this. I thought of Beowulf Clustering but I'm
> not exactly sure if this will work since it's last updated info is 1998
> (anything recent?).

The best place to start is: http://www.linux-ha.org/ I have found that
site to be an invaluable resource. The strategy we implemented was having
font end load balancing servers in front of a cluster of machines that serve
content.

> I'm running a farm of RedHat Linux 7.1 and 7.3. Any advice is much
> appreciated.
>
> Thanks,
>
> Ed Walsh
> Senior System Engineer
> Wrenchead.com
> email: ewalsh@wrenchead.com
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

-- 

I'm as confused as a baby in a topless bar !

--


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Load balancing
  2003-03-17 21:29 Load balancing Walsh, Ed
  2003-03-17 21:44 ` Nathan
@ 2003-03-18  7:48 ` Jamie Harris
  1 sibling, 0 replies; 19+ messages in thread
From: Jamie Harris @ 2003-03-18  7:48 UTC (permalink / raw)
  To: ewalsh; +Cc: linux-admin

> Does anyone know of a very good way to do website load balancing? I
> don't want to use apache mods to do this. I thought of Beowulf
> Clustering but I'm not exactly sure if this will work since it's last
> updated info is 1998 (anything recent?).

You might find http://www.linuxvirtualserver.org/ useful, also at the end
of the Adv-Routing-HOWTO there is a section on failover servers.

cheers

Jamie...

-- 
**  This message was transmitted on 100% recycled electrons **




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Load Balancing
@ 2003-04-02 10:59 Allan de Borde
  0 siblings, 0 replies; 19+ messages in thread
From: Allan de Borde @ 2003-04-02 10:59 UTC (permalink / raw)
  To: netfilter

I am trying to test the load balancing on a test machine with 2 external 2Mb Internet links and it doesn't appear to be working. I am using RedHat 8.0 and get this message when doing ip route list:

default equalize
        nexthop via xxx.xxx.xxx.xxx  dev eth1 weight 1 dead onlink pervasive
        nexthop via xxx.xxx.xxx.xxx  dev eth0 weight 1 onlink

I have read a similar problem from this list and it appears that the RedHat RPM of iproute2 (iproute-2.4.7-5) is broken and this was resolved by installing a newer version of iproute.

As I am very new to some aspects of Linux could someone inform me of how to compile and install iproute as it asks for you to change the KERNEL_INCLUDE directory in the Makefile and I have no idea where the Kernel include directory is. I can't get it to make.

I have downloaded and installed iproute-2.4.7-7.rpm but this also has the same problems.

Cheers
Allan







^ permalink raw reply	[flat|nested] 19+ messages in thread

* Load Balancing
@ 2003-04-02 11:16 Allan de Borde
  2003-04-02 16:43 ` Matthew G. Marsh
  0 siblings, 1 reply; 19+ messages in thread
From: Allan de Borde @ 2003-04-02 11:16 UTC (permalink / raw)
  To: netfilter

I am trying to test the load balancing on a test machine with 2 external 2Mb Internet links and it doesn't appear to be working. I am using RedHat 8.0 and get this message when doing ip route list:

default equalize
        nexthop via xxx.xxx.xxx.xxx  dev eth1 weight 1 dead onlink pervasive
        nexthop via xxx.xxx.xxx.xxx  dev eth0 weight 1 onlink

I have read a similar problem from this list and it appears that the RedHat RPM of iproute2 (iproute-2.4.7-5) is broken and this was resolved by installing a newer version of iproute.

As I am very new to some aspects of Linux could someone inform me of how to compile and install iproute as it asks for you to change the KERNEL_INCLUDE directory in the Makefile and I have no idea where the Kernel include directory is. I can't get it to make.

I have downloaded and installed iproute-2.4.7-7.rpm but this also has the same problems.

Cheers
Allan







^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Load Balancing
@ 2003-04-02 15:24 Carlos Ble
  0 siblings, 0 replies; 19+ messages in thread
From: Carlos Ble @ 2003-04-02 15:24 UTC (permalink / raw)
  To: netfilter

>I am trying to test the load balancing on a test machine with 2 external 2Mb 
>Internet links and it doesn't appear to be working. I am using RedHat 8.0 
>and get this message when doing ip route list:
>
>default equalize
>       nexthop via xxx.xxx.xxx.xxx  dev eth1 weight 1 dead onlink pervasive
>       nexthop via xxx.xxx.xxx.xxx  dev eth0 weight 1 onlink
>
>I have read a similar problem from this list and it appears that the RedHat 
>RPM of iproute2 (iproute-2.4.7-5) is broken and this was resolved by 
>installing a newer version of iproute.
>
>As I am very new to some aspects of Linux could someone inform me of how to 
>compile and install iproute as it asks for you to change the KERNEL_INCLUDE 
>directory in the Makefile and I have no idea where the Kernel include 
>directory is. I can't get it to make.

>I have downloaded and installed iproute-2.4.7-7.rpm but this also has the 
>same problems.

>Cheers
>Allan

When you install the kernel source, the kernel_include directory uses to be 
placed in /usr/src/linux-2.4.20/include or something like that.
Are you sure you are typing the commands properly ?.
Here you are an example:
ip route add table balancing eql nexthop via <eth2-ip> dev eth2 nexthop via
 <eth3-ip> dev eth3

Good luck!

                                       




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Load Balancing
  2003-04-02 11:16 Allan de Borde
@ 2003-04-02 16:43 ` Matthew G. Marsh
  0 siblings, 0 replies; 19+ messages in thread
From: Matthew G. Marsh @ 2003-04-02 16:43 UTC (permalink / raw)
  To: Allan de Borde; +Cc: netfilter

On Wed, 2 Apr 2003, Allan de Borde wrote:

> I am trying to test the load balancing on a test machine with 2 external
> 2Mb Internet links and it doesn't appear to be working. I am using
> RedHat 8.0 and get this message when doing ip route list:
>
> default equalize
>         nexthop via xxx.xxx.xxx.xxx  dev eth1 weight 1 dead onlink pervasive
>         nexthop via xxx.xxx.xxx.xxx  dev eth0 weight 1 onlink
>
> I have read a similar problem from this list and it appears that the
> RedHat RPM of iproute2 (iproute-2.4.7-5) is broken and this was resolved
> by installing a newer version of iproute.
>
> As I am very new to some aspects of Linux could someone inform me of how
> to compile and install iproute as it asks for you to change the
> KERNEL_INCLUDE directory in the Makefile and I have no idea where the
> Kernel include directory is. I can't get it to make.

KERNEL_INCLUDE=/usr/src/linux

Even RH symlinks /usr/src/linux to the appropriate version of kernel
installed. Make sure that you have installed the kernel development RPM as
that has the actual include files. Not installed by default unless you
installed the Developer workstation.

> I have downloaded and installed iproute-2.4.7-7.rpm but this also has the same problems.
>
> Cheers
> Allan
>
>
>
>
>
>

--------------------------------------------------
Matthew G. Marsh,  President
Paktronix Systems LLC
1506 North 59th Street
Omaha  NE  68104
Phone: (402) 553-2288
Email: mgm@paktronix.com
WWW:  http://www.paktronix.com
--------------------------------------------------


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Load Balancing
@ 2003-04-03  7:40 Allan de Borde
  0 siblings, 0 replies; 19+ messages in thread
From: Allan de Borde @ 2003-04-03  7:40 UTC (permalink / raw)
  To: mgm; +Cc: netfilter

Thanks,

I didn't have the Kernel Development installed so installed it and then I could compile the latest iproute.
With this version of iproute the ip route list command has lost the dead onlink pervasive message
and it all looks ok. I will have to test further but it's looking good.

Cheers,
Allan 

>>> "Matthew G. Marsh" <mgm@paktronix.com> 04/02/03 05:43pm >>>
On Wed, 2 Apr 2003, Allan de Borde wrote:

> I am trying to test the load balancing on a test machine with 2 external
> 2Mb Internet links and it doesn't appear to be working. I am using
> RedHat 8.0 and get this message when doing ip route list:
>
> default equalize
>         nexthop via xxx.xxx.xxx.xxx  dev eth1 weight 1 dead onlink pervasive
>         nexthop via xxx.xxx.xxx.xxx  dev eth0 weight 1 onlink
>
> I have read a similar problem from this list and it appears that the
> RedHat RPM of iproute2 (iproute-2.4.7-5) is broken and this was resolved
> by installing a newer version of iproute.
>
> As I am very new to some aspects of Linux could someone inform me of how
> to compile and install iproute as it asks for you to change the
> KERNEL_INCLUDE directory in the Makefile and I have no idea where the
> Kernel include directory is. I can't get it to make.

KERNEL_INCLUDE=/usr/src/linux

Even RH symlinks /usr/src/linux to the appropriate version of kernel
installed. Make sure that you have installed the kernel development RPM as
that has the actual include files. Not installed by default unless you
installed the Developer workstation.

> I have downloaded and installed iproute-2.4.7-7.rpm but this also has the same problems.
>
> Cheers
> Allan
>
>
>
>
>
>

--------------------------------------------------
Matthew G. Marsh,  President
Paktronix Systems LLC
1506 North 59th Street
Omaha  NE  68104
Phone: (402) 553-2288
Email: mgm@paktronix.com 
WWW:  http://www.paktronix.com 
--------------------------------------------------








^ permalink raw reply	[flat|nested] 19+ messages in thread

* LOAD BALANCING
@ 2003-07-12 19:05 Javier Govea
  0 siblings, 0 replies; 19+ messages in thread
From: Javier Govea @ 2003-07-12 19:05 UTC (permalink / raw)
  To: netfilter

Hi everybody,

I'm trying load balance the traffic on four ppp interfaces using iproute-2.4.7-9 but i'm
always getting a "dead pervasive" error message on my third interface (see below.) I'm
running redhat 9 with kernel 2.4.20-8. 

I read some messages posted on this mailing list and they said the problem can be fixed by
getting the iproute source code, compiling it, and installing it. But i already did that
and i'm still getting the same problem. Any suggestions or ideas????

Here is what i'm typing:

ip route add default equalize \
   nexthop via nexthop xxx.xxx.xxx.xxx dev ppp0 weigth 1 \
   nexthop via nexthop xxx.xxx.xxx.xxx dev ppp1 weight 1 \
   nexthop via nexthop xxx.xxx.xxx.xxx dev ppp2 weight 1 \
   nexthop via nexthop xxx.xxx.xxx.xxx dev ppp3 weight 1

Here is what i'm getting:

default equalize
     nexthop via xxx.xxx.xxx.xxx dev ppp0 weight 1
     nexthop via xxx.xxx.xxx.xxx dev ppp1 weight 1
     nexthop via xxx.xxx.xxx.xxx dev ppp2 weight 1 dead pervasive
     nexthop via xxx.xxx.xxx.xxx dev ppp3 weight 1

Thanx to all
X


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Load Balancing
       [not found] <41BDA86F.8070108@rocsys.com>
@ 2004-12-13 14:19 ` Trent Lloyd
  0 siblings, 0 replies; 19+ messages in thread
From: Trent Lloyd @ 2004-12-13 14:19 UTC (permalink / raw)
  To: Ravi Kumar; +Cc: linux-kernel

Hi,

You might want to look at LVS 'Linux Virtual Server' and related
projects, I can't recall the sites offhand but theres stuff linked from
www.ultramonkey.org

Cheers,
Trent

On Mon, Dec 13, 2004 at 08:04:23PM +0530, Ravi Kumar wrote:
> Hi,
>  After going thro Linux Advanced Routing Howto, I understand 
> Loadbalancing is done but not so effective, the Howto gave a link for 
> patch but unfortunately I am not able to locate a patch for 2.4.18-14 
> kernel version.
> 
> Can you provide me pointers/links for a effective load balancing in 
> linux-2.4.18 kernel.
> 
> Thanks,
> -Ravi
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Trent Lloyd <lathiat@bur.st>
Bur.st Networking Inc.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Load balancing.
@ 2005-04-03 19:17 szpak
  2005-04-03 20:49 ` Pablo Neira
  2005-04-04  3:23 ` Grant Taylor
  0 siblings, 2 replies; 19+ messages in thread
From: szpak @ 2005-04-03 19:17 UTC (permalink / raw)
  To: netfilter

Hello.

I need help with I think something very easy to do with Iptables.

I need to have load balancing via nat for two or more ISP as in chart:

                           ------ ISP1
                          |          128.0.0.0/30        
<MY NET>---->[Linux NAT]-------- ISP2
192.168.0.0/24     |      80.0.0.0/30
                           ------ ISP3
                                   85.0.0.0/30

I have some users on my side and I want them to simply load balance trafic
from them via those three ISP's.  How to do that, is there a way to have three default static routes?

Thank You for any help it will be very usefull.

Xperience



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Load balancing.
  2005-04-03 19:17 szpak
@ 2005-04-03 20:49 ` Pablo Neira
  2005-04-04  3:23 ` Grant Taylor
  1 sibling, 0 replies; 19+ messages in thread
From: Pablo Neira @ 2005-04-03 20:49 UTC (permalink / raw)
  To: szpak; +Cc: netfilter

szpak wrote:
> Hello.
> 
> I need help with I think something very easy to do with Iptables.
> 
> I need to have load balancing via nat for two or more ISP as in chart:
> 
>                            ------ ISP1
>                           |          128.0.0.0/30        
> <MY NET>---->[Linux NAT]-------- ISP2
> 192.168.0.0/24     |      80.0.0.0/30
>                            ------ ISP3
>                                    85.0.0.0/30
> 
> I have some users on my side and I want them to simply load balance trafic
> from them via those three ISP's.  How to do that, is there a way to have three default static routes?

This is not related to iptables itself. Have a look at iproute.

http://lartc.org/howto/

--
Pablo


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Load balancing.
  2005-04-03 19:17 szpak
  2005-04-03 20:49 ` Pablo Neira
@ 2005-04-04  3:23 ` Grant Taylor
  1 sibling, 0 replies; 19+ messages in thread
From: Grant Taylor @ 2005-04-04  3:23 UTC (permalink / raw)
  To: szpak; +Cc: netfilter

You are wanting something like Equal Cost Multi Path routing and it's corresponding "ip route" commands.



Grant. . . .

szpak wrote:
> Hello.
> 
> I need help with I think something very easy to do with Iptables.
> 
> I need to have load balancing via nat for two or more ISP as in chart:
> 
>                            ------ ISP1
>                           |          128.0.0.0/30        
> <MY NET>---->[Linux NAT]-------- ISP2
> 192.168.0.0/24     |      80.0.0.0/30
>                            ------ ISP3
>                                    85.0.0.0/30
> 
> I have some users on my side and I want them to simply load balance trafic
> from them via those three ISP's.  How to do that, is there a way to have three default static routes?
> 
> Thank You for any help it will be very usefull.
> 
> Xperience
> 
> 
> 


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Load balancing
@ 2005-04-04  9:46 Visham Ramsurrun
  0 siblings, 0 replies; 19+ messages in thread
From: Visham Ramsurrun @ 2005-04-04  9:46 UTC (permalink / raw)
  To: netfilter

Hi to all,

I have this rule:

iptables -t nat -A PREROUTING -i eth0 -o eth1 -d 192.0.34.72 -j dnat
--to-destination 192.168.1.3-192.168.1.4

It is supposed to be load balancing by taking the traffic from the
host (192.168.1.2)on which this rule is used and balancing between the
PCs with the ip addrs specified by the ip addr range
192.168.1.3-192.168.1.4.

What I would like to know what will happen if I apply this rule on the
PCs doing the load balancing (192.168.1.3-192.168.1.4). The two PCs
are connected back to back with a cross-over cable. The interfaces
used for this connection are both eth1.

                                                                      
 __________
 <MY NET>---->    -------- PC2 (192.168.1.3)------->|                 |
 192.168.1.2/24    |                                            | ROUTER   |
                           -------- PC1 (192.168.1.4)------->|__________|

If I apply the above rule on PC (192.168.1.3 instead of MY NET, will
it still load balance the traffic on the two PCs.

Regards,
Visham


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2005-04-04  9:46 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-02 10:59 Load Balancing Allan de Borde
  -- strict thread matches above, loose matches on Subject: below --
2005-04-04  9:46 Load balancing Visham Ramsurrun
2005-04-03 19:17 szpak
2005-04-03 20:49 ` Pablo Neira
2005-04-04  3:23 ` Grant Taylor
     [not found] <41BDA86F.8070108@rocsys.com>
2004-12-13 14:19 ` Load Balancing Trent Lloyd
2003-07-12 19:05 LOAD BALANCING Javier Govea
2003-04-03  7:40 Load Balancing Allan de Borde
2003-04-02 15:24 Carlos Ble
2003-04-02 11:16 Allan de Borde
2003-04-02 16:43 ` Matthew G. Marsh
2003-03-17 21:29 Load balancing Walsh, Ed
2003-03-17 21:44 ` Nathan
2003-03-18  7:48 ` Jamie Harris
2003-02-03 13:49 load balancing Sander Sneekes
2003-02-03 14:35 ` Sander Sneekes
2003-02-03 16:30   ` Daniel F. Chief Security Engineer -
2003-02-04 15:35     ` Sander Sneekes
2001-01-04 10:43 WOOHOO!!!!!! IDEDMA Timeouts!! Andre Hedrick
2001-01-04 11:31 ` Load balancing John Brosnan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.