Jump to content

CentOS 5 Proxy Configuration


wildweaselmi
 Share

Recommended Posts

We are currently using a CentOS 5.6 server inside a corporate intranet and so to pull updates down from the internet we must go through a proxy using credentials.



Here is how I did it.


nano /etc/profile

http_proxy="http://domain\user:passwd@proxy.com:80/"

https_proxy=$http_proxy

ftp_proxy=$http_proxy


export http_proxy https_proxy ftp_proxy



reboot CentOS



echo $http_proxy



then run

nano /etc/yum.conf



proxy=http://proxy.com:80

proxy_username=domain\user

proxy_password=passwd





Test yum.conf by searching for an application like wireshark

yum search wireshark



if it's configured correctly you will see it pulling information. if its configured incorrectly you will see something like the following:

 HTTP Error 407: Proxy Authentication Required

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...