I have a Linux server which only opens two ports for public:
remote-server-ip : 1111
remote-server-ip : 2222
We have a web application in the server which use 3333
port and can't be changed.
So, to be briefly what I need is:
- In a public network, use browser visit
http://remote-server:1111
orhttp://remote-server:2222
. - The remote server access my request and forward my request to port
3333
. - Response my request.
I thought ssh forwarding should do this. But what exactly should I do to make it ?
I have tried this in the remote-server :
ssh -N -L 1111:127.0.0.1:3333 127.0.0.1
But it doesn't work at all, nothing happened.