# 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.
# !!! PLEASE read the documentation of proftpd !!!
#
# You can find the documentation in /usr/doc/packages/proftpd/,
#
http://www.proftpd.org/ and don't forget to read carefully
# and _follow_ hints on
http://www.proftpd.net/security.html.
#
# geaendert: 03.11.2001 für ProFTP 1.2.4 und mod_sql 4.x
#
#
# Basic
#
ServerName "Gudens FTP"
serverType standalone
ServerAdmin Guden
#
# Debug Level
# emerg, alert, crit (empfohlen), error, warn. notice, info, debug
#
#SyslogLevel crit
#SystemLog /var/log/proftpd.system.log
#
# uncomment, if you want to hide the servers name:
#
ServerIdent on "Gudens FTP"
DeferWelcome on
DefaultServer on
#
# Display
#
DisplayLogin /.login.msg
DisplayConnect /.login.msg
DisplayFirstChdir index.txt
ExecEngine on
ExecOnConnect /usr/local/proftpd/bin/ftplogin2 /fileserver/ftp/.login.msg %a
# Port 21 is the standard FTP port
Port 21
# disable listen on 0.0.0.0:21 - the port (and IP) should
# be specified explicitly in each VirtualHost definition
#
#Port 0
# listen for each (additional) address explicitly that is
# specified (via Bind and Port) in a VirtualHost definition
#
#SocketBindTight on
#
# FXP Unterstuetzung
#
AllowForeignAddress on
# Umask 022 is a good standard umask to prevent new dirs
# and files from being group and world writable.
Umask 022
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
# Maximal Werte setzen
MaxClientsPerHost 2 "Nicht mehr als %m Verbindungen"
MaxClients 4 "Leider sind schon %m Clients verbunden"
MaxClientsPerUser 2 "Nicht mehr als %m Verbindungen"
Classes on
Class default limit 5
Class internet limit 10
Class local limit 3
Class internet ip 0.0.0.0/0
Class internet ip 192.168.99.99/24
Class local ip 127.0.0.1/24
Class local ip 192.168.0.0/24
#
# Restart erlauben
#
AllowStoreRestart on
AllowRetrieveRestart on
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# such as xinetd)
MaxInstances 30
# Performance: skip DNS resolution when we process the logs...
UseReverseDNS on
# Turn off Ident lookups
IdentLookups on
# Set the maximum number of seconds a data connection is allowed
# to "stall" before being aborted.
TimeoutStalled 300
# Where do we put the pid files?
#ScoreboardPath /usr/local/var/proftpd
#
# Logging options
#
TransferLog /var/log/proftpd.xferlog
# Some logging formats
#
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
LogFormat write "%h %l %u %t \"%r\" %s %b"
# Log file/dir access
ExtendedLog /var/log/proftpd.access_log WRITE,READ write
# Record all logins
ExtendedLog /var/log/proftpd.auth_log AUTH auth
# Paranoia logging level....
ExtendedLog /var/log/proftpd.paranoid_log ALL default
#
# Do a chroot for web-users (i.e. public or www group), but
# do not change root if the user is also in the users group...
#
DefaultRoot ~
#
# Limit login attempts
#
MaxLoginAttempts 2
#
# Users needs a valid shell
#
RequireValidShell off
PassivePorts 49152 65534
Ratios on
SaveRatios on # Save ratios in plain text.
RatioFile "/.ratiofile" # Required for SaveRatios
RatioTempFile "/.ratiofile.tmp" # Required for SaveRatios
CwdRatioMsg "Please Upload!" # Displayed after every directory
UserRatio gudi 0 0 0 0
FileRatioErrMsg "Come on you can send more files than that...."
ByteRatioErrMsg "This file is %i big, you know...."
LeechRatioMsg "Access: Unlimited"
MultilineRFC2228 on
TimeoutIdle 60
AllowForeignAddress on
MaxClientsPerUser 3 "Only one such user at a time."
<Directory /*>
AllowOverwrite on
<Limit STOR CMD MKD WRITE DELE RMD>
AllowALL
</Limit>
</Directory>