Socks5-proxy-server is a proxy server that allows you to route traffic through a SOCKS5 proxy, providing several features such as authentication, encryption, and SOCKS5 protocol. In this tutorial, we will guide you through the installation process of socks5-proxy-server on Debian Latest.
Before installing socks5-proxy-server, make sure to install the required dependencies using the following command.
apt-get update && apt-get install -y git build-essential
Next, you need to clone the socks5-proxy-server repository from Github using the following command.
git clone https://github.com/nskondratev/socks5-proxy-server.git
Once the cloning process is completed, navigate to the cloned socks5-proxy-server directory and build the binary using the following command.
cd socks5-proxy-server
make
Finally, install the binary using the following command.
cp socks5-proxy /usr/local/bin/
The socks5-proxy-server configuration file is located at /etc/socks5-proxy/socks5-proxy-server.conf
. Open the configuration file using your favorite text editor.
nano /etc/socks5-proxy/socks5-proxy-server.conf
In the configuration file, you can customize the settings according to your needs.
# listening port
port = 1080
# log level
loglevel = INFO
# authentication
# Uncomment the following line to enable authentication.
#users = [{"username": "user1", "password": "password1"}]
# outgoing connection
# Uncomment the following line to enable outgoing connection.
#outgoing_addr = "0.0.0.0"
# encryption
# Uncomment the following line to enable encryption.
#encryption = true
# encryption key
# Uncomment and set the following line to enable encryption with specified key.
#key = "0123456789abcdef"
Once you have made the necessary changes, save and close the configuration file.
You can start the socks5-proxy-server using the following command.
socks5-proxy-server -c /etc/socks5-proxy/socks5-proxy-server.conf
To test the socks5-proxy-server, you can use any web browser or command-line tool that supports SOCKS5 proxy.
For example, you can use the following command to test the proxy server using curl.
curl -x socks5://localhost:1080 http://example.com/
If the command returns the HTML content of the example.com homepage, then the proxy server is working correctly.
In this tutorial, we have shown you how to install and configure socks5-proxy-server on Debian Latest. You can now use socks5-proxy-server for routing traffic through a SOCKS5 proxy with several features like authentication, encryption, and SOCKS5 protocol.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!