Skip to content

Instantly share code, notes, and snippets.

@raykao
Created August 7, 2014 13:33
Show Gist options
  • Save raykao/9d2fcbe3e3dbef8fa38f to your computer and use it in GitHub Desktop.
Save raykao/9d2fcbe3e3dbef8fa38f to your computer and use it in GitHub Desktop.
Conf file for vsftpd setup. Resolves issues with servers behind a nat. chroots users to their homedirs
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
chroot_local_user=YES
local_root=/home/$USER
user_sub_token=$USER
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=ftp
rsa_cert_file=/etc/ssl/private/vsftpd.pem
pasv_enable=YES
pasv_min_port=63001
pasv_max_port=63010
pasv_address=xxx.xxx.xxx.xxx
port_enable=NO
pasv_addr_resolve=YES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment