[lvs-users] help on ipvs nat

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


hello,

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

http://www.linuxvirtualserver.org/VS-NAT.html

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 172.16.0.0/24 -d 0.0.0.0/0

Add virtual service and link a scheduler to it

        ipvsadm -A -t 202.103.106.5:80 -s wlc  (Weighted
Least-Connection scheduling)
        ipvsadm -A -t 202.103.106.5:21 -s wrr  (Weighted Round Robing
scheduling )

Add real server and select forwarding method

        ipvsadm -a -t 202.103.106.5:80 -r 172.16.0.2:80 -m
        ipvsadm -a -t 202.103.106.5:80 -r 172.16.0.3:8000 -m -w 2
        ipvsadm -a -t 202.103.106.5:21 -r 172.16.0.2:21 -m



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

Thanks!




More information about the lvs-users mailing list