Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: VPS Setup

Secure FTP with UFW on Ubuntu—install vsftpd with
apt install vsftpd
then allow FTP ports with
ufw allow 20/tcp && ufw allow 21/tcp
For passive mode open a range (e g 40000-50000) with
ufw allow 40000:50000/tcp
and update /etc/vsftpd conf with
nano /etc/vsftpd.conf
: pasv_min_port=40000 pasv_max_port=50000 Restart with
systemctl restart vsftpd
and enable UFW (ufw enable) Test with
ftp ip
—expect a login prompt On Vultr this ensures FTP uptime—verify with
netstat -tulnp | grep vsftpd
expecting ports open paired with Fail2ban for added security

Back to All Tips