Requirements: Since access to some websites on the network is particularly slow, in order to improve access speed, you may need to use a SOCKS5 proxy to access it to speed up access. Mainstream service software includes: Dante, SS5, gost, etc.
review
Dante
Dante is a product developed by Inferno Nettverk A/S. It contains a SOCKS server and a SOCKS client, and implements RFC 1928 and related standards. Dante is a flexible product that can be used to provide convenient and secure network connectivity. December 15, 2024: Dante version 1.4.4 is now available.
Official Website:The hyperlink login is visible. Download:The hyperlink login is visible. Configuration documentation:The hyperlink login is visible.
SS5
SS5 is a SOCKS server that implements the SOCKS v4 and v5 protocols. As a proxy server, SS5 is responsible for authenticating, analyzing, and processing network requests for clients. It establishes a connection to the application host for the client application.
In fact, at the beginning, I wanted to build SS5 and check it outThe last version was updated in 2013, which is too far away, and gave up.
Source code address:The hyperlink login is visible.
Dante-1.4.4 Deployment Tutorial
Purchased a virtual machine from Azure, system: Rocky Linux 9.6, first, install the dependency package with the following command:
Compiling the dante-1.4.4 version from source, the command is as follows:
The output is as follows:
Configure status:
Client: Enabled
Server: Enabled
Preloading: Enabled
Libwrap: Disabled, tcpd.h missing BSD Auth: Disabled, usable bsd_auth.h not found
PAM: Enabled
GSSAPI: Enabled
KRB5: Enabled
SASL: Enabled
UPNP: Not found/disabled
Compatability: issetugid setproctitle strlcpy strvis
Modules:
redirect: Not found
bandwidth: Not found ldap: Not found
pac: Not found As shown below:
After the installation is successful, check the version with the following command:
Create a new sockd.conf configuration as follows:
Create a new sockd.service service file based on the systemd rule, and configure it as follows:
Set the boot boot and start the service with the following commands:
As shown below:
Remember that the network firewall needs to allow port 50001, omitted.
Use curl tests to access through the socks5 agent with the following command:
The error is as follows:
curl: (7) No authentication method was acceptable. (It is quite likely that the SOCKS5 server wanted a username/password, since none was supplied to the server on this connection.)
The error is due to the need for username, password authentication to allow access to the target website through the proxy, creating a user on the Dante server, creating a user without a home or shell, and only for proxy authentication. The command is as follows:
Using curl test again, the command is as follows:
As shown below:
Reference:
The hyperlink login is visible.
The hyperlink login is visible.
The hyperlink login is visible. |