Configuring iTerm and Git to use a proxy server in OS X

I successfully connect to the Internet using an application called tether for jailbroken iphone. (Now I know the best options).

My iphone is connected to my network of devices with Wi-Fi Wi-Fi.

I have a place in my OS X network settings called iphone, and the proxy is configured to use the correct IP and port for the phone.

I can browse the Internet using Chrome via http and https.

iTerm cannot ping Google. Git can't pull. I searched for many days and don’t see anything β€œeasy” or understand. Any advice is appreciated.

+4
source share
1 answer

The command line tool usually only supports HTTP proxies. To provide HTTP proxies from SOCKS you have Privoxy. After setting up Privoxy, you have an HTTP proxy. The terminal usually says that export http_proxy=ip:port enough for most applications. For git, see here .

But if this is too much for you, you can use sshuttle . It transparently transfers all your connections through the SOCKS proxy server. That is, all the connections on your computer, and after that you do not need to change the proxy settings for your graphical applications.

I use Homebrew as my package manager on Mac, and both Privoxy and sshuttle are available.

+7
source

Source: https://habr.com/ru/post/1341580/


All Articles