blob: 75bb974a3ee84b8ada76cc3b2f7841c974c9559e [file] [log] [blame]
TamasBakaid38feb62019-02-28 09:06:19 +00001# Server Config
2anonymous_enable=NO
3local_enable=YES
4write_enable=YES
5local_umask=022
6dirmessage_enable=YES
7
8# Security and User auth
9chroot_local_user=YES
10pam_service_name=vsftpd_virtual
11virtual_use_local_privs=YES
12chmod_enable=NO
13user_config_dir=/etc/vsftpd/user_conf
14user_sub_token=$USER
15#local_root=/srv/$USER
16local_root=/srv/
17userlist_enable=NO
18allow_writeable_chroot=YES
19
20# Logging
21log_ftp_protocol=YES
22xferlog_enable=YES
23xferlog_std_format=YES
24#xferlog_file=/dev/stdout
25syslog_enable=NO
26dual_log_enable=YES
27
28# Remap all login users to this username
29guest_enable=YES
30guest_username=ftp
31hide_ids=YES
32
33# Networking
34connect_from_port_20=NO
35listen=YES
36tcp_wrappers=YES
TamasBakaie781c7c2019-07-11 11:26:20 +000037pasv_min_port=${FTPS_PASV_MIN}
38pasv_max_port=${FTPS_PASV_MAX}
TamasBakaid38feb62019-02-28 09:06:19 +000039
40# SSL
41ssl_enable=Yes
42require_ssl_reuse=NO
43force_local_data_ssl=YES
44force_local_logins_ssl=YES
45ssl_ciphers=HIGH
46allow_anon_ssl=NO
47
48ssl_tlsv1=YES
49ssl_sslv2=YES
50ssl_sslv3=YES
51rsa_cert_file=/etc/ssl/private/ftp.crt
52rsa_private_key_file=/etc/ssl/private/ftp.key
53
54require_cert=YES
55ssl_request_cert=YES
56ca_certs_file=/etc/ssl/private/dfc.crt
57
TamasBakaie781c7c2019-07-11 11:26:20 +000058write_enable=YES
59pasv_address=${IPFILESERVER}