R
R
Roman Gritsuk2017-01-05 12:19:36
Domain Name System
Roman Gritsuk, 2017-01-05 12:19:36

How to give access to virtual machines behind NAT by domain name?

Good afternoon.

I want to start a small zoo of virtual machines at home: nas4free. centos with Bitrix VM, opds server. But there are questions about setting up access to the necessary services from outside.

Let's say there is:
- external white IP 111.111.111.111
- domain.ru domain
- a server located on the home network behind a router with virtual machines:
1) nas4free with ip 192.168.0.1 (nas.domain.ru)
2) Centos with ip 192.168. 0.2 . It has a web server with three sites that I would like to have access to via dns:
-a) test1.web.domain.ru
-b) test2.web.domain.ru
-c) test3.web.domain.ru

How to organize access to all this from the outside?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Valle, 2017-01-05
@winer

set test*.web.domain.ru domains to a white address. If all sites on virtual machines should respond to port 80, for example, then install nginx frontend on the root machine and proxy to virtual machines.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question