aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-08-06 13:30:00 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-08-06 13:30:00 +0200
commita6dc42a009a6f1bb467a78422ef52698ef198828 (patch)
treedf5c21f5fc13e803bc779ba9514bb4925bb1c2fc
parent50bda1e484c09604c0a0c2dcbded861974f27aa4 (diff)
downloadrbsd-a6dc42a009a6f1bb467a78422ef52698ef198828.tar.gz
Add /usr/pkg/etc/vsftpd/vsftpd.conf
-rw-r--r--usr/pkg/etc/vsftpd/vsftpd.conf47
1 files changed, 47 insertions, 0 deletions
diff --git a/usr/pkg/etc/vsftpd/vsftpd.conf b/usr/pkg/etc/vsftpd/vsftpd.conf
new file mode 100644
index 0000000..d089825
--- /dev/null
+++ b/usr/pkg/etc/vsftpd/vsftpd.conf
@@ -0,0 +1,47 @@
+# Activate directory messages - messages given to remote users when they
+# go into a certain directory.
+dirmessage_enable=YES
+#
+# Activate logging of uploads/downloads.
+#xferlog_enable=YES
+#
+# Make sure PORT transfer connections originate from port 20 (ftp-data).
+connect_from_port_20=YES
+#
+# It is recommended that you define on your system a unique user which the
+# ftp server can use as a totally isolated and unprivileged user.
+#nopriv_user=ftpsecure
+#
+# You may fully customise the login banner string:
+#ftpd_banner=Welcome to blah FTP service.
+
+anonymous_enable=NO
+
+#pam_service_name=vsftpd
+#anon_root=/srv/ftp
+
+secure_chroot_dir=/var/empty
+no_anon_password=YES
+seccomp_sandbox=NO
+pasv_enable=YES
+pasv_min_port=10090
+pasv_max_port=10100
+
+chroot_local_user=YES
+passwd_chroot_enable=YES
+allow_writeable_chroot=YES
+
+# It is safe to allow writeable chroot as we are chrooting users to
+# their home directories.
+
+local_enable=YES
+write_enable=YES
+file_open_mode=0777
+local_umask=0002
+
+userlist_enable=YES
+userlist_file=/usr/pkg/etc/vsftpd/userlist
+userlist_deny=NO
+
+#log_ftp_protocol=YES
+