I am experimenting with iptables on a virtual network set up on VMWare. The
NAT box is running Knoppix 3.6 (2.6 kernel). Everything works fine, except
I cannot get the NAT-box to distribute HTTP packets between two HTTP
servers which are set up on a private network. All the packets go to the
first server from the range (172.16.0.2). I have used the following command
to set up DNAT
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 172.16.0.2-
172.16.0.3
I have been looking around for a while and some sources said that iptables
actually does not do load balancing, although the HOWTO claims it does. I
have also found a complicated solution to this problem using additional
modules, but I would like to keep things as simple as possible.
Thanks for any suggestions or sources where I could find the necessary
information.
Pawel Niewiadomski
|