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
②Select network
③Choose network proxy
④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.
⑤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
②Add an agent and view agent information
伪示例:
export http_proxy=http://proxyAddress:port
export https_proxy=http://proxyAddress:port
Enter the query command to see the agent information
③ You can delete the agent through instructions or close the terminal directly
unset http_proxy
unset https_proxy
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