I
I
Igor K2020-05-08 13:55:25
Domain Name System
Igor K, 2020-05-08 13:55:25

How to bind FreeNAS to nas.example.ru subdomain?

Hello. I am new to this system so please be understanding.

There is a white ip address tied to the example.ru domain, and a separate subdomain with an A-record nas.example.ru was created for FreeNAS.

The essence of the problem is that the FreeNAS-11.3-U2.1 server is at home on a separate PC and hidden behind NAT, it goes out into the world through all the domains that I create, for example example.ru, test.example.ru, nas.example.ru , but it is necessary that there is access only via nas.example.ru. I don’t quite understand how this thing works and how it should work, but searching the Internet does not give me an answer, it is possible that the wording of the question in the search engine was incorrect. Thanks for assistance)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drno, 2020-05-08
@Drno

Well, the freenas web server is responsible for this.
Look at the settings - from which ip / domains to allow access
Now it opens from everyone, because the domain and subdomain point to the same ip, and there are no restrictions in freenas

V
Viktor, 2020-07-09
@HMB

Jail with reverse proxy on nginx. On the router 443 and 80 you will redirect to this jail, and nginx will already proxy to any other site, for example, to the freenas admin panel. This nginx will have SSL certificates from all your sites.
reverse-proxy.png?w=616&ssl=1
instructions:
https://www.samueldowling.com/2020/01/18/nginx-rev...
Alternative: the same can be done on Mikrotik, only there the proxy server does not work with https

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question