LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] what happens if real servers in lvs/nat as a client to acces

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] what happens if real servers in lvs/nat as a client to access Internet?
From: "XUFENG" <xufengnju@xxxxxxxx>
Date: Thu, 5 Mar 2009 11:35:30 +0800
Hi all,
We want to set up the following:

Internet server: 111.111.111.111 sshd port:22
LoadBalancer VIP 122.122.122.122:80 (eth0)
LoadBalancer DIP 10.0.0.9 (eth1)
Real server1:10.0.0.10(eth1) httpd port:80
On LoadBalancer we have iptables with no rules at all.(Default ACCEPT).
On Real server1 we set the default gateway as 10.0.0.9, also we have
iptables with no rules at all.(Default ACCEPT).

I know it works well if clients from outside world access services provided
on VIP:80.
But what happens on loadbalancer (which has no iptables NAT rules in itself)
if real servers(10.0.0.10) in lvs/nat as a client to access
Internet(111.111.111.111:22)?
How are the packets changed or handled on loadbalancer when it receives
requests from 10.0.0.10 with a dst address 111.111.111.111 dst port 22 and
receives responses from 111.111.111.111?
Thanks in advance.

Yours,
XUFENG
>From China.




_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

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