darwinshy / NITS-LAN-Proxy

Friendly guide to configuring proxy server on your systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NITS LAN Proxy

Proxy Address :  172.16.199.40
Proxy Port    :  8080

Ubuntu

Head to settings and open network. Set network proxy to manual, and configure the proxy as following

HTTP Proxy: 172.16.199.40:8080
HTTPS Proxy: 172.16.199.40:8080

To get CLI tools to use the proxy, we need to configure two more files.

File 1 : .bashrc file in your home directory (hidden file)

Edit the file and export these proxy environment variables

export HTTP_PROXY=http://172.16.199.40:8080
export HTTPS_PROXY=https://172.16.199.40:8080

File 2 : /etc/apt/apt.conf

If the file doesn't exist, create it and add these two lines in the apt.conf file:

Acquire::http::proxy "http://172.16.199.40:8080/"
Acquire::https::proxy "https://172.16.199.40:8080/"

Note: Don't confuse apt.conf.d with apt.conf

Router

Add the network gateway IP in ignore list.

About

Friendly guide to configuring proxy server on your systems

License:GNU General Public License v3.0