Answer the question
In order to leave comments, you need to log in
What is the alternative to ssh -R 80:localhost:80 [email protected] for port forwarding?
There is a virtual machine with the address 192.168.1.111 on the server with the "white" address 123.123.123.123.
It is necessary that the sites from the virtual machine be accessible from the outside through the external IP of the main server.
Forwarding an http port through ssh works, but is there a _faster_ and easier alternative?
For example through iptables?
Answer the question
In order to leave comments, you need to log in
Install nginx. In the standard configs there is an example of setting up reverse proxying. Plus, there is configuration flexibility and caching.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question