LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Problems with LVS TUN and adsl running NAT

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Problems with LVS TUN and adsl running NAT
From: "Viperman .::." <viperman777@xxxxxxx>
Date: Mon, 02 Feb 2004 21:37:45 -0200
I just don't understand what you need, so i will try again.

Here is my config:

I have 1 server for the director. on this machine I have 2 dynamic ip adsl lines. The adsl modems run NAT, so instead of having my eth0 and eth1 configured with real ips, i have eth0 as 192.168.254.1 and eth1 as 192.168.253.1 My ADSL modems will receive the real internet IP from my provider on every login (login is done thru pppoe, and its configured inside the modem, so I'm not running roaring penguim or some thing like that on my linux).

What I want to do is to take 1 of these 2 ips I get when the modems login and use it as my VIP.

The other IP i wont use anywhere so LVS can work.

My question is, since I already have eth0 and eth1 configure as described above, how can I setup the VIP on my director, and i wanna be sure if its possible or not at all to do this using LVS.

if you want me to post or attach any config file here, feel free to tell me and i will. i just didn't do it yet coz I don't wanna disturb with useless info.

My main doubt is, since the modem has the real internet ip (my VIP), and the modem communicate with my network interface using a lan ip (192.168.254.1), how can I setup the VIP on my director?

I tried to keep my eth0 as 192.168.154.1 and configure LVS like this:

echo 1 > /proc/sys/net/ipv4/ip_forward
ipvsadm -A -t VIP:80 -s wlc -p 15
ipvsadm -a -t VIP:80 -r RIP -i -w 100

and I got nothing. a tcpdump shows packets arriving at my director box, and being send to the RIP, but nothing shows up at the real server.

Thanks for all your help and efforts.

Viper


From: Joseph Mack <mack.joseph@xxxxxxx>
Reply-To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx> To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Problems with LVS TUN and adsl running NAT
Date: Mon, 02 Feb 2004 12:07:50 -0500

"Viperman .::." wrote:
>
> Thats my doubt. Since I HAVE to use NAT, i don't know how to properly setup
> my VIP.

despite 3 postings, you haven't told me enough about your setup for me to know what's going on. I don't know where your NAT is or what it's doing to the IPs
in your setup.

> > > >where is the VIP then?
> >
> >2nd try

3rd try

you need a VIP.

Howabout you give a diagram like

http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-DR.html

and explain what's going on

Joe

--
Joseph Mack PhD, High Performance Computing & Scientific Visualization
SAIC, Supporting the EPA Research Triangle Park, NC 919-541-0007
Federal Contact - John B. Smith 919-541-1087 - smith.johnb@xxxxxxx
_______________________________________________
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

_________________________________________________________________
High-speed users?be more efficient online with the new MSN Premium Internet Software. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1

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