> I build a loadbalancer using DNAT.
> iptables -t nat -A PREROUTING -s 10.10.10.254 -d 192.168.0.3 -p tcp
> --dport 80 -j DNAT --to-destnation 172.18.10.1
> i need to use anonther real server 172.18.10.2 for the next request in a
> round robin fashion.

You can add a match like "-m nth --every 2", but you probably want to
look at LinuxVirtualServer.org, which implements a real load balancer
using netfilter. There is support for peristent connections, weights,
adding in health checks, and all sorts of other features.

thornton
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to