PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Hilfe: Proftpd macht keine Bandbreitenlimitierung



nobody0
21.11.04, 16:34
Nachdem ich die neueste Proftpd-Version unter SuSE 9.2 mit der alten bewährten proftpd.conf gestartet habe, mußte ich feststellen, dass proftpd weder die Anzahl der Verbindungen noch die Bandbreite limitiert :eek:

Hier ist die Config:



# This is a basic ProFTPD configuration file. It establishes a single
# server and a single anonymous login. It assumes that you have a
# user/group "nobody"/"nogroup" for normal operation and anon.

ServerName RedOne
#ServerType inetd
ServerType standalone
ServerAdmin nobodyo<nospam>@</nospam>web.de
ServerIdent on "--= Red One FTP =--"
DeferWelcome on
DefaultServer on

# Port 21 is the standard FTP port.
Port 21

# Umask 022 is a good standard umask to prevent new dirs
# and files from being group and world writable.
Umask 022

# The ratio directives take four numbers: file ratio, initial file
# credit, byte ratio, and initial byte credit. Setting either ratio
# to 0 disables that check.
#
# The directives are HostRatio (matches FQDN -- wildcards are allowed
# in this one), AnonRatio (matches password entered in an anon login,
# usually an email address), UserRatio (accepts "*" for 'any user'),
# and GroupRatio. Matches are looked for in that order.
#
# Some examples:
#
# Ratios on # enable module
# UserRatio ftp 0 0 0 0
# HostRatio anyhost.domain.top 0 0 0 0 # leech access (default)
# GroupRatio proftpd 100 10 5 100000 # 100:1 files, 10 file cred
# AnonRatio auser@domain.top 1 0 1 0 # 1:1 ratio, no credits
# UserRatio * 5 5 5 50000 # special default case
#
# Setting "Ratios on" without configuring anything else will enable
# leech mode: it logs activity and sends status messages to the ftp
# client, but doesn't restrict traffic.

# ScoreboardPath /var/run/proftpd

# Max Connections
# Note that this ONLY works in standalone mode
MaxInstances 6

# Set the user and group that the server normally runs at.
User nobody
Group nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files not to be overwriteable.
<Directory />
AllowOverwrite off
</Directory>

LogFormat anonymous "%t[ %u ][ %a ][ %h ][ %r ][ %f ][ %b ]"
#ExtendedLog /var/log/proftpd auth,read,write anonymous
ExtendedLog /var/log/proftpd all anonymous

<Limit LOGIN>
DenyGroup guests
</Limit>
<Anonymous /srv/ftp>
<Limit LOGIN>
Order Allow,Deny
Allow from all
Deny from all
</Limit>

MaxClients 3 "no. maximal user count reached (2)."
MaxClientsPerHost 2 "no. maximal host-based login count reached (2)"

TransferRate APPE,RETR,STOR,STOU 2.984:1492

RateReadBPS 2984
RateReadFreeBytes 1492
RateReadHardBPS on
RateWriteBPS 2984
RateWriteFreeBytes 1492
RateWriteHardBPS on

AnonRequirePassword off
# AuthAliasOnly on
# AuthUsingAlias on
UserAlias anonymous ftp

# After anonymous login, daemon runs as (ftp, daemon):
User ftp
Group ftp

RequireValidShell off

AccessGrantMsg "Access granted to user: %u "

# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin .login
DisplayFirstChdir .message
DisplayQuit .quit
ShowSymlinks on

# Deny write operations to all directories, underneath root-dir
# Default is to allow, so we don't need a <Limit> for read operations.
<Directory *>
AllowRetrieveRestart on
<Limit WRITE>
DenyAll
</Limit>
</Directory>

#<Directory /upload>
#AllowOverwrite on
#<Limit STOR>
#AllowAll
#</Limit>
#</Directory>

#<Directory upload>
#<Limit WRITE STOR CWD XCWD>
#AllowAll
#</Limit>
#<Limit READ DELE MKD RMD XMKD XRMD>
#DenyAll
#</Limit>
#</Directory>

#<Directory upload>
#AllowStoreRestart on
#AllowOverWrite on
#<Limit READ>
#DenyAll
#</Limit>
#<Limit STOR SIZE MKD>
#AllowAll
#</Limit>
#</Directory>


# <Directory upload>
# <Limit STOR CWD XCWD>
# AllowAll
# </Limit>
# <Limit READ DELE MKD RMD XMKD XRMD>
# DenyAll
# </Limit>
# </Directory>


# Only uploads into incoming directory are allowed...
<Directory upload>
# <Limit ALL>
# DenyAll
# </Limit>
# allow resume in uploading
AllowStoreRestart on
AllowOverwrite on
# Umask 002
# ... so deny read/write
# <Limit READ WRITE>
# DenyAll
# </Limit>
# ... allow file storing, but not other writes
<Limit REST STOR MKD APPE CDUP CWD XCWD XCUP STOU>
AllowAll
</Limit>
</Directory>


</Anonymous>

TransferRate APPE,RETR,STOR,STOU 2.984:1492

RateReadBPS 2984 # 3Kbit/s max
RateReadFreeBytes 1492 # less than one DSL packet at full speed
RateReadHardBPS on # after 1 DSL packet _forced_ down to 1K/s
RateWriteBPS 2984
RateWriteFreeBytes 1492
RateWriteHardBPS on


Das Durchsuchen der Dokumentation und google halfen nicht weiter; die zusätzlichen Zeilen mit Rate... brachten nichts :(

Irgendwelche Vorschläge? :confused:

nobody0
21.11.04, 16:44
Also jetzt habe ich es nochmal probiert und nun akzeptiert proftpd plötzlich nicht mehr die Rate...-Einträge :confused:
Testweise habe ich nach dem Auskommentieren dieser Zeilen proftpd mit der Option -c /etc/proftpd.conf gestartet und merkwürdigerweise funktioniert es nun, obwohl diese Config doch default ist; merkwürdig :confused: