Tuesday, 2 October 2018

How to configure proxy settings with user authentication in CentOS 7

Set the following proxy environment variables in CentOS server to use a proxy on the Linux command-line if the internet connection is behind a proxy:

[root@linuxcnf ~]# export {http,https,ftp}_proxy=http://<username>:<password>@<Proxy-Server-IP-Address>:<Proxy-Port>

For example:

[root@linuxcnf ~]# export {http,https,ftp}_proxy=http://<username>:<password>@

Run the following command to verify the variables:

[root@linuxcnf ~]# env|grep proxy
[root@linuxcnf ~]#

Now the proxy configured!!!


  1. This comment has been removed by the author.

  2. This is also a very good post which I really enjoy reading. It is not everyday that I have the possibility to see something like this. vpn

  3. Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. 熊猫VPN

  4. Thank you for your post, I look for such article along time, today i find it finally. this post give me lots of advise it is very useful for me. vpn About

  5. I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article. fanqiang-vpn

  6. We’ve compiled the best VPN推荐 for torrenting and found that most fall in one of four categories:
    1.Allow unlimited, unrestricted torrenting
    2.Allow limited torrenting only on specific servers
    3.Allow but don’t encourage and don’t