Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux Virtual Servers on one box without additional IPs

Status
Not open for further replies.

dworkin

ISP
Mar 22, 2003
3
US
Alright, Before I get started trying to rewrite apache trying to do this I wanted to see if anyone out there knew if there might be a way to do virtual servers on a linux box.
Now, I know about the regular LVS stuff but thats not going to help me. Here is what I'm trying to do:
1. I want my users to be able to type in thier web page and get to it on my computer. (That means that DNS servers around the world are going to have to be pointing at my server.
2. I want them to be able to ftp and have full access to thier allocated space on my server but only have access to thier files. (Which means that 1st my machine is going to have to determine where there "root" access point is, and not only with ftp (thats easy) but with ssh as well, so my server is going to have to put them into a virtual server.
3. I know I could do all this with LVS but I don't have the money to pay for indevidual IP addresses for everyone. So here is my Idea: I wonder if it might be possible to use the local host network (127.0.0.0) to set up virtual servers using LVS. Then I could have one client be 127.0.0.2 and .3, .4 and so forth. Now that I think about it though I don't know if I could set it up with that address so I could use my eth0 to set up a 10.0.0.0 network inside my computer that would do the same thing. Here's the problem though. How am I going to make my computer say user UserX = 10.0.0.3 when they log in using ssh. And Also how would I make Apache say ok I know where is it's at one of my fake 10 network addresses, my database says it's 10.0.0.3.
What I want to do is have a Internet usable address,
say: 63.148.53.2 (no that's not my address, just one I made up, so if it's yours sorry)
but be able to have virtual servers on my linux box.
As I read the HOW-TO on virtual servers, and as I have done in the past I know I have to have seperate IP's for each server. I know I don't with Apache, thats virtual hosting, and I already do that... But I want to have virtual servers, without paying though the nose for all those Internet legal IP's. What I'm asking is:
Does anyone know of a way to use private addresses for the virtual servers and map all of them to one legal address. like NAT sort of. I think a hack to a linux router and a mariage of the Apache virtual hosting stuff may work, but if it's doable I bet one of you know about it...
Thanks,
Dworkin
 
Hi,

If you want specific user to access your box from internet, you require internet ip. And if you want each user access using different ip then you need to buy some IP's from your ISP. No such thing you can create virtual ip using internet IP.

What are you trying to run here? Why not create virtual ip for LAN and let your firewall does the NAT. But still everybody access your box using 1 IP.

regards,
feroz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top