Internal routing via domain [message #47107] |
Sat, 07 July 2012 19:29 |
hexalot
Messages: 1 Registered: July 2012
|
Junior Member |
|
|
Hello all! Im not a total OpenVZ n00b, but I have had some trouble tracking down information about domain routing. Its possible that I have just missed the part in various tutorials that have stated this was not possible, but Ill give you a run down just incase.
My current wiring config
Modem/WAN--->Router--->Host Machine--->VZ Container
So far I have everything setup, the vz container I have created has a successful connection to the outside network. I can ping, yum, and lots of others.
My host machine has its own 10.20.30.* on the router, and im using a NAT configuration via IPTABLES to assign 192.168.2.0/25 pool to the containers.
The part where im getting stuck involves routing a domain to the vz container, so that a site uploaded is visible to the public. There are a few ways to do this, but it falls apart when I add container 2.
I can see a way to split port 80,22,110 etc, so that the services can be active on multiple containers.
In basic terms, I'd like something like this;
neugenximperative.com ---> Host Machine ---> container1
humannibalism.com ---> Host Machine ---> container2
Is this possible with my configuration? Any help is appreciated
|
|
|