setting up a proxy to mirror an SSH SOCKS connection

Posted by aresnick on Server Fault See other posts from Server Fault or by aresnick
Published on 2010-03-15T01:55:50Z Indexed on 2010/03/15 2:00 UTC
Read the original article Hit count: 438

Filed under:
|
|
|

I have two remote machines, remote1 and remote2. remote2 is only running sshd, and I can't run anything else on it. remote1 is a full-fledged server to which I have complete access. I can run a SOCKS proxy on remote2 via ssh -f -N -D *:8080 me@remote2 which lets me expose a SOCKS proxy on port 8080 on remote1. I'd like to authenticate this so that the proxy isn't sitting open. How can I do this?

It seems like I should be able to use delegate, but I can't even seem to get its HTTP proxy functionality working. When I run delegated -r -P8081 SERVER=http PERMIT="*:*:*" REMITTABLE="*" I can't even get it to work on port 8081.

Anyway, I was hoping someone could point me in the right direction to let me authenticate access to the SOCKS proxy connection? That is, I want to be able to point my browser's proxy at remote1 and browse the internet through the SSH SOCKS proxy/tunnel to remote2.

squid doesn't support a SOCKS parent =(

Thanks!

© Server Fault or respective owner

Related posts about transparent-proxy

Related posts about socks