Detailed analysis of ProFTPD

Source: Internet
Author: User
Tags touch command

 

Figure-ProFTPD

When my colleagues send files to the FTP Server on Solaris 8, files modified before January 1, 2002 cannot be seen in the window, in the Solaris system, ls-l is used to see the files with a year, while those files with a year of 2002 do not have a year of 2002. Therefore, the problem is that every time we need to use the touch command to update the file date, it is very inconvenient. Therefore, I think it is a problem with the FTP Server. Then we decided to use the familiar Wu-ftpd. However, it was surprising that after using this version of FTP Server, the directory could not be displayed, and the entire directory could not be listed. Think of previous articlesProFTPDTherefore, I decided to try the software. It feels very easy to use. I write this article specially and would like to share it with you.

ProFTPD is also open source software and is released with the GPL license. ProFTPD can be said to be an alternative to wu-ftpd, and has greatly improved security and scalability. Especially for those familiar with Apache configuration, its configuration is very similar to that of Apache, so it must be handy.

Main features:

A single and Apache httpd. conf is similar to the configuration file under each directory. ftpaccess file (and Apache. htaccess is similar) it is easy to configure, multiple virtual FTP servers and anonymous FTP services can run independently or start the root directory of anonymous FTP from inetd/xinetd without the need for extraordinary directory structure system binary files and other system files without SITE the EXEC command is run separately, run as a non-authorized user to reduce attack risk logs and utmp/wtmp support Shadow password support

As of press time, the latest version of ProFTPD is v1.2.4. To ensure system security, we recommend that you update the software to the latest version.

Wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.4.tar.gz

./Configure -- prefix =/usr/local -- enable-shadow make (for Dual CPU, make-j3 is recommended) make install

Then you can find that ProFTPD is installed in/usr/local, and "proftpd" can be found in the/usr/local/sbin/directory. The configuration file is proftpd. conf is located at:/usr/local/etc /.

If you are familiar with the httpd. conf configuration of Apache, the configuration of proftpd. conf is very simple.

DefaultRoot ~ Users ,! Staff

ServerIdent On "FreeLAMP FTP Server"

ServerName ""

ServerType standalone

ServerAdmin webmaster@freelamp.com

Bind 192.168.0.1

ExtendedLog/var/log/proftpd read, write, auth

ScoreboardPath/usr/local/var/proftpd

RequireValidShell Off

User proftpd

Group proftpd

Now we can start it:

/Usr/local/sbin/proftpd &

The above configuration method is very simple and will not be described in detail. The following describes how to restrict anonymous user logon:

# MaxClients 1 "Maximum users reached-try again later"

# MaxClients 1 "Sorry, max % m users -- try again later"

MaxClients None "sorry, this system does not support Anonymous Logon"

Bandwidth control:

RateReadBPS 81920

RateReadFreeBytes 5120

RateReadHardBPS on

In this way, you can use the formula "RateReadBPS x MaxClients = Total Bandwidth allocation ."

Restrictions, but for each virtual domain, each user and global restrictions have not been implemented. In series 1.2.x

Only one global variable in the column affects the entire server:

Bandwidx 81920

In addition, you can use the "mod_quota" and "mod_ratio" modules to control your disk quota.

Through the introduction of the article, we can clearly know some related knowledge about ProFTPD! I hope this article will help you!

  • Proftpd problems in Gentoo
  • Proftpd uses TLS/SSL
  • Slow Proftpd login speed
  • Why use proftpd?
  • Main features of ProFTPD
  • Set, compile, and install proftpd
  • Set xinetd to start proftpd
  • Detailed description of proftpd Structure

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.