LinuxCommandLibrary

torsocks

Route the traffic of any application through the Tor network.

TLDR

Run a command using Tor

$ torsocks [command]
copy


Enable or disable Tor in this shell
$ . torsocks [on|off]
copy


Spawn a new Tor enabled shell
$ torsocks --shell
copy


Check if current shell is Tor enabled (LD_PRELOAD value will be empty if disabled)
$ torsocks show
copy


[i]solate traffic through a different Tor circuit, improving anonymity
$ torsocks --isolate [curl https://check.torproject.org/api/ip]
copy


Connect to a Tor proxy running on a specific [a]ddress and [P]ort
$ torsocks --address [ip] --port [port] [command]
copy

Copied to clipboard