C
C
ckpomcku2014-07-23 23:08:30
Computer networks
ckpomcku, 2014-07-23 23:08:30

How to organize access to virtual machines from the web?

The situation is as follows:
1. There is a registered domain xyz.com ;
2. NS's of the domain look at noip.com ;
3. DyDNS is configured on the router ;
4. The router forwards the 80th port to the local network at 192.168.10.77 ; 5. Mac Pro (OS X 10.7, 192.168.10.77 ) with several virtual machines inside (VirtualBox, Ubuntu 14.04, nginx)
is on the local network ; 6. Each virtual machine in a private network with its own IP 192.168.77.xxx ; 7. Noip.com has xyz.com , foo.xyz.com , bar.xyz.com .



Actually, the question is:
Where and how to distribute requests xyz.com, foo.xyz.com and bar.xyz.com to the corresponding virtual machines?

Visualize:
xyz.com -> noip.com -> (router's current ip) -> 192.168.10.77 -> 192.168.77.11
foo.xyz.com -> noip.com -> (router's current ip) -> 192.168.10.77 - > 192.168.77.22
bar.xyz.com -> noip.com -> (current router ip) -> 192.168.10.77 -> 192.168.77.33

Thanks :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gem, 2014-07-24
@ckpomcku

You need an http\balancer\proxy with support for what is called - http-in frontend
In the case of virtual hosts (different fdqn at the same address), it will accept the connection, negotiate with the browser and pass it on to its destination
In order of preference - nginx, squid, apache
So how to work at the application protocol level (l7,http) in hardware, such things are done only under a serious load, you can’t do it with a router (well, or install OpenWRT)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question