# Install dsocks with Homebrew, MacPorts

SOCKS client wrapper for *BSD/macOS. Version 1.8 via Homebrew; verified from local package data. Also installable with macports: sudo port install dsocks.

## Install

```sh
sudo av install brew:dsocks
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dsocks
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dsocks
```

  Evidence: MacPorts ports tree: net/dsocks/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:dsocks
- **Package manager:** Homebrew
- **Version:** 1.8
- **Source summary:** SOCKS client wrapper for *BSD/macOS
- **Homepage:** <https://monkey.org/~dugsong/dsocks/>
- **Repository:** <https://github.com/dugsong/dsocks>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- dsocks.sh (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.8
## Project history and usage

dsocks is Dug Song's small SOCKS client wrapper for BSD and Mac OS X.

### Project history

The official page says dsocks implements only enough SOCKS4 and SOCKS5 support to use OpenSSH dynamic forwarding or a local Tor SOCKS proxy. Its upstream distribution was a tarball plus a Google Code SVN checkout.

### Adoption history

The input metadata shows dsocks preserved in Homebrew and MacPorts, fitting the long tail of small Unix networking tools that package managers keep installable after their original hosting era.

### How it is used

The documented examples wrap scp through an SSH dynamic tunnel, use Tor with a DNS proxy to avoid DNS leaks while browsing, and run ssh through Tor with dsocks-torify.sh.

### Why package nerds care

dsocks is a compact historical proxy wrapper: narrow platform target, old source hosting, simple shell-facing UX, and practical value for users who want per-command proxying instead of a larger framework.

### Timeline

- Google Code era: Official page linked a source tarball and SVN checkout.
- 2026 batch: Input metadata shows continued Homebrew and MacPorts packaging.

### Related projects

- OpenSSH is central to the documented dynamic SOCKS forwarding workflow.
- Tor is central to the documented anonymous SSH and browsing examples.
- dpkt is linked by the official page for tor-dns-proxy.py.

### Sources

- <https://monkey.org/~dugsong/dsocks>
- source_facts.package-manager


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Other Package-Manager Records

- MacPorts - dsocks: normalized package name match | MacPorts ports tree: net/dsocks/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/dsocks.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dsocks.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
