20

Note: I am aware that the Tor Project recommends against this and I want to do it anyway.

I've downloaded the Tor Relay Bundle and everything seems to be working fine. I can see myself as a relay on Atlas. However, I can't seem to configure Google Chrome to use Tor.

I've changed my proxy settings to use localhost and 127.0.0.1, I've tried ports 8118, 9030, 9031, 9050, and 9051, but I always end up getting the following when trying to access a website:

This webpage is not available.
The web page at https://www.google.com/ might be temporarily down or it may have moved permanently to a new web address.
Error code: ERR_TUNNEL_CONNECTION_FAILED

My Tor Settings:
Tor Sharing tab Tor Advanced tab

What am I doing wrong?

EDIT: In addition, when I try to change my proxy settings, the Tor message log says

Jul 04 14:16:53.831 [Warning] Socks version 67 not recognized. (Tor is not an http proxy.)

3 Answers3

16

Warning: The Tor Project advises against configuring systems manually like this. The safe method is the Tor Browser Bundle, you can not expect Chrome to keep you anonymous just like this. Another option might be to tunnel an entire (virtual) machine's traffic through Tor (like Tails OS does I think) but that is out of scope here.


That error message is useful. It means the port is right because Tor is receiving data from Chrome, but Tor tries to interpret it as SOCKS data and is unable to recognize it (67 is not an existing version of SOCKS). This means Chrome is using the wrong protocol to talk to Tor, most likely (like the error says) Chrome is talking like it would to an HTTP proxy. But Tor is not an HTTP proxy, it's a SOCKS proxy.

So now the question is how to configure Chrome to use SOCKS instead of whatever it currently uses. This doesn't seem to be too hard to find:

https://duckduckgo.com/?q=chrome+socks+proxy -> http://www.chromium.org/developers/design-documents/network-stack/socks-proxy

Since Chrome is basically Chromium plus a few (non-open source) Google services added, this should work on Chrome as well as Chromium. Assuming you use Windows (another non-recommended platform for safety), it might be something like this in cmd.exe:

cd C:\path\to\chrome (might be somewhere in AppData, or maybe Program Files)
chrome.exe --proxy-server="socks5://localhost:9050" --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost"

You can find this path\to\chrome by rightclicking on a shortcut to Chrome and then choosing either properties or open file location. Both will show the full path where the file, chrome.exe I assume, is contained.

In Linux you probably would not need to use the cd command and the rest would likely be the same. In Mac OS X I don't know (please edit this answer if you know).

Luc
  • 276
  • 2
  • 5
4

Since 0.3.2.1 version you can easily also use the HTTPTunnelPort option. eg:

Run tor.exe --HTTPTunnelPort 8118 and set 127.0.0.1:8118 as proxy.

See this answer for more information.

galoget
  • 203
  • 1
  • 10
anion
  • 141
  • 3
2

I just figured it out!! In the past I used Proxy Switchy on chrome to set up Tor (following that lifehack website) and it all worked great, but recently I couldn't get it to work. Maybe it was that the extension has been redeveloped (it is called SwitchyOmega now), maybe it's windows 10, who knows... However, If you've been struggling like I did then here's a solution:

  1. Get SwitchyOmega from Chrome extensions
  2. Go to its settings and create a new profile
  3. In the profile set the protocol: SOCKS5, address:127.0.0.1 and port:9150
  4. Go to Interface and set up your Switch Option if you want to use it as a button to switch through direct or proxy connection (optional)

And that should be it.... I hope this helps !

Jens Kubieziel
  • 8,630
  • 5
  • 35
  • 116
Anonymous
  • 21
  • 1