Proftpd tunen

B

beomuex

Routinier
Hallo ich habe meinen Proftpd Server neukonfiguiert....er läuft nur im LAN und ist mit Gigabit angeschlossen.Ich möchte nun noch ein paar Performance-Tweaks machen.Was fehlt? Was ist zuviel?





Code:
# Includes DSO modules
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6				off

ServerName			"Resheph"
ServerType standalone
DeferWelcome off

MultilineRFC2228 on
DefaultServer on
ShowSymlinks on

AllowOverwrite on
AllowRetrieveRestart on
AllowStoreRestart on 
AllowRetrieveRestart on
DeferWelcome off
MaxClients none
MaxClientsPerHost 30

TimeoutIdle 20
TimeoutStalled 20
TimeoutSession 60
TimeoutNoTransfer 60
TimeoutLogin 20
MaxRetrieveFileSize *

DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"

DenyFilter \*.*/

# Use this to jail all users in their homes 
# DefaultRoot			~



# Port 21 is the standard FTP port.
Port 21


# 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

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

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite off

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
# PersistentPasswd		off

# Be warned: use of this directive impacts CPU average load!
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.

 UseSendFile			on



TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log

<IfModule mod_tls.c>
TLSEngine off
</IfModule>

<IfModule mod_quota.c>
QuotaEngine on
</IfModule>

<IfModule mod_ratio.c>
Ratios on
</IfModule>


# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default. 
<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine        on
ControlsMaxClients    2
ControlsLog           /var/log/proftpd/controls.log
ControlsInterval      5
ControlsSocket        /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>

#tweaks
UseReverseDNS off
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart on
IdentLookups off
RequireValidShell off

#admin config
UserAlias beomuex beowulf
DefaultChdir /mnt
DefaultRoot /mnt


# Anonymous configuration
<Anonymous /mnt/files/>
   User         ftp
   Group        nogroup
   UserAlias    anonymous ftp
   MaxClientsPerHost 5
# Cosmetic changes, all files belongs to ftp user
 DirFakeUser	on ftp
  DirFakeGroup on ftp
HideNoAccess on
   <Limit LOGIN>
        Allow   All
   </Limit>
   <Limit ALL>
        Deny    All
   </Limit>
   <Limit PWD CWD LIST RETR>
        Allow   ALL
   </Limit>
</Anonymous>

Mfg beomuex
 
Wenn der Server sowieso nur im LAN läuft und du alle Usern vertraust und der FTP-Server Fehlerfrei eingerichtet ist, kannst du die Logs ausschalten:D

Aber wieso willst du überhaupt an der Config was ändern... wenn Proftpd alles kann, was es können soll dann lass die Config doch einfach so... Ich glaube nicht das, dass einen Unterschied macht, ob jetzt 1 Befehl mehr oder weniger abgearbeitet wird!
 

Ähnliche Themen

NGINX bietet intern abgerufene Seiten nur zum Download an, extern geht's

Nginx als Reverse Proxy für Nextcloud und Emby

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

Senior System & Network Admin in Berlin

X startet nichtmehr

Zurück
Oben