What are the steps to set up SOCKS5 on Ubuntu?

The steps to set up a Socks5 proxy server on Ubuntu are as follows:

  1. Update the system: In the terminal, execute the following command.
sudo apt update
sudo apt upgrade
  1. Install Dante Server: Dante is a popular Socks5 proxy server. Use the following command to install Dante:
sudo apt install dante-server
  1. Configuration file for Dante.
sudo nano /etc/danted.conf

Add the following content to the end of the file:

internal: eth0 port = 1080
external: eth0
method: username none
user.privileged: root
user.unprivileged: nobody
client pass {
    from: 0.0.0.0/0 to: 0.0.0.0/0
    log: error connect disconnect
}
socks pass {
    from: 0.0.0.0/0 to: 0.0.0.0/0
    log: error connect disconnect
}

Save and exit.

  1. Start Dante Server: execute the following command to launch the Dante Server:
sudo systemctl start danted
  1. To set up automatic startup: run the following command to configure Dante Server to start up automatically.
sudo systemctl enable danted

At this point, the Socks5 proxy server has been successfully set up. You can configure the IP address of Ubuntu and port 1080 in the corresponding proxy client to use the Socks5 proxy service.

bannerAds