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 this text appears, the proxy is running.
telnet localhost 1080
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Modify configuration file
vim /etc/opt/ss5/ss5.conf
Find the corresponding line and delete the “#”. Then, at the end of the “auth” line, change the “-” in the Authentication column to “u”, and change the “-” in the Auth column of the “permit” line to “u”. Save the file when you're done.
# 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 username and password
Format: username + space + password.
vim /etc/opt/ss5/ss5.passwd
service ss5 restart
Quick Deployment Guide
1. Drag and drop the script file ss5.sh onto the server
2. Grant execute permission to the script and run it
sudo chmod +x ss5.sh && ./ss5.sh && cd /etc/opt/ss5/
3. Drag and drop the configuration file into /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.