Proxy Address : 172.16.199.40
Proxy Port : 8080
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
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
Add the network gateway IP in ignore list.