LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Socks Configuration in Privoxy (https://www.linuxquestions.org/questions/linux-software-2/socks-configuration-in-privoxy-635994/)

mpmackenna 04-17-2008 08:28 AM

Socks Configuration in Privoxy
 
I tunnel HTTP traffic through ssh using putty. I also want to be able to configure my ssh connection in putty to accept Socks requests. I have privoxy running on the other end of my putty ssh tunnel, but when I try to connect to my tunnel with a socks connection it just seems to time out. I looked into enabling Socks in Privoxy but found the documentation confusing. How do I tell Privoxy to accept Socks connection request, or am I going about this completely wrong? Thanks! Mike

blackhole54 04-18-2008 01:33 AM

TMK, privoxy doesn't accept Socks at all. (It is, however, capable of forwarding via Socks4 and Socks4a.) Right now I have this browser set up to use a proxy on localhost which I forward via ssh to another machine running privoxy, which I think is basically what you are wanting to do. My ssh command is:

Code:

ssh -n -L 8119:127.0.0.1:8118 onion@ratel "<commands for remote machine>"
My browser is set to use a proxy on tcp/8119 (for historical -- or hysterical -- reasons) and it forwards that to privoxy listing on tcp/8118 on the remote machine. Privoxy's config file then tells it to send some of the requests directly to the Internet and forward others to tor via Socks4a.

I would assume you would be able to do something similar with putty, but it has been a while since I have looked at it.

I hope this is helpful.

mpmackenna 04-18-2008 10:45 AM

Quote:

Originally Posted by blackhole54 (Post 3124914)
I would assume you would be able to do something similar with putty, but it has been a while since I have looked at it.

I had port 3888 forwarded to 127.0.0.1:3888 in putty in order to tunnel my web traffic to privoxy. I added forward port 1080 dynamically in my list of putty forwarded ports and that seemed to make the difference. So apparently I am forwarding those requests on port 1080 to my box at home and somehow it knows what to do with them.
Thanks for the help,
Mike


All times are GMT -5. The time now is 05:36 PM.