commands.sh

torsocks

linux

Route the traffic of any application through the Tor network. Note: `torsocks` will assume that it should connect to the Tor SOCKS proxy running at 127.0.0.1:9050 being the defaults of the Tor daemon.

More info →

Options (3)

-i, --isolateboolean

Isolate traffic through a different Tor circuit, improving anonymity

Example: torsocks {{[-i|--isolate]}} {{curl https://check.torproject.org/api/ip}}
-a, --addressboolean

Connect to a Tor proxy running on a specific address and port

Example: torsocks {{[-a|--address]}} {{ip_address}} {{[-P|--port]}} {{port}} {{command}}
-P, --portboolean

Connect to a Tor proxy running on a specific address and port

Example: torsocks {{[-a|--address]}} {{ip_address}} {{[-P|--port]}} {{port}} {{command}}

Examples (6)

Run a command using Tor

Enable or disable Tor in this shell

. torsocks on|off

Spawn a new Tor enabled shell

torsocks --shell

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

Isolate traffic through a different Tor circuit, improving anonymity

torsocks [-i|--isolate] curl https://check.torproject.org/api/ip

Connect to a Tor proxy running on a specific address and port

torsocks [-a|--address] ip_address [-P|--port] port command
made by @shridhargupta | data from tldr-pages