LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] help on ipvs nat

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] help on ipvs nat
From: "Ken W." <kenw97@xxxxxxxxx>
Date: Sat, 12 Jul 2008 22:45:41 +0800
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!


<Prev in Thread] Current Thread [Next in Thread>