Debian route all http traffic through squid

debiannetworkingPROXYsquid

I have a really simple Q. I just need to know how to specify an http proxy (with login credentials) within debian. The squid server is a separate machine, and since the proxy got implemented our web services and backups on the dev server arn't working. so basically i just need to specify an http proxy within debian…

Best Answer

You may want to can create an environnement variable 'http_proxy' throught your .bashrc script and assign it the value like:

export http_proxy=http://login:pass@xxx.xxx.xxx.xxx:3128

There's also manual settings to to with the web browser but for apt-get edit your /etc/apt/apt.conf and add:

use Acquire::http::Proxy "http://login:pass@xxx.xxx.xxx.xxx:3128";

EDIT: You may wish to look at the following article to setup iptables tor edirect the traffic to your proxy: http://www.tldp.org/HOWTO/TransparentProxy-6.html