Tor for all the apps in a Windows 10 desktop?

Hi,

is it possible to use TOR for all the apps in a Windows 10 desktop?

1 Like

I’m not sure about all apps, but Tor Browser sets up a SOCKS server at localhost:9150, and standalone Tor client sets it up at localhost:9050. You can go to your app’s proxy settings and use it.

To use Tor system-wide, as opposed to just particular apps, you could set up Tor at a separate machine (say, your router or a microcomputer (Raspberry Pi)), and then go to Windows proxy settings, and use that.

Another way to use Tor system-wide is through Tails OS or Whonix, though those are, of course, not Windows.

Those are just off the top of my head, and I am sure better guides can be found on the internet.

2 Likes

Yes and no. You can route all traffic from a machine through tor, for example by using whonix or tor on an openwrt router. But since tor doesn’t support udp some things might not work. Also a standard windows desktop wouldn’t be good for privacy. So it is really just useful for censorship circumvention.

1 Like

Configure tor expert bundle to work as SOCKS proxy. Then you can use tun2socks to make tunnel that will forward all traffic through this proxy.

yes you can route all traffic. Check out the Windows proxy settings. Set it up and point it to your Tor proxy. Hope this helps :smiley:

1 Like

Setting Windows system proxy will not route all traffic in the system. It will only route traffic of apps that support windows system proxy. In some apps you need to configure proxy manually, some apps doesn’t support proxy at all. You can only route all traffic by turning proxy to TAP adapter and routing all traffic except tor’s traffic through this TAP adapter.

1 Like

I’m pretty sure this will not work on the localhost instance of Tor, because Windows would try to redirect Tor’s traffic through the Tor’s own tunnel.

Yup, my bad this setup won’t work… thank you all for the correction :+1:

How about for the Windows app „console“ at first?

Please clarify.

Possibly https://www.torbox.ch/ might be of help. AFAIK their “torbox mini” catches every traffic to the internet and if you turn off all other interfaces (eth/wlan/…) no IP traffic should evade torification.
HTH

For example I’d like to execute the ping command through TOR browser (localhost:9150 ). Is it possible?

ping shoudn’t work through Tor, because it’s ICMP and not TCP, and Tor is TCP-only. See proxy - Can I ping/send ICMP through TOR? - Super User. curl should work though, with the --proxy argument, without a system-wide proxy setup: curl --proxy "socks5://localhost:9150" https://example.com.

curl --proxy “socks5://localhost:9150” https://google.com
curl: (97) Can’t complete SOCKS5 connection to google.com.

curl --proxy “socks5://localhost:9150” https://yahoo.com
redirect

Does it mean it’s successful with Yahoo but failed with Google? Why are they different?

If you pass socks5:// to curl, it will resolve google.com locally, try curl --proxy "socks5h://localhost:9150" https://google.com?

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
0 0 0 0 0 0 0 0 --:–:-- 0:00:01 --:–:-- 0
100 374 100 374 0 0 166 0 0:00:02 0:00:02 --:–:-- 166
100 374 100 374 0 0 166 0 0:00:02 0:00:02 --:–:-- 166

302 Moved

302 Moved

The document has moved here.

Is it OK?

Yes, you got the response from the Google server.

I tried to use yt-dlp to download a file through TOR:

yt-dlp --proxy “socks5h://localhost:9150” https://574d536c8e8fc.streamlock.net/opencast_new/smil:engage-player_cc2e95c8-0772-42fa-aaa0-869f41492035_presenter.smil/chunklist_w1955655178_b1488892.m3u8

Error:

[generic] chunklist_w1955655178_b1488892: Requesting header

WARNING: [generic] Could not send HEAD request to Wowza Streaming Engine 4 Perpetual Pro Edition 4.9.1+2 build20241119145805 <urlopen error Tunnel connection failed: 501 Tor is not an HTTP Proxy>

[generic] chunklist_w1955655178_b1488892: Downloading webpage

ERROR: [generic] Unable to download webpage: <urlopen error Tunnel connection failed: 501 Tor is not an HTTP Proxy> (caused by URLError(OSError(‘Tunnel connection failed: 501 Tor is not an HTTP Proxy’)))

What’s wrong with my usage?

This is getting off-topic.
Maybe yt-dlp is not recognizing it as a SOCKS proxy URL. try socks5 instead of socks5h. See their docs.