Installing FTP server for recordings: Difference between revisions

From MiRTA PBX documentation
Jump to navigation Jump to search
(Created page with "My preferred ftp server is vsftpd, it is easy to configure and quite stable yum -y install vsftpd chkconfig --level 2345 vsftpd on You may prefer to use a SSL connection...")
 
(No difference)

Latest revision as of 08:07, 21 September 2019

My preferred ftp server is vsftpd, it is easy to configure and quite stable

 yum -y install vsftpd
 chkconfig --level 2345 vsftpd on

You may prefer to use a SSL connection to access the FTP so you need to perform the following:

 mkdir /etc/ssl/private
 openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pem

Edit the /etc/vsftpd/vsftpd.conf and change:

 anonymous_enable=NO
 chroot_local_user=YES

add at the bottom:

 ssl_enable=YES
 allow_anon_ssl=NO
 force_local_data_ssl=YES
 force_local_logins_ssl=YES
 ssl_tlsv1=YES
 ssl_sslv2=NO
 ssl_sslv3=NO
 rsa_cert_file=/etc/ssl/private/vsftpd.pem
 rsa_private_key_file=/etc/ssl/private/vsftpd.pem
 
 require_ssl_reuse=no

Create an user, like recording and set a password To be able to use chroot, the /home/recording must be not writable, so you need to set

 chmod 500 /home/recording

And create a directory inside

 mkdir /home/recording/recordings
 chown recording:recording /home/recording/recordings