OpenVZ Forum


Home » General » Support » Multiple VDS on 1 ip
Multiple VDS on 1 ip [message #5220] Wed, 16 August 2006 20:00 Go to next message
AlecWeb is currently offline  AlecWeb
Messages: 8
Registered: August 2006
Junior Member
Hi!

I already searched trough the forum, but couldn't find a useful answer.

I am planning to put 10 VDS websites on 1 public IP. Is there a way to do this?

Thanks,
Alec
Re: Multiple VDS on 1 ip [message #5226 is a reply to message #5220] Wed, 16 August 2006 20:32 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

1. NAT? in this case you will be able to masquarade your VE IPs with host node IP. But different ports should be used for webservices then which probably not that good.

2. try to find software allowing to redirect http traffic based on web site name (name based hosting). However, AFAIK there are some problems with https and it can't be used this way...


http://static.openvz.org/userbars/openvz-developer.png
Re: Multiple VDS on 1 ip [message #5228 is a reply to message #5226] Wed, 16 August 2006 20:51 Go to previous messageGo to next message
AlecWeb is currently offline  AlecWeb
Messages: 8
Registered: August 2006
Junior Member
I am afraid NAT won't go, because w also would like to have mail on these servers.

Any idea which software would fit for name based hosting? (I saw something like squid, but that doesn't seem to be a good solution, because its seems te be overkill)

Greetings
Alec
Re: Multiple VDS on 1 ip [message #5247 is a reply to message #5228] Thu, 17 August 2006 06:32 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

well, for every kind of protocol you will need its own proxy :/
and not all protocols support name based proxying so different tricks should be done. e.g. for POP3 it will be required
to provide full user name including a domain like 'john@mydomain.com'


http://static.openvz.org/userbars/openvz-developer.png
Re: Multiple VDS on 1 ip [message #5267 is a reply to message #5220] Thu, 17 August 2006 10:28 Go to previous messageGo to next message
aistis is currently offline  aistis
Messages: 77
Registered: September 2005
Location: Kaunas, Lithuania
Member

Alec, in case you have a normal budget for this, you could look up to Virtuozzo solution by SWsoft.. there is a possibility to do name based hosting with certain drawbacks as dev outlined.


Aistis Zenkevicius
http://static.openvz.org/userbars/openvz-user.png
Re: Multiple VDS on 1 ip [message #5269 is a reply to message #5267] Thu, 17 August 2006 11:08 Go to previous messageGo to next message
AlecWeb is currently offline  AlecWeb
Messages: 8
Registered: August 2006
Junior Member
I tought about that, but it's just to expensive.

We only host educational websites, and so we don't have a big budget.

Any help on how to setup a namebased VPS hosting is welcome, because Googling didn't result in anything really useful Sad
Re: Multiple VDS on 1 ip [message #5270 is a reply to message #5269] Thu, 17 August 2006 11:09 Go to previous messageGo to next message
AlecWeb is currently offline  AlecWeb
Messages: 8
Registered: August 2006
Junior Member
By the way, how does virtuozzo do it?

Thanks
Alec
Re: Multiple VDS on 1 ip [message #5286 is a reply to message #5220] Thu, 17 August 2006 12:14 Go to previous messageGo to next message
aistis is currently offline  aistis
Messages: 77
Registered: September 2005
Location: Kaunas, Lithuania
Member

oh.. so if it's for educational websites, then you must have some students who can think how to do it for OpenVZ Laughing

anyway, regarding Virtuozzo way, you can look up another thread in this forum where we spoke a little on this: http://forum.openvz.org/index.php?t=msg&goto=4435


Aistis Zenkevicius
http://static.openvz.org/userbars/openvz-user.png
Re: Multiple VDS on 1 ip [message #5311 is a reply to message #5286] Thu, 17 August 2006 15:02 Go to previous messageGo to next message
AlecWeb is currently offline  AlecWeb
Messages: 8
Registered: August 2006
Junior Member
I am a student Wink And I couldn't figure out how to do it, so that's why I am asking it Wink

Anyone an idea for name-based proxies?
Re: Multiple VDS on 1 ip [message #5326 is a reply to message #5220] Thu, 17 August 2006 16:38 Go to previous messageGo to next message
hvdkamer is currently offline  hvdkamer
Messages: 40
Registered: July 2006
Member
Which ports must be accesible on each of the VE's from outside?

I'm doing a study on shared webhosting and for that I needed a trick for SSH and HTTP. The SSH part I solved by destination NAT and giving each VE a different port in the scheme <VEID>22. For HTTP this is not acceptable, so I use Lighttpd as a namebased proxy.

For some other protocols you can do something similar. But it is not that easy. If you need a lot of the same public ports on each of the VE's you are probably better of in getting more public IP-addresses.

I don't know what the status of IPv6 in OpenVZ is. That could also be a nice solution.


Henk van de Kamer
auteur Het Lab
http://www.hetlab.tk/
Re: Multiple VDS on 1 ip [message #5334 is a reply to message #5326] Thu, 17 August 2006 17:23 Go to previous messageGo to next message
AlecWeb is currently offline  AlecWeb
Messages: 8
Registered: August 2006
Junior Member
Thanks for the reply!

Well in fact on each VDS I am going the use: SSH, FTP, SFTP, POP, IMAP, HTTP and HTTPS, so using portforwarding isn't the best solution.

In fact al I want to do, is to have 10 dedicated servers on 1, but I have only 1 ip (and can't have more than 3)
Re: Multiple VDS on 1 ip [message #5335 is a reply to message #5326] Thu, 17 August 2006 17:27 Go to previous messageGo to next message
aistis is currently offline  aistis
Messages: 77
Registered: September 2005
Location: Kaunas, Lithuania
Member

hvdkamer wrote on Thu, 17 August 2006 19:38

Which ports must be accesible on each of the VE's from outside?

I'm doing a study on shared webhosting and for that I needed a trick for SSH and HTTP. The SSH part I solved by destination NAT and giving each VE a different port in the scheme <VEID>22. For HTTP this is not acceptable, so I use Lighttpd as a namebased proxy.

For some other protocols you can do something similar. But it is not that easy. If you need a lot of the same public ports on each of the VE's you are probably better of in getting more public IP-addresses.

I don't know what the status of IPv6 in OpenVZ is. That could also be a nice solution.


IPv6 is supported since 2.6.16-026test014.4 and IPv6 netfilter functionality since 2.6.16-026test015.1

It would be nice if somebody could test it..


Aistis Zenkevicius
http://static.openvz.org/userbars/openvz-user.png
Re: Multiple VDS on 1 ip [message #5337 is a reply to message #5335] Thu, 17 August 2006 17:31 Go to previous messageGo to next message
AlecWeb is currently offline  AlecWeb
Messages: 8
Registered: August 2006
Junior Member
Could IPv6 solve my problem? (The only thing I know about IPv6, is that it offers more IP's then IPv4)
Re: Multiple VDS on 1 ip [message #5369 is a reply to message #5334] Fri, 18 August 2006 08:59 Go to previous messageGo to next message
hvdkamer is currently offline  hvdkamer
Messages: 40
Registered: July 2006
Member
AlecWeb wrote on Thu, 17 August 2006 19:23

Well in fact on each VDS I am going the use: SSH, FTP, SFTP, POP, IMAP, HTTP and HTTPS, so using portforwarding isn't the best solution.


If it is only for educational purposes it could be a solution Smile. You are on a tight budget, so you must be creative Very Happy

The problem with the secure ports you mention is that the connection is encrypted. May be there are tricks that first the hostname (for the namebased proxy) can be resolved, but as far as I understand, this part is in the encrypted communication. The problem then is that you want to redirect that communication to another server with most likely different keys. That is probably the reason why I didn't find namebased solutions for SSH and HTTPS. The SFTP is the same port as SSH as far as I know. SFTP is just the FTP like commands over a SSH connection. The other one is SCP.

For POP and IMAP I think you could write a proxy which does the trick. I don't know of one however...

AlecWeb wrote on Thu, 17 August 2006 19:31

Could IPv6 solve my problem? (The only thing I know about IPv6, is that it offers more IP's then IPv4)


My provider (xs4all in the Netherlands) gives IPv6 to customers who want to try it. Another option is an IPv4 to IPv6 tunnel solution. The problem is that not everybody has accesss to IPv6 yet, so again it is only a solution for educational use.


Henk van de Kamer
auteur Het Lab
http://www.hetlab.tk/
Re: Multiple VDS on 1 ip [message #5710 is a reply to message #5220] Mon, 28 August 2006 18:32 Go to previous message
AlecWeb is currently offline  AlecWeb
Messages: 8
Registered: August 2006
Junior Member
I found something that could help:
Gauntlet Internet Firewall (see http://www.lib.ru/SECURITY/gauntlet.txt)

Does someone have experience with this? I think it could solve my problem. But I'm not sure. Could someone confirm this?

Thankx,
Alec
Previous Topic: Stopping VPS ...
Next Topic: snmp monitoring of Virtual Hosts via Physical Node?
Goto Forum:
  


Current Time: Mon Jul 15 04:54:25 GMT 2024

Total time taken to generate the page: 0.02525 seconds