Configure Proxy Clients to connect to the Proxy server On RedHat 7

[1] Configure proxy settings like follows on CentOS Client.
[root@client ~]# vi /etc/profile
# add follows to the end (set proxy settings to the environment variables)

MY_PROXY_URL=”http://ip_proxy:port_proxy/”
HTTP_PROXY=$MY_PROXY_URL
HTTPS_PROXY=$MY_PROXY_URL
FTP_PROXY=$MY_PROXY_URL
NO_PROXY=”127.0.0.1,localhost,*.mylab.local”
http_proxy=$MY_PROXY_URL
https_proxy=$MY_PROXY_URL
ftp_proxy=$MY_PROXY_URL
no_proxy=”127.0.0.1,localhost,*.mylab.local”

export HTTP_PROXY HTTPS_PROXY FTP_PROXY NO_PROXY http_proxy https_proxy ftp_proxy no_proxy

[root@client ~]# source /etc/profile
# it’s OK all, but it’s possible to set proxy settings for each application like follows

# for yum

[root@client ~]# vi /etc/yum.conf
# add to the end

proxy=http://ip_proxy:port_proxy/
# for wget

[root@client ~]# vi /etc/wgetrc
# add to the end

http_proxy = http://ip_proxy:port_proxy/
https_proxy = http://ip_proxy:port_proxy/
ftp_proxy = http://ip_proxy:port_proxy/