GenerationIP

Just for you

  • Increase font size
  • Default font size
  • Decrease font size
Home Documentation Howto Howto setup your linux to pass through proxy server with /etc/profile.d

Howto setup your linux to pass through proxy server with /etc/profile.d

E-mail Print PDF
User Rating: / 5
PoorBest 

Type : System
Operating System : Linux

If you have your linux server behind a proxy server this configuration can help you to pass through the proxy server.

SETUP

Go to the folder profile.d

# cd /etc/profile.d

Create a new file with vi :

# vi proxy.sh

Add those line :

#proxy.sh
export http_proxy=http://proxyserver:port/
export ftp_proxy=http://proxyserver:port/
export no_proxy=localhost,127.0.0.1
export HTTP_PROXY=http://proxyserver:port/
export FTP_PROXY=http://proxyserver:port/

Now, when you logon those value are loaded.

If you need to use autentification update the line like that :

http_proxy=http://user:passwd@proxyserver:port

 

Last Updated on Tuesday, 23 March 2010 22:10  


Newsflash

Spacewalk opensource REDHAT satellite's project

Spacewalk is a very interesting open source project based on satellite RedHat. If you're a RedHat user, you know what I mean. For me, the satellite REDHAT is one of the most professional tools for server management and reduces management time.

If i have the time, i will tried to make a howto on the installation of this projet.

Fabien FAYE