Re: How can I configure Fiddler to use upstream socks proxy

5,106 views
Skip to first unread message

EricLaw

unread,
Jan 14, 2013, 12:11:53 PM1/14/13
to httpf...@googlegroups.com

On Monday, January 14, 2013 7:07:35 AM UTC-6, schamp%s...@gtempaccount.com wrote:
I read the section in the book about Socks/Tor connection.
It says to use the socks= prefix to have Fiddler use the socks protocol,
but nowhere can I find any info about how and where to use that prefix?
I can get Fiddler to connect to Tor, but always get the error message,
that Tor is no http proxy and that I should configure my client to use socks.

But how?


schamp%s...@gtempaccount.com

unread,
Jan 14, 2013, 2:11:10 PM1/14/13
to httpf...@googlegroups.com
I read that post before I asked my question, because thats exactly why I am asking.
It only states how to redirect a request for a certain host (or all) through Tor and tells
you to set the socks= prefix to socks protocoll, but not how to set that prefix. Cant
find any information about that prefix anywhere.

EricLaw

unread,
Jan 14, 2013, 4:11:25 PM1/14/13
to httpf...@googlegroups.com
Sorry, I don't understand what is confusing here. You set the prefix using the exact code shown in that post. If your question is "How do I edit the OnBeforeRequest function?":

1> Hit CTRL+R to open the FiddlerScript file
2> Scroll down to the OnBeforeRequest method.
3> Add the code.
4> Save the file.

schamp%s...@gtempaccount.com

unread,
Jan 15, 2013, 4:20:15 AM1/15/13
to httpf...@googlegroups.com
Hi Eric,

First of all, I really wanna thankyou for your prompt responses. I appreciate that very much.

I think I found the core of the problem on the Tor webpage in FAQ:

"In the past, Tor bundles included an HTTP proxy like Privoxy or Polipo, solely to work around a bug in Firefox that was finally fixed in Firefox 6. Now you don't need a separate HTTP proxy to use Tor, and in fact leaving it out makes you safer because Torbutton has better control over Firefox's interaction with websites.

If you are trying to use some external application with Tor, step zero should be to reread the set of warnings for ways you can screw up. Step one should be to try to use a Socks proxy rather than an http proxy — Tor runs a Socks proxy on port 9050 on Windows, or see above for OSX and Linux.

If that fails, feel free to install privoxy or polipo. You can use our old polipo config file if you like. However, please realize that this approach is not recommended for novice users."

So, what I did, is just connect to Port 9050 in the OnBeforeRequest as described in the book, but apparently Fiddler cant connect to a Socks proxy, if I am getting that right? Your example in the book is probably outdated, because Tor no longer comes with Polipo.

So my question would now be, is there a way to connect Fiddler directly to a Socks proxy, or will I have to install Polipo, or is there a better way of achieving the goal?


EricLaw

unread,
Jan 15, 2013, 2:51:08 PM1/15/13
to httpf...@googlegroups.com
Fiddler can, of course, connect to a SOCKS proxy; that's exactly what happens when you use the socks= specifier on the gateway string.
 
You need a HTTP->SOCKS gateway (like Fiddler) if you want to use TOR with Internet Explorer because Internet Explorer's SOCKS support is very limited. Specifically, IE only supports SOCKSv4 which means that your DNS requests go out over the local connection (potentially leaking important information about your browsing).
 
When you have the following configuration:
 
   IE -HTTP-> Fiddler (8888) -SOCKS->TORClient(9050) -> InternetTORNodes
 
Your traffic from IE is privately transmitted over SOCKS to the TOR network.
 
Let's back up. What exactly isn't working? What error messages are you getting?
Reply all
Reply to author
Forward
0 new messages