Public bug reported:

Problem:
The vsftpd.conf man page in Ubuntu 24.04 (package vsftpd 3.0.5-0ubuntu3.1) 
states that both "max_clients" and "max_per_ip" have a default value of "0 
(unlimited)".
However, according to the source code in "tunables.c", the compiled-in defaults 
are actually 2000 for "max_clients" and 50 for "max_per_ip".

[ man 5 vsftpd.conf ]
>       max_clients
>              If  vsftpd  is in standalone mode, this is the maximum number of
>              clients which may be connected. Any additional clients  connect‐
>              ing will get an error message.
>
>              Default: 0 (unlimited)


>       max_per_ip
>              If  vsftpd  is in standalone mode, this is the maximum number of
>              clients which may be connected from the same source internet ad‐
>              dress. A client will get an error message if they go  over  this
>              limit.
>
>              Default: 0 (unlimited)


Details:
In the source file "tunables.c", these lines define the built-in defaults:

>  tunable_max_clients = 2000;
>  tunable_max_per_ip = 50;


Environment:
- Ubuntu 24.04.1 LTS (Noble Numbat)
- vsftpd 3.0.5-0ubuntu3.1


Historical reference:
According to the upstream changelog (vsftpd-2.2.0pre2), the defaults were 
explicitly changed to 2000 / 50:

security.appspot.com/vsftpd/Changelog.txt
https://security.appspot.com/vsftpd/Changelog.txt
> (vsftpd-2.2.0pre2)
> - Revert listen to be "NO" by default and also set max_per_ip / max_clients
> to 2000 / 50 as a default. Thanks to Solar.

** Affects: vsftpd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2130941

Title:
  vsftpd man page lists incorrect default values for max_clients and
  max_per_ip

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vsftpd/+bug/2130941/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to