Like it!

Join me on Facebook!

Like it!

How to configure proxy settings on Linux

And store them forever in your configuration file.

In order to configure proxy settings in Linux you basically have to add a couple of environment variables. The majority of the software out there will search for those variables and, if available and properly set, will use them when connecting to the outside world.

The most common are:

http_proxy=http://<server>:<port>
https_proxy=http://<server>:<port>
ftp_proxy=http://<server>:<port>

Where <server> is the name (or IP) of the proxy, and <port> is... the proxy port. For example:

http_proxy=http://violent.proxy:3128
...

Some proxy servers require authentication. The syntax is:

http_proxy=http://<user>:<password>@<server>:<port>
...

I usually put that configuration in my ~/.profile file.

comments