00001 #ifndef VSF_TUNABLES_H 00002 #define VSF_TUNABLES_H 00003 00004 /* Configurable preferences */ 00005 /* Booleans */ 00006 extern int tunable_anonymous_enable; /* Allow anon logins */ 00007 extern int tunable_local_enable; /* Allow local logins */ 00008 extern int tunable_pasv_enable; /* Allow PASV */ 00009 extern int tunable_port_enable; /* Allow PORT */ 00010 extern int tunable_chroot_local_user; /* Restrict local to home dir */ 00011 extern int tunable_write_enable; /* Global enable writes */ 00012 extern int tunable_anon_upload_enable; /* Enable STOR for anon users */ 00013 extern int tunable_anon_mkdir_write_enable; /* MKD for anon */ 00014 extern int tunable_anon_other_write_enable; /* APPE DELE RMD RNFR for anon */ 00015 extern int tunable_chown_uploads; /* chown() anon uploaded files */ 00016 extern int tunable_connect_from_port_20; /* PORT connects from port 20 */ 00017 extern int tunable_xferlog_enable; /* Log transfers to a file */ 00018 extern int tunable_dirmessage_enable; /* Look for + output .message */ 00019 extern int tunable_anon_world_readable_only; /* Only serve world readable */ 00020 extern int tunable_async_abor_enable; /* Enable async ABOR requests */ 00021 extern int tunable_ascii_upload_enable; /* Permit ASCII upload */ 00022 extern int tunable_ascii_download_enable; /* Permit ASCII download */ 00023 extern int tunable_one_process_model; /* Go faster stripes ;-) */ 00024 extern int tunable_xferlog_std_format; /* Log details like wu-ftpd */ 00025 extern int tunable_pasv_promiscuous; /* Allow any PASV connect IP */ 00026 extern int tunable_deny_email_enable; /* Ban a list of anon e-mails */ 00027 extern int tunable_chroot_list_enable; /* chroot() based on list file */ 00028 extern int tunable_setproctitle_enable; /* Try to use setproctitle() */ 00029 extern int tunable_text_userdb_names; /* For "ls", lookup text names */ 00030 extern int tunable_ls_recurse_enable; /* Allow ls -R */ 00031 extern int tunable_log_ftp_protocol; /* Log FTP requests/responses */ 00032 extern int tunable_guest_enable; /* Remap guest users */ 00033 extern int tunable_userlist_enable; /* Explicit user allow or deny */ 00034 extern int tunable_userlist_deny; /* Is user list allow or deny? */ 00035 extern int tunable_use_localtime; /* Use local time or GMT? */ 00036 extern int tunable_check_shell; /* Use /etc/shells for non-PAM */ 00037 extern int tunable_hide_ids; /* Show "ftp" in ls listings */ 00038 extern int tunable_listen; /* Standalone (no inetd) mode? */ 00039 extern int tunable_port_promiscuous; /* Any any PORT connect IP */ 00040 extern int tunable_passwd_chroot_enable; /* chroot() based on passwd */ 00041 extern int tunable_no_anon_password; /* Do not ask for anon pword */ 00042 extern int tunable_tcp_wrappers; /* Standalone: do tcp wrappers */ 00043 extern int tunable_use_sendfile; /* Use sendfile() if we can */ 00044 extern int tunable_force_dot_files; /* Show dotfiles without -a */ 00045 extern int tunable_listen_ipv6; /* Standalone with IPv6 listen */ 00046 extern int tunable_dual_log_enable; /* Log vsftpd.log AND xferlog */ 00047 extern int tunable_syslog_enable; /* Use syslog not vsftpd.log */ 00048 extern int tunable_background; /* Background listener process */ 00049 extern int tunable_virtual_use_local_privs; /* Virtual user => local privs */ 00050 extern int tunable_session_support; /* utmp, wtmp, pam_session */ 00051 extern int tunable_download_enable; /* Can download anything? */ 00052 extern int tunable_dirlist_enable; /* Can see any dirs? */ 00053 extern int tunable_chmod_enable; /* Is CHMOD allowed? (local) */ 00054 extern int tunable_secure_email_list_enable; /* Require specific anon email */ 00055 extern int tunable_run_as_launching_user; /* Runs as launching user */ 00056 extern int tunable_no_log_lock; /* Don't lock log files */ 00057 extern int tunable_ssl_enable; /* Allow SSL/TLS AUTH */ 00058 extern int tunable_allow_anon_ssl; /* Allow anonymous use of SSL */ 00059 extern int tunable_force_local_logins_ssl; /* Require local logins use SSL */ 00060 extern int tunable_force_local_data_ssl; /* Require local data uses SSL */ 00061 extern int tunable_sslv2; /* Allow SSLv2 */ 00062 extern int tunable_sslv3; /* Allow SSLv3 */ 00063 extern int tunable_tlsv1; /* Allow TLSv1 */ 00064 extern int tunable_tilde_user_enable; /* Support e.g. ~chris */ 00065 extern int tunable_force_anon_logins_ssl; /* Require anon logins use SSL */ 00066 extern int tunable_force_anon_data_ssl; /* Require anon data uses SSL */ 00067 extern int tunable_mdtm_write; /* Allow MDTM to set timestamps */ 00068 extern int tunable_lock_upload_files; /* Lock uploading files */ 00069 extern int tunable_pasv_addr_resolve; /* DNS resolve pasv_addr */ 00070 extern int tunable_userlist_log; /* Log every failed login attempt */ 00071 00072 /* Integer/numeric defines */ 00073 extern unsigned int tunable_accept_timeout; 00074 extern unsigned int tunable_connect_timeout; 00075 extern unsigned int tunable_local_umask; 00076 extern unsigned int tunable_anon_umask; 00077 extern unsigned int tunable_ftp_data_port; 00078 extern unsigned int tunable_idle_session_timeout; 00079 extern unsigned int tunable_data_connection_timeout; 00080 extern unsigned int tunable_pasv_min_port; 00081 extern unsigned int tunable_pasv_max_port; 00082 extern unsigned int tunable_anon_max_rate; 00083 extern unsigned int tunable_local_max_rate; 00084 extern unsigned int tunable_listen_port; 00085 extern unsigned int tunable_max_clients; 00086 extern unsigned int tunable_file_open_mode; 00087 extern unsigned int tunable_max_per_ip; 00088 extern unsigned int tunable_trans_chunk_size; 00089 extern unsigned int tunable_delay_failed_login; 00090 extern unsigned int tunable_delay_successful_login; 00091 extern unsigned int tunable_max_login_fails; 00092 00093 /* String defines */ 00094 extern const char* tunable_secure_chroot_dir; 00095 extern const char* tunable_ftp_username; 00096 extern const char* tunable_chown_username; 00097 extern const char* tunable_xferlog_file; 00098 extern const char* tunable_vsftpd_log_file; 00099 extern const char* tunable_message_file; 00100 extern const char* tunable_nopriv_user; 00101 extern const char* tunable_ftpd_banner; 00102 extern const char* tunable_banned_email_file; 00103 extern const char* tunable_chroot_list_file; 00104 extern const char* tunable_pam_service_name; 00105 extern const char* tunable_guest_username; 00106 extern const char* tunable_userlist_file; 00107 extern const char* tunable_anon_root; 00108 extern const char* tunable_local_root; 00109 extern const char* tunable_banner_file; 00110 extern const char* tunable_pasv_address; 00111 extern const char* tunable_listen_address; 00112 extern const char* tunable_user_config_dir; 00113 extern const char* tunable_listen_address6; 00114 extern const char* tunable_cmds_allowed; 00115 extern const char* tunable_hide_file; 00116 extern const char* tunable_deny_file; 00117 extern const char* tunable_user_sub_token; 00118 extern const char* tunable_email_password_file; 00119 extern const char* tunable_rsa_cert_file; 00120 extern const char* tunable_dsa_cert_file; 00121 extern const char* tunable_ssl_ciphers; 00122 extern const char* tunable_rsa_private_key_file; 00123 extern const char* tunable_dsa_private_key_file; 00124 00125 #endif /* VSF_TUNABLES_H */ 00126