Answer the question
In order to leave comments, you need to log in
How to forward a port from the external interface to the internal one depending on the domain?
There is a machine on it is Debian 9. There is a service that runs on port 81 on this machine. Is it possible to somehow make other machines come to this one at its IP address, for example, 43.22.13.42 on port 80 through a browser, while they have a DNS connection for this IP in their hosts file as gitlab.local for example.
In general, the point is that you need to catch requests on port 80 on the external interface and, depending on the domain, send them to different ports 80-100, for example, inside. How is this done on Linux?
Thanks in advance, someone knows for sure)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question