OpenVZ Forum


Home » General » Support » VPS http://ip:port to use servers files (how does Virtuozzo and veportal do it ?)
VPS http://ip:port to use servers files [message #39001] Tue, 02 March 2010 10:47 Go to next message
mrlonely is currently offline  mrlonely
Messages: 3
Registered: March 2010
Junior Member
Hi,

I am designing a small custom VPS panel for my VPS hosting business.
I wanted to use the VPSs IP at a particular port to load the Servers Control Panel

e.g. Tthe IP 88.88.88.88 is the VPS IP and 77.77.77.77 is the servers main ip
My control panel files are on the main server at /usr/local/panel/

I want to load the panel from the URL:
https://88.88.88.88:8888

These should load the files from the main server at /usr/local/panel/

Virtuozzo does it. So how is this going to be possible ?
Do I have to use IP tables and NAT to do it :
http://wiki.openvz.org/Using_NAT_for_container_with_private_ IPs

I am a newbie at this so please help me.

Regards,
Rick

[Updated on: Tue, 02 March 2010 10:49]

Report message to a moderator

Re: VPS http://ip:port to use servers files [message #39007 is a reply to message #39001] Wed, 03 March 2010 11:41 Go to previous message
mrlonely is currently offline  mrlonely
Messages: 3
Registered: March 2010
Junior Member
Please help me someone.

Will this do the trick :
iptables -t nat -A PREROUTING -p tcp -d 88.88.88.88 --dport 8888 -i eth0 -j DNAT --to-destination 192.168.0.1:8888

Whats the internal IP of the server is it 192.168.0.1 OR 10.0.0.0

Please help someone. I have spent nearly a week trying to figure this out.
Previous Topic: IP loss problem from openvz vps
Next Topic: libvirt with openvz?
Goto Forum:
  


Current Time: Wed Aug 14 11:19:28 GMT 2024

Total time taken to generate the page: 0.06014 seconds