Skip to main content

Installing FTP server for recordings

This page reorganizes the operational steps for Installing FTP server for recordings.

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

Current Verification

After applying the change, verify the related MiRTA PBX page, the Asterisk logs, and the relevant Status menu entry. Recheck tenant selection before testing tenant-specific behavior.