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