Multiple VDS on 1 ip [message #5220] |
Wed, 16 August 2006 20:00 |
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 #5326 is a reply to message #5220] |
Thu, 17 August 2006 16:38 |
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 #5369 is a reply to message #5334] |
Fri, 18 August 2006 08:59 |
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 . You are on a tight budget, so you must be creative
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/
|
|
|
|