Load balancing SNAT

Joshua Snyder Joshua Snyder <josh@imagestream.com>
Tue, 3 Jul 2001 09:34:57 -0500 (EST)


I want to know if it is possible to do the following.  

			 Gateway      Network  
 Connection 1 ( t-1 )  *--------*
-----------------------|        |
		       |        |
                       | 2.4.*  |--------
 Connection 2 ( t-1 )  |        |
-----------------------|        |
		       *--------*


I would like to do a crude form of loadbalancing using SNAT.  I would like
to have the linux box Snat for the network, then I would like it to split
(think roundrobin Snating of new connections over each of the connections)
the connections from the network over both of the Internet lines.  I am
not thinking of a real application, but I have had more than one person
ask me if linux can do this.  I know I could split the network into 2
parts and use routing to push traffic down each pipe, but the goal would
be to balance the traffic as much as possible.  I know that at it's best
this would never put half of the traffic on each of the t-1's, but at
least you would be able to use both connections.  Is something like this
possible to do under linux?  

			josh