computerscot.github.io

Tor through Clash

August 14, 2023

Someone was asking on Reddit how to configure "tor to proxy through clash." I'm going to assume that when they said "tor" they meant Tor Browser, and when they said "clash" they meant Clash for Windows. So the question is how to configure Tor Browser to proxy through Clash for Windows.

Get Clash for Windows from https://github.com/Fndroid/clash_for_windows_pkg/releases. Despite the name, there are actually packages for macOS and Linux as well as Windows. For Windows it is supplied as a .7z file, so you'll need 7-Zip to extract the archive. Extract it to its own folder named, for example, Clash.for.Windows-0.20.31-win. Inside that folder you'll find the Clash for Windows.exe application. The default listening port for the client is 7890. You'll need either your own server or a subscription to a server provider (often called an "airport") for the client to connect to.

Download and install the Tor Browser from https://www.torproject.org.

When you run the Tor Browser for the first time, click Configure Connection.

Scroll down and under Advanced click the Settings button at the bottom to configure how you connect to the internet. Check I use a proxy to connect to the Internet. The type is SOCKS5, the address is 127.0.0.1, and the port is 7890. Click OK.

I have found it more reliable to click Select a Built-In Bridge. This should not be necessary, since the server will already be outside the GFW. Perhaps it helps because built-in bridges are faster than random entry nodes. Select obfs4. Click Connect.

Now you can test your connection by trying to reach a Tor-only site.

BBC News in simplified Chinese:

https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion/zhongwen/simp

DW News in simplified Chinese:

https://www.dwnewsgngmhlplxy6o2twtfgjnrnjxbegbwqx6wnotdhkzt562tszfid.onion/zh/?zhongwen=simp

New York Times in simplified Chinese:

https://cn.nytimesn7cgmftshazwhfgzm37qxb44r64ytbb2dj3x62d2lljsciiyd.onion