Package name for the FTP server in Linux is vsftpd - Very Secure FTP
# yum install vsftpd -y
#chkconfig vsftpd on
#/etc/init.d/vsftpd start
Open firewall TCP ports of 20 and 21.
Add the following modules to the /etc/sysconfig/iptables-config file
# IPTABLES_MODULES="nf_conntrack_ftp nf_nat_ftp"
By default vsftpd allows anonymous access and download files. Once, you get into the ftp server with #lftp ftp.server.name you can use regular bash commands.
Download and upload files with:
lftp> put somefile.txt - to upload
lftp> get somefile.txt - to download
# Public default directory is - /var/ftp/pub
Configuration file is located below location. Configuration file has many useful options to manage FTP server.
#vim /etc/vsftpd/vsftpd.conf
Selinux booleans can be found below, turn on any boolean according to your configuration.
#getsebool -a |grep ftp
or
#semanage boolean -l |grep ftp
Turn on booleans
# setsebool -P allow_ftpd_anon_write on
# setsebool -P allow_ftpd_anon_write off
# yum install vsftpd -y
#chkconfig vsftpd on
#/etc/init.d/vsftpd start
Open firewall TCP ports of 20 and 21.
Add the following modules to the /etc/sysconfig/iptables-config file
# IPTABLES_MODULES="nf_conntrack_ftp nf_nat_ftp"
By default vsftpd allows anonymous access and download files. Once, you get into the ftp server with #lftp ftp.server.name you can use regular bash commands.
Download and upload files with:
lftp> put somefile.txt - to upload
lftp> get somefile.txt - to download
# Public default directory is - /var/ftp/pub
Configuration file is located below location. Configuration file has many useful options to manage FTP server.
#vim /etc/vsftpd/vsftpd.conf
Selinux booleans can be found below, turn on any boolean according to your configuration.
#getsebool -a |grep ftp
or
#semanage boolean -l |grep ftp
Turn on booleans
# setsebool -P allow_ftpd_anon_write on
# setsebool -P allow_ftpd_anon_write off