Load balancing

Visham Ramsurrun vishamr2000 at gmail.com
Mon Apr 4 11:46:20 CEST 2005

Hi to all,

I have this rule:

iptables -t nat -A PREROUTING -i eth0 -o eth1 -d -j dnat

It is supposed to be load balancing by taking the traffic from the
host ( which this rule is used and balancing between the
PCs with the ip addrs specified by the ip addr range

What I would like to know what will happen if I apply this rule on the
PCs doing the load balancing ( 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 (>|                 |    |                                            | ROUTER   |
                           -------- PC1 (>|__________|

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


More information about the netfilter mailing list