HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Perfect Lenny behind proxy (http://www.howtoforge.com/forums/showthread.php?t=57801)

nenad 3rd July 2012 09:04

Perfect Lenny behind proxy
 
Hello,

I set up Perfect Server Debian Lenny with ISPConfig, and it worked fine, then I had to move it on another network which is behind PROXY, so I wonder if there is some way to set up proxy sistem-wide in some config file?

Please help, it's quite urgent.

Thank you.

falko 4th July 2012 14:48

http://www.cyberciti.biz/faq/linux-u...ment-variable/

nenad 4th July 2012 15:23

I found those instructions
http://www.thewireframecommunity.com/node/29

Quote:

2 - Configure the proxy settings in the .bashrc
If you want set the proxy for all the users you can do it in the system wide .bashrc file.
nano /etc/bash.bashrc

#proxy settings
export http_proxy=http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT/
export ftp_proxy=http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT/


But it doesn't survive reboot?

I will try your solution.

nenad 4th July 2012 15:43

Your solution WORKS! It survives reboot, you saved my day, thank you :) :)

nenad 15th October 2012 13:12

Just in case that website on the link someday goes offline, I'll post here a solution:


Quote:

Set http_proxy shell variable

Type the following command to set proxy server:

$ export http_proxy=http://server-ip:port/
$ export http_proxy=http://127.0.0.1:3128/
$ export http_proxy=http://proxy-server.mycorp.com:3128/
How do I setup proxy variable for all users?

To setup the proxy environment variable as a global variable, open /etc/profile file:
# vi /etc/profile
Add the following information:
export http_proxy=http://proxy-server.mycorp.com:3128/
Save and close the file.
So here is what I added in /etc/profile

Code:

export http_proxy=http://147.91.173.31:8080/
export https_proxy=http://147.91.173.31:8080/
export ftp_proxy=http://147.91.173.31:8080/



All times are GMT +2. The time now is 04:32.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.