Using Debian behind a Proxy


If you are using Debian behind a proxy (e.g. Squid), you just have to declare the following environment variables to use it:

export HTTP_PROXY=[IP]:[PORT]
export HTTPS_PROXY=[IP]:[PORT]
export FTP_PROXY=[IP]:[PORT]

An example for [IP]:[PORT] could be 192.168.0.254:3128

In order to stay persistent, you could add the above commands to ~/.profile or /etc/bash.bashrc for example.