CentOS - Proxy Server

Associate
Joined
2 Sep 2007
Posts
2,001
Hi All

I've been playing with CentOS in work. We have a proxy server, I've put in the proxy settings in yum.conf and yum works. But what I want to know is there any I can put the proxy settings in some global config file so whatever I use yum, internet, etc it will pick up the proxy settings from that file. I've seen posts on the net talking about /etc/profile?
 
try setting the http_proxy variable

Code:
export http_proxy="http://user:pass@proxy:port"

If that does the job, you can set it permantly in /etc/enviroment file
 
try setting the http_proxy variable

Code:
export http_proxy="http://user:pass@proxy:port"

If that does the job, you can set it permantly in /etc/enviroment file

Cheers. So if I pop that into the environment file when the server boots up and whoever logs in they can go through the proxy?
 
Cheers. So if I pop that into the environment file when the server boots up and whoever logs in they can go through the proxy?

Think so, but ive never used centos so it could be a different file. After some googling, maybe /etc/profile.d but that variable should be the one you want to change anyway.
 
Back
Top Bottom