macOS
brew install torsockslocal Homebrew formula metadata
sudo port install torsocksMacPorts ports tree · net/torsocks/Portfile · source: api.github.com
brew
Use SOCKS-friendly applications with Tor. Version 2.5.0 via Homebrew; verified from local package data.
install
brew install torsockslocal Homebrew formula metadata
sudo port install torsocksMacPorts ports tree · net/torsocks/Portfile · source: api.github.com
sudo apk add torsocksAlpine Linux edge package indexes · torsocks · source: dl-cdn.alpinelinux.org
sudo apt install libtorsocksDebian stable package indexes · libtorsocks · source: deb.debian.org
sudo dnf install torsocksFedora Rawhide package metadata · torsocks · source: dl.fedoraproject.org
nix profile install nixpkgs#torsocksnixpkgs package indexes · pkgs/by-name/to/torsocks/package.nix · source: api.github.com
sudo pacman -S torsocksArch Linux sync databases · torsocks · source: geo.mirror.pkgbuild.com
sudo apt install torsocksUbuntu 24.04 LTS package indexes · torsocks · source: archive.ubuntu.com
overview
Use SOCKS-friendly applications with Tor
history
torsocks is a Tor Project command-line wrapper and preload library that routes many ordinary network applications through Tor. The official README says it handles DNS safely and rejects traffic other than TCP; the Tor support glossary gives the same user-facing explanation.
torsocks exists to solve a practical gap around the tor daemon: many applications speak TCP but do not know how to use Tor's SOCKS proxy safely. torsocks wraps an application with LD_PRELOAD and overrides libc networking calls such as connect and gethostbyname so the application's traffic is forced through Tor when the mechanism is applicable.
The Tor Project blog announced torsocks 1.2 in October 2011 as a Linux, BSD, and Mac OS X application for using network applications such as ssh and irssi with Tor. That release focused on adding a test suite, cleaning source code, simplifying the build, compiling on more BSD versions, and adding leak-prevention defenses.
By August 2014, Tor Weekly News said torsocks 2.0 was considered stable after more than a year of effort, describing it as a wrapper program that forces an application's network connections through Tor. Later Tor Project writing about oniux in 2025 used torsocks as the established comparison point and explained its libc-overriding approach and leak limitations.
torsocks became a standard companion package for command-line Tor users because it lets existing tools like ssh, irssi, curl-like clients, and other dynamically linked libc applications attempt network access through Tor without those applications adding native SOCKS support.
The input package facts show torsocks packaged across Homebrew, Debian/Ubuntu via libtorsocks, Fedora/dnf, Arch/pacman, Nix, MacPorts, apk, and zypper. That breadth reflects its role as a small Unix privacy utility commonly installed beside tor.
The README's basic usage is torsocks [application], with torsocks ssh username@host as an example. It also documents direct LD_PRELOAD usage with libtorsocks.so, and warns that applications using raw syscalls or bypassing libc cannot be protected by this mechanism.
The wrapper reads /etc/tor/torsocks.conf or a TORSOCKS_CONF_FILE override, and otherwise uses sensible defaults for common Tor installations. Package nerds use it for quick torification of terminal tools, circuit isolation experiments, and privacy-aware testing where a full network namespace or VM would be heavier.
torsocks is a classic package-nerd tool because it is small, composable, and sharp-edged: it gives ordinary commands a Tor routing context, but its README clearly states the LD_PRELOAD ceiling. That makes it useful and also educational for understanding where user-space wrappers stop and stronger isolation begins.
Its continued relevance is visible in Tor Project's 2025 oniux announcement, which presents oniux as a newer alternative for Linux isolation while using torsocks as the familiar baseline.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
/etc/tor/torsocks.confexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
torsocks | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://gitlab.torproject.org/tpo/core/torsocks
install metadata
| Package key | brew:torsocks |
|---|---|
| Version | 2.5.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/torsocks |
| Homepage | https://gitlab.torproject.org/tpo/core/torsocks |
| Upstream docs | https://gitlab.torproject.org/tpo/core/torsocks#readme |
| License | GPL-2.0-only |
| Source archive | https://gitlab.torproject.org/tpo/core/torsocks/-/archive/v2.5.0/torsocks-v2.5.0.tar.bz2 |
| Build dependencies | autoconf, automake, libtool |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | torsocks |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libtorsocks 2.5.0-1+deb13u1
use SOCKS-friendly applications with Tor (library)
https://gitweb.torproject.org/torsocks.git
sudo apt install libtorsockstorsocks 2.5.0-1+deb13u1
use SOCKS-friendly applications with Tor
https://gitweb.torproject.org/torsocks.git
sudo apt install torsockstorsocks
nix profile install nixpkgs#torsockstorsocks 2.4.0-1
use SOCKS-friendly applications with Tor
https://gitweb.torproject.org/torsocks.git
sudo apt install torsockstorsocks 2.5.0-r0
Wrapper to safely torify applications
https://gitlab.torproject.org/tpo/core/torsocks
sudo apk add torsockstorsocks-doc 2.5.0-r0
Wrapper to safely torify applications (documentation)
https://gitlab.torproject.org/tpo/core/torsocks
sudo apk add torsocks-doctorsocks 2.4.0-10.fc43
Use SOCKS-friendly applications with Tor
https://gitweb.torproject.org/torsocks.git
sudo dnf install torsockstorsocks 2.5.0-1
Wrapper to safely torify applications
https://gitlab.torproject.org/tpo/core/torsocks
sudo pacman -S torsockstorsocks
sudo port install torsockssource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.