How to Set Up Dante Proxy on Ubuntu 20.04 LTS

Here's a tutorial on setting up Dante proxy on Ubuntu 20.04:

  • Update your system:
apt update -y && apt upgrade -y
  • Install Dante:
apt install dante-server -y
  • Remove the default Danty proxy configuration file:
rm -rf /etc/danted.conf
  • Put the following Dante proxy configuration:
logoutput: syslog
user.privileged: root
user.unprivileged: nobody

# The listening network interface or address.
internal: 0.0.0.0 port=1080

# The proxying network interface or address.
external: eth0

# socks-rules determine what is proxied through the external interface.
socksmethod: username

# client-rules determine who can connect to the internal interface.
clientmethod: none

client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}

socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}
  • Configure the Dante proxy by editing the configuration file:
nano /etc/danted.conf
  • Customize the configuration based on your needs. Pay attention to the following parameters:
  1. internal: Specify the network interface or IP range of the machines allowed to use the proxy.
  2. external: Specify the network interface or IP address of the server.
  3. method: Choose the authentication method for clients.
  4. user.privileged and user.unprivileged: Set the user and group that the proxy will run as.
  • Save the changes and exit the editor.
  • Start the Dante service:
systemctl start danted
  • Enable Dante to start on boot:
systemctl enable danted
  • Verify the status of the Dante service:
systemctl status danted
  • Adjust the firewall rules to allow incoming connections on the proxy port (default is 1080):
ufw allow 1080

That's it! You have successfully set up Dante proxy on Ubuntu 20.04. Make sure to configure your client devices to use the proxy server accordingly.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to restrict direct root access in Linux

We can do it just in two steps. Step One: At first we will create new root user as follows (for...

How to extract .tar.gz files in Linux/UNIX OS

A tarball is a group of files that are bundled together using the tar command. Use the...

How to add welcome message when SSH start?

You need to change the contents of /etc/motd. Unfortunately, by default, /etc/motd is a link to...

How to change root password when SSH logged in

Run the following command: passwd Now type your new passwordOnce done, retype new passwordDone!...

How to install Pinguzo on any Linux/UNIX OS

Login to Pinguzo panel using Softaculous account or create an account of Pinguzo To add new...