Installing and configuring FTP server on Ubuntu

Install FTP server:

apt-get install proftpd

To jail all users in their home directories uncomment line

DefaultRoot                     ~

in /etc/proftpd/proftpd.conf. To jail all but one users modify this line as follows:

DefaultRoot                     ~ !<user1>

note that there is a space after ‘~’.

To log read and write operations add ExtendedLog directive near SystemLog:

ExtendedLog /var/log/proftpd/extended.log read,write

Restart FTP server:

/etc/init.d/proftpd restart

Configuring firewall rules for passive FTP mode

Uncomment existing or add new PassivePorts key in proftpd configuration file:

grep PassivePorts /etc/proftpd/proftpd.conf
nano /etc/proftpd/proftpd.conf
#PassivePorts 49152 65534
service proftpd restart

add the firewall rule allowing the range you specified:

ufw status verbose
ufw allow 49152:65534/tcp

1 Response to Installing and configuring FTP server on Ubuntu

  1. dmitriano says:

    On some clients FTP transfer from my Ubuntu 12.04 Server is very slow. My server bandwidth is 250MB/s and client bandwidth is about 3MB/s but I download a file at about 350KB/s. I use proftpd with very small changes in its configuration described here. On other clients I have about 1MB/s.

Leave a Reply to dmitriano Cancel reply

Your email address will not be published. Required fields are marked *