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 comment:

  1. You completed certain reliable points there. I did a search on the subject and found nearly all persons will agree with your blog. vpn