2024-03-25 00:25:16 -04:00
|
|
|
# torsocks
|
|
|
|
|
2024-04-04 14:59:16 +11:00
|
|
|
> 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.
|
2025-03-27 16:42:21 +02:00
|
|
|
> More information: <https://manned.org/torsocks>.
|
2024-03-25 00:25:16 -04:00
|
|
|
|
|
|
|
- Run a command using Tor:
|
|
|
|
|
|
|
|
`torsocks {{command}}`
|
|
|
|
|
|
|
|
- Enable or disable Tor in this shell:
|
|
|
|
|
|
|
|
`. torsocks {{on|off}}`
|
2024-04-04 14:59:16 +11:00
|
|
|
|
|
|
|
- Spawn a new Tor enabled shell:
|
|
|
|
|
|
|
|
`torsocks --shell`
|
|
|
|
|
|
|
|
- Check if current shell is Tor enabled (`LD_PRELOAD` value will be empty if disabled):
|
|
|
|
|
|
|
|
`torsocks show`
|
|
|
|
|
2025-03-27 16:42:21 +02:00
|
|
|
- Isolate traffic through a different Tor circuit, improving anonymity:
|
2024-04-04 14:59:16 +11:00
|
|
|
|
2025-03-27 16:42:21 +02:00
|
|
|
`torsocks {{[-i|--isolate]}} {{curl https://check.torproject.org/api/ip}}`
|
2024-04-04 14:59:16 +11:00
|
|
|
|
2025-03-27 16:42:21 +02:00
|
|
|
- Connect to a Tor proxy running on a specific address and port:
|
2024-04-04 14:59:16 +11:00
|
|
|
|
2025-03-27 16:42:21 +02:00
|
|
|
`torsocks {{[-a|--address]}} {{ip}} {{[-P|--port]}} {{port}} {{command}}`
|