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

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?
 
Back
Top Bottom