_________ __________
| Client 1 | | Client 2 |
|________| |_________|
| 172.16.1.35 | 172.16.1.33
| |
|___________________ ___| Public Network
|
|
|eth0:0 172.16.1.106 (Virtual Server ip)
|eth0 172.16.1.105
____|_____
| Director | Director
|________|
| eth1 192.168.1.2
| eth1:0 192.168.1.205 (Router ip)
|
|
| eth0 192.168.1.3
___ |_____ Private Network
| Real Ser |
|_________|
Hi,
I patched the linux-2.2.19 kernel with the patch which comes in
ipvs-1.0.7-2.2.19.tar.gz and have compiled it with apropriate options. I
have also installed ipvsadm which came with ipvs-1.0.7-2.2.19.tar.gz
I have only one real server and one director with two NICs as shown in the
figure. I have enabled ip-forwarding. (ie I have given
net.ipv4.ip_forward = 1
in the /etc/sysctl.conf file. And I have given the following commands
ipvsadm -A -t 172.16.1.106:80 -s rr
ipvsadm -a -t 172.16.1.106:80 -r 192.168.1.3:80 -m
ipchains -A forward -j MASQ -s 192.168.1.0/24 -d 0.0.0.0/0
In the Real server I have set the default gateway as 192.168.1.205
When I browse the site with IE browser 172.16.1.106, I should get pages from
192.168.1.3 But I am not getting any pages.
ipvsadm -L -n command in the Director results the following.
IP Virtual Server version 1.0.7 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 172.16.1.106:80 rr
-> 192.168.1.3:80 Masq 1 0
0
ipchains -L -n command in the Director results the following.
Chain input (policy ACCEPT):
Chain forward (policy ACCEPT):
target prot opt source destination ports
MASQ all ------ 192.168.1.0/24 0.0.0.0/0 n/a
Chain output (policy ACCEPT):
tcpdump -nei eth0 port 80 command in the Director(eth0:0 172.16.1.106 )
results the following when i try to browse http://172.16.1.106
Kernel filter, protocol ALL, datagram packet socket
tcpdump: listening on eth0:0
21:29:08.185863 < 0:c0:ca:11:12:3d 0:0:0:0:0:1 ip 60: 172.16.1.33.1223 >
172.16.
1.106.http: S 3793457:3793457(0) win 8192 <mss 1460> (DF)
tcpdump -nei eth0 port 80 command in the Director(eth1 192.168.1.2) results
the following when i try to browse http://172.16.1.106
Kernel filter, protocol ALL, datagram packet socket
tcpdump: listening on eth1
21:40:06.448792 > 0:0:0:0:0:0 0:0:e8:49:5f:53 ip 58: 172.16.1.33.1264 >
192.168.
1.3.http: S 4460702:4460702(0) win 8192 <mss 1460> (DF)
21:40:09.391998 > 0:0:0:0:0:0 0:0:e8:49:5f:53 ip 58: 172.16.1.33.1264 >
192.168.
1.3.http: S 4460702:4460702(0) win 8192 <mss 1460> (DF)
tcpdump -nei eth0 port 80 command in the Real server(eth0 192.168.1.3)
results the following when i try to browse http://172.16.1.106
Kernel filter, protocol ALL, datagram packet socket
tcpdump: listening on eth0
22:08:54.660496 < 0:0:e8:49:5f:53 0:0:0:0:0:1 ip 60: 172.16.1.33.1283 >
192.168.
1.3.www: S 4928749:4928749(0) win 8192 <mss 1460> (DF)
22:08:57.648890 < 0:0:e8:49:5f:53 0:0:0:0:0:1 ip 60: 172.16.1.33.1283 >
192.168.
1.3.www: S 4928749:4928749(0) win 8192 <mss 1460> (DF)
So I think in the last two cases inteaded of the client ip(172.16.1.33) the
virtual ip(172.16.1.106) should have come.
So someone please breief be me where i am going wrong.
I thought of expanding this IPVS-NAT with more realservers and a backup
director. And I tried to install configure-lvs . When I give ./configure it
is giving the following error message.
Can't locate Net/DNS.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.0/i386-linux
/usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/si
te_perl/5.6.0 /usr/lib/perl5/site_perl .) at ./configure line 1229.
BEGIN failed--compilation aborted at ./configure line 1229.
I am very sorry for this long mail.
Thanks in advance
Schillaci
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
|