-: Set A Proxy :-
If you set a global proxy in Gnome (I'm not sure
about other desktop environments), you'll notice that the terminal ignores it.
Here's how to set a proxy for the terminal:
1.For a HTTP proxy, simply run the following
command in a terminal:
export
http_proxy='http://YOUR_USERNAME:YOUR_PASSWORD@PROXY_IP:PROXY_PORT/'
2.For a secure connection (HTTPS), use:
export https_proxy='http://YOUR_USERNAME:YOUR_PASSWORD@PROXY_IP:PROXY_PORT/'
Example :-
# export http_proxy='http://localhost:8080'
# export https_proxy='http://localhost:8080'
How to check if the terminal proxy is working :-
#
env | grep -i proxy
# curl icanhazip.com
Reset the proxy :-
# unset http_proxy
# unset https_proxy
No comments:
Post a Comment