A Socks proxy (Socket Secure) is a network protocol designed to allow clients to connect to servers over the Internet. It communicates via Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) and supports authentication and traffic redirection.
A Socks proxy can hide the client's real IP address and allow access to geographically restricted content. Socks proxies are commonly used for bypassing restrictions, online security, and anonymous browsing.
Static residential proxy IP serviceUse a legitimate static IP address provided by the ISP. Residential proxy providers let users choose from a residential IP pool, so they can long-term hide their real IP address. Common uses include software account logins and online investment trading.
How to set up a Socks5 proxy server on CentOS 7:
System: CentOS 7;
System firewall: iptables;
The system has already been configured with domestic yum repositories and the epel repository;
A Socks5 proxy protocol is a network transport protocol that can proxy both TCP and UDP. The benefit of using a Socks5 proxy server is that it can hide the user's real IP address, thereby protecting the user's privacy. Setting up a Socks5 proxy server on CentOS 7 requires the following steps:
1. Start installation
SS5 build and deployment documentation
# Install the ss5 dependency package via yum
yum install -y gcc openldap-devel pam-devel openssl-devel
# First, download ss5
wget http://jaist.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz
# Extract the ss5 installation package
tar -vzx -f ss5-3.8.9-8.tar.gz
# Enter the ss5 folder
cd ss5-3.8.9/
# Compile after entering the directory
./configure
make
make install
chmod a+x /etc/init.d/ss5
If you see this output, it means the proxy is already running.
telnet localhost 1080
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Edit the configuration file.
vim /etc/opt/ss5/ss5.conf
Remove the # from the relevant lines, then change - to u in the Authentication column of the auth line and in the Auth column of the permit line. Save the file when you finish.
# SHost SPort Authentication
#
auth 0.0.0.0/0 - u
# Auth SHost SPort DHost DPort Fixup Group Band ExpDate
#
permit u 0.0.0.0/0 - 0.0.0.0/0 - - - - -
Set a username and password.
Format: username + space + password.
vim /etc/opt/ss5/ss5.passwd
service ss5 restart
Quick deployment guide.
1. Upload the ss5.sh script to the server.
2. Grant execute permission to the script and run it.
sudo chmod +x ss5.sh && ./ss5.sh && cd /etc/opt/ss5/
3. Copy the configuration files to /etc/opt/ss5/.
- ss5.conf
- ss5.passwd
4. Start the ss5 service.
service ss5 restart
Summary
To set up a Socks5 proxy server on CentOS 7, you can use software such as dante or ss5. Among them, dante is better suited for large-scale proxying, while ss5 is lighter and more suitable for small proxy deployments.
After installation is complete, you need to add the relevant username and password information in the configuration file, and make the related port, IP, and authentication settings. Then start the proxy server and open the corresponding port. Finally, configure the proxy settings in the client browser to complete the proxy connection.
It is worth noting that in actual use, you should not only consider issues such as proxy latency and security, but also comply with each platform's usage rules to avoid unnecessary trouble or losses.