OpenVZ Forum


Home » General » Support » Using private ip for containers with public ip for the hardware node
icon5.gif  Using private ip for containers with public ip for the hardware node [message #33725] Tue, 04 November 2008 10:56 Go to next message
kavita.gupta82 is currently offline  kavita.gupta82
Messages: 2
Registered: November 2008
Junior Member
I have successfully installed openvz and have even created a container. I have used pivate ip for the container. I m able to access Internet from my container using Ip tables. But I m facing issue in making it visible to the Internet so that it can be accessed from the Internet the way HN can be accessed. Iptables allow only web services to be available but I want container to be completly available when accessed from the internet.
Re: Using private ip for containers with public ip for the hardware node [message #33731 is a reply to message #33725] Tue, 04 November 2008 16:55 Go to previous messageGo to next message
kenjy is currently offline  kenjy
Messages: 50
Registered: July 2008
Location: Mexico
Member
Well then your container nees a public IP.

http://kenjy.net |Live net !!!
Re: Using private ip for containers with public ip for the hardware node [message #33734 is a reply to message #33731] Wed, 05 November 2008 12:29 Go to previous messageGo to next message
kavita.gupta82 is currently offline  kavita.gupta82
Messages: 2
Registered: November 2008
Junior Member
But there should be some way to make private ips visible. I dont have public ips available so need some way to make private ips visible.
Re: Using private ip for containers with public ip for the hardware node [message #33785 is a reply to message #33734] Mon, 10 November 2008 08:09 Go to previous message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hi,

well, you can configure iptables on a Hardware Node in such a way that packets received on the Hardware Node on port X will be forwarded to some Container to port Y if this is what you need.

Then to reach Container you'll need access Hardware Node's IP and use port X.

--
Konstantin


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Previous Topic: [solved] How to determine which HN a VE is running on
Next Topic: [answered] VE on GFS/GFS2
Goto Forum:
  


Current Time: Tue Nov 05 04:16:36 GMT 2024

Total time taken to generate the page: 0.03325 seconds