Skip to content

Instantly share code, notes, and snippets.

@fredcamps
Last active May 9, 2019 14:47
Show Gist options
  • Save fredcamps/532d1bf33f6270ebcf40c13048b98e46 to your computer and use it in GitHub Desktop.
Save fredcamps/532d1bf33f6270ebcf40c13048b98e46 to your computer and use it in GitHub Desktop.
Proxy dot config
# #######
# include these lines of code at your .profile file
# [ -f "${HOME}/.profile_proxy" ] && source "${HOME}/.profile_proxy"
#
# Configure cntlm proxy client (installation needed)
# run cntlm -H for generate password hash
# put these lines at /etc/cntlm.conf
# Username fred
# Domain someproxy.com
# Proxy 10.0.0.41:8080
# Listen 127.0.0.1:8080
# # ovewrite these lines with cntlm -H output
# PassLM 7F4BB72132BAA2A01FA94BD623A70D3B
# PassNT 2C27BB146F74625D159413FC1F30745F
# PassNTLMv2 D3972609581D8260868ED588303F0FF0
export http_proxy=http://localhost:8080
export https_proxy=$http_proxy
export socks_proxy=$ftp_proxy
export ftp_proxy=$http_proxy
export rsync_proxy=$http_proxy
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy
export SOCKS_PROXY=$http_proxy
export FTP_PROXY=$http_proxy
export NO_PROXY=$no_proxy
# run those commands
# echo "insecure" >> ~/.curlrc
# echo "check_certificate=off" >> ~/.wgetrc
# echo "[http]" >> ~/.gitconfig
# echo "proxy = http://localhost:8080" >> ~/.gitconfig
# echo "sslVerify = false" >> ~/.gitconfig
# at .ssh/config put these lines (corkscrew installation needed)
# Host *
# ProxyCommand /usr/bin/corkscrew localhost 8080 %h %p
#
# at emacs.d/init.el put these lines of code
# (setq url-proxy '(("no_proxy" . "localhost")
# ("https" . "localhost:8080")
# ("http" . "localhost:8080")))
# at pip/pip.conf include these lines
# [global]
# trusted-host = pypi.python.org pypi.org files.pythonhosted.org
# require-virtualenv = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment