![]() (frames) (no frames) |
About FTP4ALL | Getting started | Controlling the Server | Help and Support | Debug and Development |
concepts | download | SITE commands | FAQs | debug | |
credits | compilation, installation, startup | registry | helpdesk | F4ADP | |
history | config files | upgrade from 2.x | changelog | ||
license | FTP messages |
/cdrom/private 0 1 0x230000 /cdrom 0 0 0x7F2323This configuration gives fixes ownerships and permissions to certain directories. Its main purpose is to mount read-only media (CDROMs).
*.arj /some/script.sh *.zip /some/other/script.sh -whateverThis is the archive checker. Whenever a file with a matching wildcard is uploaded, the program/script is executed. The script must return 0 if the file is ok, otherwise 1.
*.arj /some/script.sh *.zip /some/other/script.sh -whateverThis is the dupe checker. Whenever a file with a matching wildcard is to be uploaded, the program/script is executed. The script must return 0 if upload is ok, otherwise 1.
upload /pub/upload games /pub/gamesThis specifies directory shortcuts. Whenever someone does a CD <shortcut> f4a does a CD <full_path> instead.
mo-fr 08:00-18:00 u=20,a=0 ud=50 sa-su ~ ua=40,i=1,d=2 u=50,d=50 ~ 18:00-08:00 * u=100/2 * * u=100,a=100,i=2 *This is the most difficult configuration file (to be honest: the other ones are trivial). Limits.cfg is for restricting the number of users and the bandwidth consumed by the server, depending on the time of day and the day of week.
The lines of the example explained:
mo-fr 08:00-18:00 u=20,a=0 ud=50 means:
On Mondays, Tuesdays, Wednesdays, Thursdays and Fridays from 08:00 to 18:00
there is a limit of 20 user sessions. No anonymous access is allowed in this
time. The Bandwidth for uploads and downloads is restricted to 50 KB/s total.
sa-su ~ ua=40,i=1,d=2 u=50,d=50 means:
On Saturdays and Sundays from 08:00 to 18:00 the number of user and anonymous
sessions is limited to 40 (There can be 10 user, 30 anonymous or vice versa).
There is only one anonymous login per IP allowed, and 2 anonymous logins from
the same class C network. The upload bandwidth is limited to 50 KB/s, and the
download bandwidth too, resulting in a total bandwidth of 100 KB/s.
~ 18:00-08:00 * u=100/2 means:
On Saturdays and Sundays from 00:00 to 08:00 and 18:00 to 23:59 there is no
limit in user sessions. However, upload bandwidth is restricted to 100 KB/s.
The bandwidth is handed out by factor 2. This means: The server always hands
out half of the available bandwidth. There is no download bandwidth limit.
* * u=100,a=100,i=2 * means:
On any time, there may be 100 users plus 100 anonymous online. There are up to
two anonymous logins from the same IP allowed. There is no restriction for
anonymous logins regarding the class C network.
There is absolutely no bandwidth limit.