Set proxy for linux terminal connection

Cent OS

HTTP proxy can be configured in different ways

1. Terminal Session

Configuring HTTP proxy for terminal can be achieved by setting proxy values using terminal. These will be application for a particular session. Setting will be cleared once the session closed from client

Export the below variables in terminal for setting proxy with out authentication
export http_proxy='http://proxyserveraddress:port'    
export https_proxy='https://proxyserveraddress:port'
Common port number used for HTTP proxy is 3128.  User can give either proxy ip address or fully qualified domain name.


Disable proxy:
Unset the variables, we can remove proxy configuration for session.
unset http_proxy
unset https_proxy


Comments

Popular posts from this blog

python-docx | docx | No module named 'exceptions'

Fixing TortoiseSVN icons overlay in Windows 10

MySQL 8 User creation and grant privileges