Is there an analog on mac os for http://linux.die.net/man/1/socksify ? So that i can use it like on linux: socksify mongo ....


I use proxychains-ng which can be configured to use a SOCKS proxy. It is available via Homebrew: brew install proxychains-ng.

Note there is a known limitation on 10.11+ that SIP prevents hooking of system binaries - see GitHub issue #78 - but it can be used with anything installed via Homebrew, as the binaries are in directories not affected by SIP. For example, to use (Homebrew installed & linked) curl through a Tor SOCKS proxy, your .proxychains/proxychains.conf would look like this:

socks5   9050

Check curl is Homebrew, not system version:

$ which curl

proxychains4 curl http://ipinfo.io then does this:

[proxychains] config file found: /Users/me/.proxychains/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] Dynamic chain  ...  ...  ...  OK
  "ip": "",
  "hostname": "tor.keff.org",
  "city": "Stockholm",
  "region": "Stockholm",
  "country": "SE",
  "loc": "59.3333,18.0500",
  "org": "AS41281 Scaling Networks AB",
  "postal": "173 11"

The README caveats explain why it does not work for everything, but it may be worth a try.


ProxyCap might be what you are looking for. It allows you to socksify a command line program as well as a complete app bundle.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .