I have this setup:
LocalPC - Jumpserver - Webserver with page only accessible on this machine via
localhost:8080
LocalPC and Webserver are not connected - Jumpserver has to be used. Jumpserver doesn't have access to the Webpage on Webserver
I want to use Firefox to view this webpage on LocalPC.
I know how to make socks proxy to Jumpserver - normally this is enough but not in this case
ssh -TD 8080 me@jumpserver
and
I know how to tunnel one specific port over Jumpserver
ssh -f -N -q -L 2222:me@target:22 me@jumpserver
But using the first method only makes a tunnel to Jumpserver and using the second method with ports 8081:me@webserver:8080 doesn't give error but results in 404 for
http://localhost:8081
in firefox...
So how will I see the website on LocalPC?
And for security reasons: I need both connections encrypted and let no other users on Jumpserver use the tunnel.
(Sry for codeblocks - I am not allowed to write word localhost...)