Step 1 — Installing vsftpd
Let’s start by updating our package list and installing the vsftpd
daemon:
- sudo apt update
- sudo apt install vsftpd
When the installation is complete, let’s copy the configuration file so we can start with a blank configuration, saving the original as a backup:
- sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.orig
With a backup of the configuration in place, we’re ready to configure the firewall.
Step 2 — Opening the Firewall
Let’s check the firewall status to see if it’s enabled. If it is, we’ll ensure that FTP traffic is permitted so firewall rules don’t block our tests.
Check the firewall status:
- sudo ufw status