Thursday, August 8, 2013

Proxy Settings in Linux command line

Proxy Setting commands on Linux  Console :

Example:1 Access http base sites via proxy , use below variable

# export http_proxy=http://:

# export http_proxy=

Example:2 Password Protect Proxy Settings

# export http_proxy=http://USERNAME:PASSWORD@:PORT

# export http_proxy=http://nsit:*****

Using Above  Command we have set the proxy setting along with user name and password.

Example:3 To access secure sites(https) via proxy , set below variable

#  export https_proxy=http://:

# export https_proxy=

Example:4 To access ftp based sites via Proxy , set the below variable

# export ftp_proxy=http://:

# export ftp_proxy=

Note : As these variables are declared for the particular session , to set it permanently , define these variables in the file “/etc/bash.bashrc”

export http_proxy=
export ftp_proxy=

Example:5   Proxy Settings in APT  on Ubuntu Linux

# Vi /etc/apt/apt.conf

Acquire::http::Proxy "http://:";

Example:6  Proxy Settings for RSYNC

# export RSYNC_PROXY="http://:

# export RSYNC_PROXY="”

Taken From here

1 comment:

Adnane Rahioui said...

thanks a lot for this cool tuturial i will try to use it on my website Best Uk Proxy it would be a pleasure that you visit my blog thanks again. chears