hello sir,
I am having an LVS -NAT server with two mail servers (acting as real servers)
connected through a hub.I am doing a lab test before implementing it
practically on a large network.I had installed kernel 2.4.28 and installed
iptables from CD and ipvsadm-1.21.9108.i386.rpm from a website.Ethernet address
eth1 of external LAN interface of virtual server is 10.11.150.82and Internal
interface eth0 is 10.11.151.98(which is the default gateway of mail servers
also)..The two mail servers are having address 10.11.151.96 , 10.11.151.99.Then
I used following commands:-
service iptables start, iptables -t -nat -P POSTROUTING DROP ,iptables -t nat
-A POSTROUTING -o eth1 -j MASQUERADE ,ipvsadm -A -t 10.11.150.82:110 -s
wlc,ipvsadm -A -t 10.11.150.82:25 -s wlc.Where port 25 and 110 are for SMTP &
POP respectively.then I used:-
ipvsadm -a -t 10.11.150.82:110:110 -r 10.11.151.96 -m ,ipvsadm -a -t
10.11.150.82:25 -r 10.11.151.96 -m, Similarly for the other mail server with
the weight of 2.
But when i am accessing the LVS network from client machines it is not
connecting to it at all. What could be the problem ,sir.Independently mail
servers are working .
Yahoo! India Matrimony: Find your life partneronline.
|