4

On my linux box, I have both Tor and Tor browser bundle installed and running.

I was wondering which of those two is to be preferred (in the sense of being the most robust to potential "anonymity leaks", the fastest, and the "most logical"):

torsocks curl http://example.com

or

curl --socks5 127.0.0.1:9150 http://example.com
Roya
  • 3,240
  • 3
  • 19
  • 40
Iam Zesh
  • 141
  • 1
  • 3

3 Answers3

3

You should use either

torsocks curl http://example.com

or

curl --socks5-hostname 127.0.0.1:9150 http://example.com

to ensure that DNS requests aren't leaked.

muchan
  • 41
  • 1
2

You should definitely use torsocks curl here, because curl --socks5 does NOT use the given SOCKS proxy to resolve DNS name. See torsocks documentation for more specifics. Also, you can use usewithtor [application] instead of torsocks [application].

mirimir
  • 3,017
  • 1
  • 19
  • 29
dgoulet
  • 21
  • 1
1

ONLY curl --socks5-hostname 127.0.0.1:9150 http://example.com because to not-leak-dns you must not doing DNS queries =) and --socks5-hostname clause forces NOT using resolvers at all, and passing the raw hostname to the proxy to resolve. Forget 'torificators' if a program/library supports total avoiding DNS queries.

Alexey Vesnin
  • 6,385
  • 3
  • 15
  • 36