====== Information ====== * vsftpd ((https://security.appspot.com/vsftpd.html)) * [[https://www.freshports.org/ftp/vsftpd|FreshPorts]] ===== Prerequisites ===== * [[bsd:server:freebsd_14.2|FreeBSD 14.2]] ====== Dependencies ====== su - pkg install 'vsftpd-ssl' ====== Firewall ====== * [[linux:notes:firewalld]] * TODO * 20/tcp * 21/tcp * PASV: 40000-50000/tcp sudo firewall-cmd --add-port='20/tcp' --permanent && sudo firewall-cmd --add-port='21/tcp' --permanent && sudo firewall-cmd --add-port='40000-50000/tcp' --permanent && sudo firewall-cmd --reload ====== Service ====== su - sysrc vsftpd_enable="YES" service 'vsftpd' start ====== Settings ====== ===== General ===== * Pasted at bottom of ''.conf'' and is prioritized over defaults su - ee '/usr/local/etc/vsftpd.conf' && service 'vsftpd' restart # Custom listen=YES background=YES anonymous_enable=NO local_enable=YES write_enable=YES #pasv_enable=YES #pasv_max_port=50000 #pasv_min_port=40000 local_root=/NAS force_dot_files=YES ====== Drives ====== * [[bsd:notes:zfs_nas_format]] ====== Permissions ====== ===== chown ===== su - chown -R 'espionage724':'espionage724' '/NAS' && sync ===== chmod ===== su - chmod -R '774' '/NAS' && sync