macOS
brew install torsockslocal Homebrew formula metadata
sudo port install torsocksMacPorts ports tree · net/torsocks/Portfile · ソース: api.github.com
brew / 順位 2981
torsocks のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
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ソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.