We know that the standalone startup method can process the maximum number of concurrent users through the max_clients and max_per_ip parameters. But what if it is managed by superdaemon? The xinetd syntax must be used. If you use superdaemon to manage vsftpd, you must first modify the "listen" project in vsftpd. conf. Then do this: [root
We know that the stand alone startup method can process the maximum number of concurrent users through the max_clients and max_per_ip parameters. But what if it is managed by super daemon? The xinetd syntax must be used. If you use super daemon to manage vsftpd, you must first modify the "listen" project in vsftpd. conf. Then, do the following:
[Root @ linux ~] # Vi/etc/xinetd. d/vsftpd
# Vsftpd is the secure FTP server.
Service ftp
{
Disable = no
Socket_type = stream
Wait = no
User = root
Server =/usr/sbin/vsftpd
Server_args =/etc/vsftpd. conf
# Set the server above according to your host environment!
# For server_args, write the complete shard name in your vsftpd configuration file!
Per_source = 5 <= related to the number of connections of the same IP address
Instances = 200 <= maximum number of online connections at the same time
No_access = 192.168.1.3
Banner_fail =/etc/vsftpd. busy_banner
# The above file is the content displayed on the Client when the host is busy!
Log_on_success + = PID HOST DURATION
Log_on_failure + = HOST
}
[Root @ linux ~] # Vi/etc/vsftpd. conf
# Make sure this parameter exists in this file!
Listen = NO
[Root @ linux ~] # Vi/etc/vsftpd. busy_banner
421 sorry, there are too many people on the server now. Please try again later!
# That 421 is the error code!
[Root @ linux ~] #/Etc/init. d/vsftpd stop
[Root @ linux ~] #/Etc/init. d/xinetd restart
So you can set it! With a simple set action, you can make vsftpd more secure!