Wednesday, May 25, 2016

Http proxying through an ssl tunnel

I have found useful in the past the use of a simple http proxy in one location (e.g tinyproxy), that listens on a local port (e.g localhost:8888)

And an ssl tunnel to that system that effectively maps a local port (e.g 8080) to the remote one.
Assuming the proxy on the other side is up and running, we can do the following:

ssh  -L 8080:localhost:8888 remote-server-with-proxy-service

Now we can configure one of our local browsers to use local port 8080 and access the proxy on the other side.
A useful trick if we need to access services geographically restricted (e.g tv streaming etc)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.