Today I have read this question and answer (How does reverse SSH tunneling work?). I tried it out and it worked perfectly however I want to know one thing. Say I have a web server running on port 8000 and I forward that port to my receiving server. How do I then forward the port the receiving server gets to others on the network.


I have a Server 1(Ubuntu Server running with full port forwarding and no firewall). I have another server 2 (running WITH a firewall and without port forwarding). I use SSH tunnelling to put my web server onto Server 1 from server 2. How can I let clients who can connect to server 1 connect to the tunnelled service from server 2 via server 1

Client 1 Cannot Connect to Server 2 but can connect to server 1.


I'm not sure exactly what you are asking, but I suspect that you are interested in the ssh -g flag, which "Allows remote hosts to connect to local forwarded ports."

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.