Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > Security > Issue <<  79 of 218 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 5989
Last update: 08-12-05
Issue:
How do I limit the number of simultaneous vsftpd connections from the same IP address?
Resolution:

The default value for maximum number of simultaneous vsftpd connections coming from the same source FTP client is unlimited. The max_per_ip vsftpd directive's value of 0 means there is no connection limit.

In order to limit the number of connections from the same source to a specific number, the /etc/vsftpd/vsftpd.conf file should be edited. Listed below is an example vsftpd.conf file:

pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
max_per_ip=2

The example illustrates how one can restrict a specific host to 2 concurrent connections. After modifying the vsftpd.conf file, restart vsftpd for the changes to take effect with:

service vsftpd restart

Once the maximum connection limit is reached, the error listed below will be displayed to the other users from the same source attempting to connect to the same FTP server:

421 There are too many connections from your internet address.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > Security > Issue <<   79  of  218  >>