Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Using server version of 10.4 beta 2

Need to to set the proxy that the system needs to use

Thanks

share|improve this question
I would like to setup the proxy from a /etc/network/interfaces file, which has been enhanced with guessnet-magic; so depending on the network I end up using I want to setup the system wide proxy. – blueyed Aug 11 '11 at 18:44
oh man, this is just mean, over 10k views, and only 4 up boats :( – thecoshman May 24 '12 at 7:56

3 Answers

Depending on your needs you could add

   http_proxy="http://your.proxy.here:3128/"
   https_proxy="http://your.proxy.here:3128/"
   ftp_proxy="http://your.proxy.here:3128/"

to /etc/environment to have them set by the login-process.

cheerio

share|improve this answer
would this apply the proxy settings even if no one logs in? Ideally, I don't want to have to arse around on the machine, just to update it or what not. – thecoshman Apr 15 '10 at 11:59
Typo: cat /etc/environment – medigeek Jan 9 '12 at 8:58
Fixed, thanks medigeek – Lairsdragon Sep 13 '12 at 17:36

http://studyhat.blogspot.com/2010/01/squid-proxt-server.html

in place of yum install you can use sudo apt-get install squid then follow the blog!!!

share|improve this answer
1  
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Mark Henderson May 22 '12 at 2:03

To proxy updates, add a new file called 01proxy to your /etc/apt/apt.conf.d/ directory with the following line:

Acquire::http::proxy "http://[user]:[password]@[server_ip_or_name]:[port#]";

Substitute the user name/password used to log into the proxy (if required), the server ip or fully-resolved name, and the proxy port # to use when adding this line.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.