macOS
brew install torsockslocal Homebrew formula metadata
sudo port install torsocksMacPorts ports tree · net/torsocks/Portfile · 来源: api.github.com
安装
brew install torsockslocal Homebrew formula metadata
sudo port install torsocksMacPorts ports tree · net/torsocks/Portfile · 来源: api.github.com
sudo apk add torsocksAlpine Linux edge package indexes · torsocks · 来源: dl-cdn.alpinelinux.org
sudo apt install torsocksDebian stable package indexes · torsocks · 来源: deb.debian.org
sudo dnf install torsocksFedora Rawhide package metadata · torsocks · 来源: dl.fedoraproject.org
nix profile install nixpkgs#torsocksnixpkgs package indexes · pkgs/by-name/to/torsocks/package.nix · 来源: api.github.com
sudo pacman -S torsocksArch Linux sync databases · torsocks · 来源: geo.mirror.pkgbuild.com
概览
Use SOCKS-friendly applications with Tor
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.conf可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
torsocks | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:torsocks |
|---|---|
| 版本 | 2.5.0 |
| 软件包管理器 | Homebrew |
| 主页 | https://gitlab.torproject.org/tpo/core/torsocks |
| 最后更新 | 2026-07-14T17:14:18+09:00 |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-12.fc45
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 torsocks来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.