More often than not I find myself behind a proxy server. And then, that one tool I need, just doesn't work. Well, this guide might help.
# Configure the proxy in the proxy.conf file
cat /etc/apt/apt.conf.d/proxy.conf
Acquire::http::Proxy "http://proxy.domain.com:8080";Configure an upstream proxy server:
- Select tab "User options".
- Select sub-tab "Connections".
- Under "Upstream Proxy Servers" add/enable the upstream proxy server to use. Example:
- Destination host:
* - Proxy host:
proxy.domain.com - Proxy port:
8080 - Authentication type: None
- Destination host:
- Click OK
# Set the proxy
export HTTP_PROXY=http://proxy.domain.com:8080
export HTTPS_PROXY=http://proxy.domain.com:8080
export ALL_PROXY=http://proxy.domain.com:8080- Select menu Preferences > Network Settings > Settings...
- Select on of the following:
- Auto-detect proxy settings for this network
- Use system proxy settings
- Manual proxy configuration
# Set the proxy
git config --global http.proxy http://proxy.domain.com:8080
# Check the proxy value
git config --global --get http.proxy
# Unset the proxy
git config --global --unset http.proxy# Set the proxy
export HTTP_PROXY=http://proxy.domain.com:8080
export HTTPS_PROXY=http://proxy.domain.com:8080
export ALL_PROXY=http://proxy.domain.com:8080Different types of proxies are possible:
export HYDRA_PROXY=connect://proxy.domain.com:8080
export HYDRA_PROXY=socks4://proxy.domain.com:8080
export HYDRA_PROXY=socks5://proxy.domain.com:8080Edit the configuration (.opvn file) and add the proxy information. Some examples:
# Simple HTTP proxy
http-proxy proxy.domain.com 8080
# HTTP proxy with Basic authentication
http-proxy proxy.domain.com 8080 stdin basic
# HTTP proxy with NTLM authentication
http-proxy proxy.domain.com 8080 stdin ntlmexport HTTP_PROXY=http://proxy.domain.com:8080
export HTTPS_PROXY=http://proxy.domain.com:8080export http_proxy=http://username:password@proxy.domain.com:8080
export https_proxy=http://username:password@proxy.domain.com:8080
export ftp_proxy=http://username:password@proxy.domain.com:8080
# No proxy for these
export no_proxy="domain1.com,domain2.com,domain3.com"