Fedora 30
Sponsored Link

FTP Server : Install ProFTPD2019/05/14

 
Install ProFTPD to configure FTP Server.
[1] Install and configure ProFTPD.
[root@www ~]#
dnf -y install proftpd
[root@www ~]#
vi /etc/proftpd.conf
# line 77: change to your hostname

ServerName       "
www.srv.world
"
# line 79: change to your email address

ServerAdmin      
root@srv.world
# near line 113: add

# get access-log and auth-log

ExtendedLog     /var/log/proftpd/access.log WRITE,READ default
ExtendedLog     /var/log/proftpd/auth.log AUTH auth
[root@www ~]#
vi /etc/ftpusers
# add users you prohibit to FTP access

test
[root@www ~]#
systemctl start proftpd

[root@www ~]#
systemctl enable proftpd

[2] If Firewalld is running, allow FTP service.
[root@www ~]#
vi /etc/proftpd.conf
# add to the end: fix PASV ports

PassivePorts 21000 21010
[root@www ~]#
systemctl restart proftpd
[root@www ~]#
firewall-cmd --add-service=ftp --permanent

success
[root@www ~]#
firewall-cmd --add-port=21000-21010/tcp --permanent

success
[root@www ~]#
firewall-cmd --reload

success
[3] If SELinux is enabled, change Boolean setting.
[root@www ~]#
setsebool -P ftpd_full_access on

Matched Content