Ubuntu network proxy settings

    A network proxy is a computer network technology that acts as an intermediary between the client and the server, so that the communication between the client and the server actually occurs through the proxy server. Proxy servers can provide a variety of functions, such as caching, filtering, security, and more. When using a network proxy, the client sends a request to the proxy server, which forwards the request to the target server and returns the response to the client. Network proxies can be used in various scenarios such as hiding the client's real IP address, improving network performance, and filtering network content.

Instructions to view network proxy in Ubuntu

env |grep -i proxy

1. Through graphic configuration, permanently effective

①Open system settings

d5e4f67c415c5cd7b8c818ca92d6ae70.png

②Select network

01aaa820f0b5b5c592fd6e5a931008e9.png

③Choose network proxy

43982da78514500350529d0491fbd95f.png

④Open the network proxy settings, select manual, and enter the proxy IP and port. Open the terminal and enter the query command to see the information.

aa40c4ca900454ea2140bffccf9f9ec5.png

6bed6f92e3d900eef4538567b2fc826d.png

305c11a93b770064a9815d165192f760.png

⑤Cancel proxy settings

Just follow the default recovery parameters and turn off the network proxy. Reopen the terminal and check the information. You can see that the agent has been cancelled.

2. Command line, temporarily valid

①Open the terminal

dec91e1a8c5c42810f03a4c70f2f9318.png

②Add an agent and view agent information

伪示例:
export http_proxy=http://proxyAddress:port
export https_proxy=http://proxyAddress:port

1393486b7d0591be5cf5904e1be99b82.png

4855d98267b154d3874cd62931c6010a.png

Enter the query command to see the agent information

d2156842b2a8189cb16887e89ca60bc2.png

62de12abadad7b14200491bf485994fa.png

③ You can delete the agent through instructions or close the terminal directly

unset http_proxy
unset https_proxy

4ffc41d9a214bf1188a68779dabfc94f.png

335770750b804373750ec0e4b2e86cdb.png

Welcome to follow the official account: Embedded Learning and Practice

reference:

https://blog.csdn.net/dragonstrong/article/details/118915771
https://blog.csdn.net/weixin_41990671/article/details/106180870

Guess you like

Origin blog.csdn.net/weixin_46158019/article/details/132614145