you should set ip_forward ON for nat by:
echo "1" > /proc/sys/net/ipv4/ip_forward
and turn off icmp redirectors by:
echo "0" >/proc/sys/net/ipv4/conf/all/send_redirects
cat /proc/sys/net/ipv4/conf/all/send_redirects
echo "0" >/proc/sys/net/ipv4/conf/default/send_redirects
cat /proc/sys/net/ipv4/conf/default/send_redirects
echo "0" >/proc/sys/net/ipv4/conf/eth0/send_redirects
cat /proc/sys/net/ipv4/conf/eth0/send_redirects
set default gw
/sbin/route add default gw 192.168.2.254 netmask 0.0.0.0 metric 1
----- Original Message -----
From: "Salah Abdulla" <salah@xxxxxxxxxxxxx>
To: "LinuxVirtualServer.org users mailing list."
<lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, November 06, 2003 3:42 PM
Subject: LVS-NAT
> Hi,
>
> I just download and installed kernel-2.4.20-20.7.hidd.ipvs110.i686.rpm and
> ipvsadm-1.21-7.i386.rpm.
> 207.175.44.110 is DIR and 192.168.10.1,2,3,4,5 are real server. Run the
> following command
>
> ipvsadm -A -t 207.175.44.110:80 -s rr
> ipvsadm -a -t 207.175.44.110:80 -r 192.168.10.1:80 -m
> ipvsadm -a -t 207.175.44.110:80 -r 192.168.10.2:80 -m
> ipvsadm -a -t 207.175.44.110:80 -r 192.168.10.3:80 -m
> ipvsadm -a -t 207.175.44.110:80 -r 192.168.10.4:80 -m
> ipvsadm -a -t 207.175.44.110:80 -r 192.168.10.5:80 -m
>
> Tested it and it is not working. Run netstat -a and cannot see port http is
> listening. Any advise please.
>
> Regards,
> Salah
>
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
>
|