sudo port install polipo
$ polipo socksParentProxy=localhost:1080
# vi ~/.poliporc
socksParentProxy = “127.0.0.1:1080″
socksProxyType = socks5
proxyAddress = "::0" # both IPv4 and IPv6
# or IPv4 only
# proxyAddress = "0.0.0.0"
proxyPort = 8123
$ polipo -c ~/.poliporc
$ curl --proxy http://127.0.0.1:8123 https://www.google.com