Categories
ubuntu

Proxy setting in ubuntu

When we use ubuntu 16.04 or higher normal proxy setting will not work. If your internet is not working then set following things

sudo gedit /etc/environment

Add following lines in the environment file.

http_proxy=”http://proxyserveripaddress:portno”
https_proxy=”http://proxyserveripaddress:portno” ftp_proxy=”http://proxyserveripaddress:portno”
socks_proxy=”http://proxyserveripaddress:portno”

For example if your proxy server ip address is 192.168.0.1 & port address is 8080

http_proxy=”http://192.168.0.1:8080″
https_proxy=”http://192.168.0.1:8080″ ftp_proxy=”http://192.168.0.1:8080″ socks_proxy=”http://192.168.0.1:8080″

Save the file and

Reboot