E
E
elfix2017-11-17 21:19:05
linux
elfix, 2017-11-17 21:19:05

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

1 answer(s)
S
Someone White, 2017-11-17
@hack_student

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 question

Ask a Question

731 491 924 answers to any question