Hi.
I'm trying to setup LVS system and made a
success in LVS-NAT. I used three real servers(192.168.0.2 ~ 4), one
director(VIP:192.168.0.135, DIP:192.168.0.1), and two client
machines(192.168.0.5~6) - all of which are in the same network.
When I
configured LVS-NAT for http, all the clients can have access to LVS web server.
But when I'm trying to configure TUN and DR, I found that only the
client whose IP address is specified as a SERVER_GW can have access to the
LVS-ed web server and other client can't.
I read all the materials I can
find, but I can't find any solution.
What should I do?
Below is my
configuration file for TUN.
Thanks for
reading...
---------------------------------------------------------- LVSCONF_FORMAT=1.1 LVS_TYPE=VS_TUN INITIAL_STATE=on CLEAR_IPVS_TABLES=Y
VIP=eth0:135
192.168.0.135 255.255.255.255
192.168.0.135
DIP=eth0:1
192.168.0.1
192.168.0.0
255.255.255.0 192.168.0.255
SERVICE=t http
rr 192.168.0.2 192.168.0.3
192.168.0.4
SERVER_VIP_DEVICE=tunl0:0 SERVER_NET_DEVICE=eth0
SERVER_GW=192.168.0.5
<-- this is the IP of one of the client
machine ----------------------------------------------------------
|
|