Vsftp

Installing a file server VsFTP on a user virtual machine.

$ doas pkg_add -v vsftpd
vsftpd-3.0.5: ok
The following new rcscripts were installed: /etc/rc.d/vsftpd
See rcctl(8) for details.
Extracted 230533 from 230991

VsFTPd conf:

ftpd_banner=Welcome to IRCNOW FTP service
listen=YES
listen_ipv6=NO
listen_port=21
ftp_data_port=20
connect_from_port_20=YES
pasv_enable=YES
pasv_min_port=60011
pasv_max_port=60020
idle_session_timeout=1800
data_connection_timeout=10800
tcp_wrappers=NO
ssl_enable=YES
rsa_cert_file=/etc/ssl/example.net.crt
rsa_private_key_file=/etc/ssl/private/example.net.key
xferlog_enable=YES
xferlog_std_format=YES
xferlog_file=/var/log/vsftpd.log
local_enable=YES
write_enable=YES
local_umask=022
nopriv_user=_vsftpd
anonymous_enable=NO
anon_upload_enable=NO
anon_mkdir_write_enable=NO
dirmessage_enable=YES
ascii_upload_enable=YES
ascii_download_enable=YES
hide_file={.Xdefaults,.cshrc,.cvsrc,.login,.mailrc,.profile,.ssh}
deny_file={.Xdefaults,.cshrc,.cvsrc,.login,.mailrc,.profile,.ssh}
secure_chroot_dir=/var/empty
chroot_local_user=YES
chroot_list_enable=NO
allow_writeable_chroot=YES
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/ftpusers
text_userdb_names=YES