This article is a mirror article of machine translation, please click here to jump to the original article.

View: 596|Reply: 1

[linux] Linux set up a proxy to surf the Internet scientifically

[Copy link]
Posted on 10/24/2025 9:46:05 AM | | |
This post was last edited by Summer on 2025-10-24 09:47

export http_proxy="http:// proxy address: port"
export https_proxy="http:// proxy address: port"
nano ~/.bashrc
Add the agent configuration at the end of the file
export http_proxy="http:// proxy address: port"
export https_proxy="http:// proxy address: port"
source ~/.bashrc
curl -IThe hyperlink login is visible.
Return 200 but can't get the web page data
sm@ubuntu:~$ curl -IThe hyperlink login is visible.200 Connection establishedcurl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Replace socket5# with your host IP
export http_proxy="socks5://192.168.1.100:7897"
export https_proxy="socks5://192.168.1.100:7897"
Perform curl -I againThe hyperlink login is visible.Get the web page data
The agent configuration is successful







Previous:On x86 version of Ubuntu, use Qemu to run the Arm version of Ubuntu
Next:To compile the latest libbpf-bootstrap project, you must use the latest version of clang
 Landlord| Posted on 10/24/2025 9:47:46 AM |
Cancel the export http_proxy
# Cancel http_proxy variables
unset http_proxy

# Cancel https_proxy variables
unset https_proxy
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com