ProftpdWhat do you know about common parameters? Let me list them for you!
ServerName
# When a user logs on to the host, proftpd displays some basic information about the FTP software on the Client!
ServerType
# There are two ways to start proftpd: standalone and xinetd.
Defaserver Server
# Default host. This project can be set to on or off. Basically, this project should be set to on unless you have two IP addresses or virtual hosts! Otherwise, some connection opportunities of uknown will not be able to connect to your FTP service.
Port
# Set the FTP Command Channel port of the host! The FTP command channel is usually 21 and can be changed. However, this setting is only valid when ServerType is standalone.
Umask
# Settings related to the preset properties of creating directories and archives! 022 is enough!
MaxInstances
# Number of online connections allowed at the same time. This setting item is related to the process (PID! Therefore, you can have up to 30 processes enabled by proftpd on your FTP host. This is different from MaxClients!
User and Group
# Default service starter! The connected users and groups must exist in/etc/passwd and/etc/group!
MaxHostsPerUser 1 "sorry, each account can have up to one source ip address"
# MaxHostsPerUser is useful for preventing ftp accounts.
MaxClientsPerUser 1 "sorry, each account can log on to each client at most once"
# This parameter can prevent the server from being damaged by multi-threaded software downloads.
MaxClientsPerHost 1 "sorry, only one account can log on to the same client"
# For example, you have many accounts on the ftp server, but you can only log in with one account.
WtmpLog on
# Whether to record ftp logs in logs. If you do not want to, you can set it to off to shield log logs.
TimeoutIdle 600
# Client idel time setting. The default value is 600 seconds.
DisplayLogin welcome. msg
# Set the ftp login welcome information file
The settings of the welcome File Include the following parameters:
% T current time
% F remaining disk capacity
% C Current Directory
% R Client host name
% L Server host name
% U User Account Name
% M maximum number of allowed connections
% N current server connection count
% E ftp server administrator email
% I number of files uploaded this time
% O number of files downloaded this time
% T number of files uploaded and downloaded
With these parameters in mind, we can write a friendly welcome speech.
Vi/home/kaoyan/welcome. msg
Welcome to % U. This is Frank's test FTP server;
Current Time: % T;
The server allows a maximum of % M user connections;
Currently, there are % N user connections on the server;
Your current directory is % C;
% F bytes are left on the hard disk where the directory is located.
The current popular passive transmission mode is supported by proftp, which is not supported by default. You only need to set
AllowForeignAddress on
PassivePorts 49152 65534 # port can also be specified as your favorite
Do not forget to set it to support passive on the client.
By default, proftp does not support root login. We can set it to allow root users to log on to ftp. However, we recommend that you do not allow root users to log on to ftp. The settings are as follows:
RootLogin on
How to disable an IP address from accessing ftp. For example, you can disable hosts in the 10.1.1 CIDR Block from accessing ftp.
Order deny, allow
Deny from 10.1.1.
Allow from all
The establishment of Virtual ftp is generally used for an ftp server with many IP addresses, or ftp uses different ports. The basic setting syntax is:
For example, we need to create an ftp server with a port of 5555:
ServerName "Frank FTP Server"
Port 5555
Do you understand it? You can use it anytime, anywhere if you know common Proftpd parameters!
- Proftpd. conf setting method
- Structure of Proftpd
- Centos compilation and installation of Proftpd
- Subsequent programs of ProFTPD
- ProFTPD installation and configuration
- Proftpd Overview
- ProFTPD operation process
- Main features of ProFTPD