Lines 5-10
Link Here
|
5 |
* tunables.c |
5 |
* tunables.c |
6 |
*/ |
6 |
*/ |
7 |
|
7 |
|
|
|
8 |
#include "builddefs.h" |
8 |
#include "tunables.h" |
9 |
#include "tunables.h" |
9 |
#include "sysutil.h" |
10 |
#include "sysutil.h" |
10 |
|
11 |
|
Lines 85-100
Link Here
|
85 |
int tunable_require_ssl_reuse; |
86 |
int tunable_require_ssl_reuse; |
86 |
int tunable_isolate; |
87 |
int tunable_isolate; |
87 |
int tunable_isolate_network; |
88 |
int tunable_isolate_network; |
88 |
int tunable_convert_charset_enable; |
89 |
int tunable_convert_charset_enable; |
89 |
int tunable_local_codepage; |
90 |
int tunable_local_codepage; |
90 |
int tunable_remote_codepage; |
91 |
int tunable_remote_codepage; |
91 |
int tunable_anon_delete_enable; |
92 |
int tunable_anon_delete_enable; |
92 |
int tunable_add_default_rule; |
93 |
int tunable_add_default_rule; |
93 |
int tunable_chown_by_ip; |
94 |
int tunable_chown_by_ip; |
94 |
int tunable_tpm_allow_anon_root_access; |
95 |
int tunable_tpm_allow_anon_root_access; |
95 |
int tunable_double_377; |
96 |
int tunable_double_377; |
96 |
int tunable_anon_rxtx_rate; |
97 |
int tunable_anon_rxtx_rate; |
97 |
int tunable_local_rxtx_rate; |
98 |
int tunable_local_rxtx_rate; |
98 |
int tunable_chown_group; |
99 |
int tunable_chown_group; |
99 |
int tunable_anti_bruteforce; |
100 |
int tunable_anti_bruteforce; |
100 |
|
101 |
|
Lines 243-258
Link Here
|
243 |
tunable_require_ssl_reuse = 1; |
244 |
tunable_require_ssl_reuse = 1; |
244 |
tunable_isolate = 1; |
245 |
tunable_isolate = 1; |
245 |
tunable_isolate_network = 1; |
246 |
tunable_isolate_network = 1; |
246 |
tunable_convert_charset_enable = 0; |
247 |
tunable_convert_charset_enable = 0; |
247 |
tunable_local_codepage = 0; |
248 |
tunable_local_codepage = 0; |
248 |
tunable_remote_codepage = 0; |
249 |
tunable_remote_codepage = 0; |
249 |
tunable_anon_delete_enable = 1; |
250 |
tunable_anon_delete_enable = 1; |
250 |
tunable_add_default_rule = 0; |
251 |
tunable_add_default_rule = 0; |
251 |
tunable_chown_by_ip = 0; |
252 |
tunable_chown_by_ip = 0; |
252 |
tunable_tpm_allow_anon_root_access = 0; |
253 |
tunable_tpm_allow_anon_root_access = 0; |
253 |
tunable_double_377 = 1; |
254 |
tunable_double_377 = 1; |
254 |
tunable_anon_rxtx_rate = 0; |
255 |
tunable_anon_rxtx_rate = 0; |
255 |
tunable_local_rxtx_rate = 0; |
256 |
tunable_local_rxtx_rate = 0; |
256 |
tunable_chown_group = 0; |
257 |
tunable_chown_group = 0; |
257 |
tunable_anti_bruteforce = 0; |
258 |
tunable_anti_bruteforce = 0; |
258 |
|
259 |
|
Lines 267-277
Link Here
|
267 |
tunable_pasv_min_port = 5001; |
268 |
tunable_pasv_min_port = 5001; |
268 |
tunable_pasv_max_port = 0; |
269 |
tunable_pasv_max_port = 0; |
269 |
tunable_anon_max_rate = 0; |
270 |
tunable_anon_max_rate = 0; |
270 |
tunable_anon_max_rate_rx = 0; |
271 |
tunable_anon_max_rate_rx = 0; |
271 |
tunable_anon_max_rate_tx = 0; |
272 |
tunable_anon_max_rate_tx = 0; |
272 |
tunable_local_max_rate = 0; |
273 |
tunable_local_max_rate = 0; |
273 |
tunable_local_max_rate_rx = 0; |
274 |
tunable_local_max_rate_rx = 0; |
274 |
tunable_local_max_rate_tx = 0; |
275 |
tunable_local_max_rate_tx = 0; |
275 |
/* IPPORT_FTP */ |
276 |
/* IPPORT_FTP */ |
276 |
tunable_listen_port = 21; |
277 |
tunable_listen_port = 21; |
277 |
tunable_max_clients = 2000; |
278 |
tunable_max_clients = 2000; |
Lines 293-303
Link Here
|
293 |
install_str_setting(".message", &tunable_message_file); |
294 |
install_str_setting(".message", &tunable_message_file); |
294 |
install_str_setting("nobody", &tunable_nopriv_user); |
295 |
install_str_setting("nobody", &tunable_nopriv_user); |
295 |
install_str_setting(0, &tunable_ftpd_banner); |
296 |
install_str_setting(0, &tunable_ftpd_banner); |
296 |
install_str_setting("/etc/vsftpd/banned_emails", &tunable_banned_email_file); |
297 |
install_str_setting(VSF_CONFIG_PATH VSF_CONFIG_PREFIX "banned_emails", &tunable_banned_email_file); |
297 |
install_str_setting("/etc/vsftpd/chroot_list", &tunable_chroot_list_file); |
298 |
install_str_setting(VSF_CONFIG_PATH VSF_CONFIG_PREFIX "chroot_list", &tunable_chroot_list_file); |
298 |
install_str_setting("ftp", &tunable_pam_service_name); |
299 |
install_str_setting("ftp", &tunable_pam_service_name); |
299 |
install_str_setting("ftp", &tunable_guest_username); |
300 |
install_str_setting("ftp", &tunable_guest_username); |
300 |
install_str_setting("/etc/vsftpd/user_list", &tunable_userlist_file); |
301 |
install_str_setting(VSF_CONFIG_PATH VSF_CONFIG_PREFIX "user_list", &tunable_userlist_file); |
301 |
install_str_setting(0, &tunable_anon_root); |
302 |
install_str_setting(0, &tunable_anon_root); |
302 |
install_str_setting(0, &tunable_local_root); |
303 |
install_str_setting(0, &tunable_local_root); |
303 |
install_str_setting(0, &tunable_banner_file); |
304 |
install_str_setting(0, &tunable_banner_file); |
Lines 310-316
Link Here
|
310 |
install_str_setting(0, &tunable_hide_file); |
311 |
install_str_setting(0, &tunable_hide_file); |
311 |
install_str_setting(0, &tunable_deny_file); |
312 |
install_str_setting(0, &tunable_deny_file); |
312 |
install_str_setting(0, &tunable_user_sub_token); |
313 |
install_str_setting(0, &tunable_user_sub_token); |
313 |
install_str_setting("/etc/vsftpd/email_passwords", |
314 |
install_str_setting(VSF_CONFIG_PATH VSF_CONFIG_PREFIX "email_passwords", |
314 |
&tunable_email_password_file); |
315 |
&tunable_email_password_file); |
315 |
install_str_setting("/usr/share/ssl/certs/vsftpd.pem", |
316 |
install_str_setting("/usr/share/ssl/certs/vsftpd.pem", |
316 |
&tunable_rsa_cert_file); |
317 |
&tunable_rsa_cert_file); |
Lines 321-328
Link Here
|
321 |
install_str_setting(0, &tunable_ca_certs_file); |
322 |
install_str_setting(0, &tunable_ca_certs_file); |
322 |
install_str_setting("NONE", &tunable_local_charset); |
323 |
install_str_setting("NONE", &tunable_local_charset); |
323 |
install_str_setting("NONE", &tunable_remote_charset); |
324 |
install_str_setting("NONE", &tunable_remote_charset); |
324 |
install_str_setting("/etc/vsftpd/pasv_rules", &tunable_pasv_addr_rules); |
325 |
install_str_setting(VSF_CONFIG_PATH VSF_CONFIG_PREFIX "pasv_rules", &tunable_pasv_addr_rules); |
325 |
install_str_setting("/etc/vsftpd/users_ip", &tunable_users_access_ip); |
326 |
install_str_setting(VSF_CONFIG_PATH VSF_CONFIG_PREFIX "users_ip", &tunable_users_access_ip); |
326 |
install_str_setting(0, &tunable_anti_bruteforce_banner); |
327 |
install_str_setting(0, &tunable_anti_bruteforce_banner); |
327 |
} |
328 |
} |
328 |
|
329 |
|