Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 170583

OpenVz containers same ip and different control panels

$
0
0
Hi everybody

I have dedicated server and install proxmox , the distribution of OVH over Debian

I install this and create containers , in this case create 2 containers 100 and 101

I instal in each one of these containers centos 6.3 clean template

After this i load in each case ispconfig for works in each container

After this i use

Quote:

iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o vmbr0 -j SNAT --to 5.39.84.286

iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 1022 -j DNAT --to 10.0.0.1:22

iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 1090 -j DNAT --to 10.0.0.1:80

Wit this i can access each container with different ports and with the same ip


Now the problem :


If i want add domains for each container how i can do this because i need one ip and the ip it´s the same in each case and only change port , how i can load the domain for example www.domain.com with the ip fix of machine 5.39.84.286 and load the host container for this

I think it´s possible but i don´t know how i can do this

Other people tell me ok use ipfailover and no more problems , ok but i don´want buy one ipfailover for each container i supose it´s possible use this kind of method for use containers and use the same ip , i think .....

Thank´s for the help and the best regards for all community

Viewing all articles
Browse latest Browse all 170583

Trending Articles