System proxy settings in LINUX

Setting up proxy is an important thing for those who are behind proxy  firewall.Proxy is a intermediate firewall sever which provide connection to internet and various internal servers using authentication.

To setup proxy in linux, there are two ways this can be done using the

  • GUI tool or
  • Command mode.

GUI tool :

Type the below command in your terminal to access the network proxy prefrences GUI tool.

gnome-network-preferences


You will find three buttons to check.

  • Use no proxy
  • Manual Proxy configuration
  • Automatic proxy detection

Check Manual Proxy configuration and  enter your corresponding proxy server address and port number to continue browsing.

Command mode:

There is few  system variables which are used to detect proxy configuration in Linux systems. That is http_proxy, https_proxy, ftp_proxy, … and other few to use gopher, SOCKS.

To set up proxy connection in your system you can do this by typing the below command in your terminal.

set http_proxy=http://<username>:<password>@<proxy server>:<port>/

set https_proxy=https://<username>:<password>@<proxy server>:<port>/

set ftp_proxy=ftp://<username>:<password>@<proxy server>:<port>/

The above commands will set the proxy setting for the respective terminal. To do system wide changes you should export the variable.

export http_proxy=http://<username>:<password>@<proxy server>:<port>/

export https_proxy=https://<username>:<password>@<proxy server>:<port>/

export ftp_proxy=ftp://<username>:<password>@<proxy server>:<port>/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s