[lvs-users] help on ipvs nat

Ken W. kenw97 at gmail.com
Sat Jul 12 15:45:41 BST 2008


Is there a updated document for setting IPVS on NAT?
I got this one:


But it seems out of date.
It said,

To make the load balancer forward the masquerading packets

        echo 1 > /proc/sys/net/ipv4/ip_forward
        ipchains -A forward -j MASQ -s -d

Add virtual service and link a scheduler to it

        ipvsadm -A -t -s wlc  (Weighted
Least-Connection scheduling)
        ipvsadm -A -t -s wrr  (Weighted Round Robing
scheduling )

Add real server and select forwarding method

        ipvsadm -a -t -r -m
        ipvsadm -a -t -r -m -w 2
        ipvsadm -a -t -r -m

In the LD, do we need iptables/ipchains still (my linux kernel is 2.6.19)?


More information about the lvs-users mailing list