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 clientExport 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.
Disable proxy:
Unset the variables, we can remove proxy configuration for session.
unset http_proxy
unset https_proxy
Comments
Post a Comment