VSFTPD limit the number of simultaneous vsftpd connections for a single IP address
Q. How do I force VSFTPD ftp server to limit the number of simultaneous vsftpd connections from the same IP address under Debian Linux?
A. By default VSFTPD allows unlimited connection from the same client IP address. You can easily force vsftpd ftp server to use limited number of connection. There is a special directive called max_per_ip.
Step # 1: Open vsftpd.conf file
Use text editor such as vi to edit /etc/vsftpd.conf or /etc/vsftpd/vsftpd.conf file:
# vi vsftpd.conf
Step # 2: Setup limitation
Set up the max_per_ip=3 (this will limit simultaneous connection to 3 number only)
max_per_ip=3
You are restricting end user to a specific host to 3 concurrent connections.
Step # 3: Restart vsftpd
# /etc/init.d/vsftpd restart
Now vsftpd should limit the number of simultaneous vsftpd connections for a single IP address. If end user try to cross this limit she will see following error message:
421 There are too many connections from IP address.
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Change vsftpd ftp server port 21
- Linux Iptables ip_conntrack: table full, dropping packet error and solution
- How to Change the vsftp or vsftpd server banner message
- FTP Maximum number of clients exceeded error and solution
- CentOS / Red Hat Linux Install VSFTPD FTP Server
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!



Recent Comments
Today ~ 32 Comments
Yesterday ~ 1 Comment
Yesterday ~ 3 Comments
Yesterday ~ 2 Comments
Yesterday ~ 3 Comments