Ubuntu 26.04

FTP : Install ProFTPD2026/06/01

 

Install ProFTPD to configure FTP Server.

[1] Install and Configure ProFTPD.
root@www:~#
apt -y install proftpd-core
root@www:~#
vi /etc/proftpd/proftpd.conf
# line 11 : turn to [off] if not need
UseIPv6  off

# line 17 : change to your hostname
ServerName "www.srv.world"

# line 39 : uncomment (specify root directory for chroot)
DefaultRoot ~

root@www:~#
vi /etc/ftpusers
# add users you prohibit FTP connection

test
root@www:~#
systemctl restart proftpd

[2] If UFW is enabled, fix the PASV ports and allow FTP services and the PASV ports.
root@www:~#
vi /etc/proftpd/proftpd.conf
# add to last line
PassivePorts 60000 60100

root@www:~#
systemctl restart proftpd

root@dlp:~#
ufw allow ftp

root@dlp:~#
ufw allow ftp-data

root@www:~#
ufw allow 60000:60100/tcp

Rule added
Rule added (v6)
Matched Content