OpenVZ Forum


Home » General » Support » Is name based forwarding possible on LAN
Is name based forwarding possible on LAN [message #31406] Fri, 27 June 2008 07:44 Go to next message
daerious is currently offline  daerious
Messages: 1
Registered: June 2008
Junior Member
I have a debian 4 hardware node with openvz installed. Kernel is 2.6.18-12-fza-amd64. It is 192.168.1.111 on my LAN. All traffic from my router is forwarded to this box. My test container is 192.168.1.112. My domain name works properly as far as resolving. I have internet access from the hardware node and from within the containers.

My problem is that test1.domain.com (the domain name given to my test container) goes to the hardware node. How can I forward everything from that name to the container?

I have read the wiki on using NAT for container with private IP, however having to use the IP and a different port doesn't work very well for my situation. I need to be able have all services available for both the hardware node, and multiple containers.

Thank you in advance for any suggestions on where to look for a solution.
Re: Is name based forwarding possible on LAN [message #31420 is a reply to message #31406] Fri, 27 June 2008 19:55 Go to previous message
swindmill is currently offline  swindmill
Messages: 57
Registered: April 2007
Member
The only way to achieve what you're looking for would be by using some sort of application level forwarder/redirector/proxy.

For instance, apache could be installed on the host node to reverse proxy to http servers running in the individual containers based upon the http host header.

There may be similar forwarders or proxies for ssh, but I have not personally used any.

You cannot have multiple servers listening to the same port with a single IP address.
Previous Topic: vzpkgcache centos-4-i386-default no longer work
Next Topic: OpenVZ & XEN 3.2 in Debian etch
Goto Forum:
  


Current Time: Sat Sep 07 22:28:01 GMT 2024

Total time taken to generate the page: 0.10278 seconds