Proxies configuration is an important problem that waste my time anytime i start a new mission within the fucking customer's network.
-
To setup a proxy access for all linux commandlines :
export http_proxy="http://<user>:<pass>@<proxyip>:<proxyport>" export https_proxy="http://<user>:<pass>@<proxyip>:<proxyport>" export ftp_proxy="http://<user>:<pass>@<proxyip>:<proxyport>"
Usefull for pip for exemple
export HTTP_PROXY="http://<user>:<pass>@<proxyip>:<proxyport>" export HTTPS_PROXY="http://<user>:<pass>@<proxyip>:<proxyport>" export FTP_PROXY="http://<user>:<pass>@<proxyip>:<proxyport>"
-
To configure git to pass by the proxy and accepet the fucked proxy cert:
git config --global http.proxy http://<user>:<pass>@<proxyip>:<proxyport> git config --global https.proxy http://<user>:<pass>@<proxyip>:<proxyport> git config --global https.sslVerify=false export GIT_SSL_NO_VERIFY=true
-
For docker you need to go here.