Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: dmeziere on June 08, 2007, 02:39:20 PM
-
Hello,
i've made a post on the french board, but i had no answer ... so i try this one :p
does anyone knows how to "smartly" change the max concurrent connexions in the FTP config ? i mean not the hard way, by using the normal sme config system ... i work a lot with jEdit and it dont closes his connections, and my server is a local one so i don't need paranoiac configuration.
David.
-
Looking at /var/service/ftp/run, it looks like you need to do one or both of these:
a) edit /var/service/ftp/peers/0 (for WAN settings) or /var/service/ftp/peers/local (for LAN settings) to say "Cx" (where x is the concurrency limit). The default content of both of these files is "C4"
or
b) edit /var/service/ftp/run and change the values for "-c" and for "-C". "-c" is the total number of instances allowed for this service, "-C" is the total number of instances allowed for any single remote host.
or
c) You may have to do both. Looking at the man page for ipsvd-instruct (link below) it looks as though the "-C ...." in /var/service/ftp/run overrides the "C4" in "/var/service/ftp/peers/<file>" because it comes after the "-i ..." line that invokes the "peers" functionality.
After making your changes, execute service restart ftp to activate your changes
If everything has worked as you want, you will need to create custom templates to make your changes survive reboots, updates, &c. The only default templates for this service are for "peers/0" and "peers/local", and (as mentioned above) the values in these files may be over-ridden by the "-C ...." line in "run".
Since there are no "intelligent" templates for the ftp service itself I don't think there is any official "SME" way to reconfigure these settings.
References:
http://smarden.org/ipsvd/
http://smarden.org/ipsvd/tcpsvd.8.html
http://smarden.org/ipsvd/ipsvd-instruct.5.html