Configure CentOS / RedHat 7 to use a proxy

Global settings stored here:
vi /etc/profile

Add to the end:
MY_PROXY_URL=”http://proxyserver:portnumber/”
HTTP_PROXY=$MY_PROXY_URL
HTTPS_PROXY=$MY_PROXY_URL
FTP_PROXY=$MY_PROXY_URL
http_proxy=$MY_PROXY_URL
https_proxy=$MY_PROXY_URL
ftp_proxy=$MY_PROXY_URL
export HTTP_PROXY HTTPS_PROXY FTP_PROXY http_proxy https_proxy ftp_proxy

For example:
MY_PROXY_URL=”http://proxy.dsc.local:8080/”

Leave a Reply