ftp:setup_vsftpd
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ftp:setup_vsftpd [2016/07/11 00:06] – created peter | ftp:setup_vsftpd [2019/11/29 14:33] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Setup VsFtpd ====== | ||
- | |||
- | VsFtpd is a highly secure, efficient and fast anonymous ftp server. It offers: | ||
- | |||
- | * Security | ||
- | * Performance | ||
- | * Stability | ||
- | |||
- | Despite being small for purposes of speed and security, many more complicated FTP setups are achievable with vsftpd. By no means an exclusive list, vsftpd will handle: | ||
- | |||
- | * Virtual IP configurations | ||
- | * Virtual users | ||
- | * Standalone or inetd operation | ||
- | * Powerful per-user configuration | ||
- | * Bandwidth throttling | ||
- | * Per-source-IP configuration | ||
- | * Per-source-IP limits | ||
- | * IPv6 | ||
- | * Encryption support through SSL integration | ||
- | |||
- | The only reason you might prefer a different FTP server to vsftpd is if you really need the configurability of one of the more bloated FTP servers. In this regard, vsftpd is a small modular component in the proper spirit of UNIX. Consider moving to vsftpd even if it means sacrificing some obscure feature of your current FTP server. | ||
- | |||
- | |||
- | ===== Getting Started ===== | ||
- | |||
- | To setup a stand alone ftp daemon listening on port 21. It will only allow anonymous read only access to the /ftp tree. The clients are going to be limited to the amount of total connects made, the amount of connects per client and the number of clients per ip address. | ||
- | |||
- | |||
- | <file bash / | ||
- | # manpage: http:// | ||
- | # Setup specially for an OpenBSD install | ||
- | # | ||
- | # Run in daemon mode | ||
- | background=YES | ||
- | listen=YES | ||
- | listen_address=120.111.222.111 | ||
- | # | ||
- | # | ||
- | # The new highly restrictive seccomp filter sandbox | ||
- | # If you see "OOPS: priv_sock_get_cmd" | ||
- | seccomp_sandbox=NO | ||
- | # | ||
- | # User to run daemon as | ||
- | nopriv_user=_vsftpd | ||
- | ftp_username=_ftp | ||
- | # | ||
- | # Ftp ports | ||
- | connect_from_port_20=NO | ||
- | ftp_data_port=20 | ||
- | listen_port=21 | ||
- | pasv_min_port=49152 | ||
- | pasv_max_port=65535 | ||
- | pasv_promiscuous=NO | ||
- | port_enable=NO | ||
- | port_promiscuous=NO | ||
- | # | ||
- | # SSL (force options for a SSL only server) | ||
- | # | ||
- | # | ||
- | # | ||
- | # | ||
- | # | ||
- | # | ||
- | # | ||
- | # | ||
- | # | ||
- | # | ||
- | # | ||
- | # Timeouts | ||
- | connect_timeout=60 | ||
- | data_connection_timeout=120 | ||
- | idle_session_timeout=120 | ||
- | # | ||
- | # Information messages | ||
- | setproctitle_enable=YES | ||
- | banner_file=/ | ||
- | dirmessage_enable=YES | ||
- | ftpd_banner=Calomel.org ftp server | ||
- | # | ||
- | # Access limits and controls | ||
- | async_abor_enable=NO | ||
- | cmds_allowed=ABOR, | ||
- | # | ||
- | delay_successful_login=1 | ||
- | delete_failed_uploads=yes | ||
- | guest_enable=NO | ||
- | write_enable=YES | ||
- | max_clients=100 | ||
- | max_login_fails=1 | ||
- | max_per_ip=2 | ||
- | pam_service_name=vsftpd | ||
- | tcp_wrappers=NO | ||
- | hide_file={.*, | ||
- | deny_file={*.mp3} | ||
- | # | ||
- | # Preferences | ||
- | ascii_upload_enable=NO | ||
- | ascii_download_enable=NO | ||
- | hide_ids=YES | ||
- | ls_recurse_enable=NO | ||
- | use_localtime=NO | ||
- | # | ||
- | # Allow anonymous FTP? | ||
- | anonymous_enable=YES | ||
- | anon_max_rate=0 | ||
- | anon_mkdir_write_enable=NO | ||
- | anon_root=/ | ||
- | anon_world_readable_only=YES | ||
- | anon_umask=0022 | ||
- | anon_upload_enable=NO | ||
- | anon_other_write_enable=NO | ||
- | no_anon_password=NO | ||
- | # | ||
- | # Allow local user access? | ||
- | local_enable=YES | ||
- | local_max_rate=0 | ||
- | local_umask=0022 | ||
- | chroot_local_user=YES | ||
- | check_shell=NO | ||
- | chmod_enable=NO | ||
- | secure_chroot_dir=/ | ||
- | userlist_enable=YES | ||
- | userlist_deny=NO | ||
- | userlist_file=/ | ||
- | # | ||
- | # Logging | ||
- | dual_log_enable=NO | ||
- | log_ftp_protocol=NO | ||
- | vsftpd_log_file=/ | ||
- | xferlog_enable=YES | ||
- | xferlog_std_format=NO | ||
- | xferlog_file=/ | ||
- | # | ||
- | </ | ||
ftp/setup_vsftpd.1468195612.txt.gz · Last modified: 2020/07/15 09:30 (external edit)