Answer the question
In order to leave comments, you need to log in
How to organize host forwarding in mikrotik?
There is a mikrotik router, a Synology NAS is connected to it. It also has its own domain on dns servers reg.ru. and a subdomain with a configured A record for the IP address of the router. Access to Synology Drive from an external network is now implemented through specifying a port ("drive.mydomen.ru:0000", forwarding is configured on the router). How can I organize forwarding to the NAS in the router when accessing a subdomain, without specifying a port, for example, drive.mydomen.ru? Do not offer port 80 forwarding, because it is planned to forward other requests on this port.
Answer the question
In order to leave comments, you need to log in
If another 80th port is occupied - how then can it be forwarded a second time?))
For 1 external IP, only one 80th (or any other) port is possible
Solutions.
1. Install NGINX and proxy requests through it (only http). That is, it comes to NGINX on port 80, then it decides, depending on the domain, to which server to redirect the request. To a NAS or other web server.
2. Buy 1 more external IP address from the provider and forward port 80 to the NAS through it
I mean such a way that the router determines which host the request was for (by headers or something else) and redirects to the desired ip within the network. On the hosting side, as I understand it, redirecting to the desired port will not work, only to the ip address, without specifying the port.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question