Proxy Settings Note

There are so many different system or tool configs to set if you are behind a proxy. This article simple note where and how to set them.

I will use these settings for the following example:

  • Proxy Host: 192.168.1.1
  • Proxy Port: 3128

Ubuntu

Config path: /etc/environment

http_proxy=http://192.168.1.1:3128
http_proxy_request_fulluri=1
https_proxy=http://192.168.1.1:3128
https_proxy_request_fulluri=0
no_proxy=localhost,127.0.0.1,localaddress,.localdomain.com

HTTP_PROXY=http://192.168.1.1:3128
HTTP_PROXY_REQUEST_FULLURI=1
HTTPS_PROXY=http://192.168.1.1:3128
HTTPS_PROXY_REQUEST_FULLURI=0
NO_PROXY=localhost,127.0.0.1,localaddress,.localdomain.com
1
2
3
4
5
6
7
8
9
10
11

NPM

Config path: ~/.npmrc

proxy=http://192.168.1.1:3128/
https-proxy=http://192.168.1.1:3128/
strict-ssl=false
registry=http://registry.npmjs.org/
1
2
3
4

apt-get

Config path: /etc/apt/apt.conf.d/95proxies

Acquire::http::proxy "http://192.168.1.1:3128";
Acquire::ftp::proxy "ftp://192.168.1.1:3128";
Acquire::https::proxy "http://192.168.1.1:3128";
1
2
3
Last Updated: 4/22/2019, 2:30:41 AM