Skip to content

Instantly share code, notes, and snippets.

@smileisak
Last active October 23, 2017 14:06
Show Gist options
  • Save smileisak/fe01ee8458c26e267610c57c8bb5ca44 to your computer and use it in GitHub Desktop.
Save smileisak/fe01ee8458c26e267610c57c8bb5ca44 to your computer and use it in GitHub Desktop.
Proxies Configurations

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment