I have an application server at work that can accept http request only from localhost.
At home I access the server through ssh.
Once on the server I can curl http://localhost/test.html
I would like to do the same from my web browser at home, i.e. in some way redirect my browser traffic over ssh and access test.html as if I were on the server.
I tried ssh -v -D 9090 [email protected]
and after I set a manual proxy in Firefox over a SOCKS v5 host: on ip: 127.0.0.1 and port 9090
I see something going on in ssh debugging but it looks like is not redirecting to the 80 server port
links2
work or does it need to be a full-fledged browser?accept http request only from localhost
. Do you mean the app server is bound to localhost and allows no external IP connections, or is it restricting traffic URIs via something like SNI? If it's bound to localhost, you'll have to emulate being on the box like with your SSH tunnel. If it's just restricted, such as SNI, you could put a host table entry for localhost on the remote machine and open a port on the server for the connection.