Increase MaxClientsPerHost for pure-ftpd

JohnyByk

Verified User
Joined
Mar 7, 2012
Messages
251
How to increase permanently max clients per ip for pure-ftpd.

Default is 15.

Regards
 
Last edited:
When you're on Centos (not sure about Centos 7 where it is) you can edit the init script
/etc/init.d/pureftpd

Add this to the command line options:
Code:
-y XX:0
where XX is the number of logins you want above 15 and 0 is the number of anonymous logins allowed.

However, for this you need to compile pureftpd with the --with-peruserlimits option. So you have to make a custom configuration and add it. Then recompile pureftpd via custombuild.

From the pure-ftpd documentation.
- '-y <max user logins>:<max anonymous logins>': This option only
works if the server has been compiled with --with-peruserlimits. It
restricts the number of concurrent sessions the same user can have.
A null value ('0') means 'unlimited'.
 
Back
Top