2

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 ....

2

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:

[ProxyList]
socks5  127.0.0.1   9050

Check curl is Homebrew, not system version:

$ which curl
/usr/local/bin/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  ...  127.0.0.1:9050  ...  52.58.99.202:80  ...  OK
{
  "ip": "194.71.109.74",
  "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.

0

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 .