Alexander Hall wrote:
Daniel Ouellet wrote:
Alexander Hall wrote:
Daniel Ouellet wrote:
I am looking to add -R to inetd, but there isn't any
inetd_flags /.../
Do you really need to set it globally?
You could use the [.max] part of each configuration line for a
service-specific setting.
Not sure that I follow what you are saying here.
man inetd.conf
-R rate
Specify the maximum number of times a service can
be invoked in one minute; the default is 256.
If you refer at this part:
wait/nowait[.max]
I already have this:
tftp dgram udp wait.6000 root
/usr/libexec/tftpd tftpd -ls /distribution/phones/cisco
However, that doesn't help the limit of the 256 per minutes here.
Get plenty in the logs with deny connection, if I do not start inetd
with the -R 1024 as well.
So, may be you understand something I do not, and if you add to your
suggestion more details, may be I can follow.
from inetd(8):
The optional ``max'' suffix (separated from ``wait'' or
``nowait'' by a dot) specifies the maximum number of
server instances that may be spawned from inetd within
an interval of 60 seconds. When omitted, ``max''
defaults to 256.
I just assumed, since the numbers also matched, that the -R option
changed the default from 256 to whatever. I have not, however, used
inetd actively in a long time, so I may be wrong.
It could be worth browsing the source to find out. :-)
/Alexander
I read that, but I took it to mean it apply to the daemon that inetd
start, or operate, not the inetd itself that needs to use -R as the
limit to overcome.
That may well be me not understanding English as well as I should. I
didn't took it as meaning that here.
If so, then it remove the needs for -R, but then, why two options to do
the same thing then?
That's not the OpenBSD way where knobs are as minimum as possible and
here it would be two for the same thing.
I will test, but that is not clear to me then.
Can we clear that to be sure here?
Many thanks.
Daniel.