- 论坛徽章:
- 0
|
架设匿名FTP下载服务器,出于安全性的考虑
vi /etc/vsftpd.conf
#Access rights
anonymous_enable = YES
local_enable = NO
write_enable = NO
anon_upload_enable = NO
anon_mkdir_write_enable = NO
anon_other_write_enable = NO
#Security
anon_world_readable_only = YES
connect_from_port_20 = YES
hide_ids = YES
pasv_min_potr = 50000
pasv_max_potr = 60000
#Features
xferlog_enable = YES
ls_recurse_enable = NO
ascii_download_enable = NO
async_abor_enable = YES
#Performance
#one_process_model = YES
idle_session_timeout = 120
data_connection = 300
accept_timeout = 60
connect_timeout = 60
anon_max_rate = 50000
ftpd_banner = This FTP server is anonymous only.
pam_service_name = vsftpd
这还不够,还有/etc/xinetd.d/vsftpd ,来控制 vsftpd的一些启动函数
vi /etc/xinetd.d/vsftpd
service ftp
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/vsftpd
nice = 10
per_source = 5
instances = 200
banner_fail = /etc/vsftpd.busy_banner
log_on_success += PID HOST DURATION
log_on_failure += HOST
} |
|