ProFTPd anonymous

Un article de Wiki SOS-ADMIN.


Juste un petit exemple de fichier de configuration de proftpd pour un accés anonyme en téléchargement.

N'hesitez pas a me contacter pour tout probleme ...

Souley http://www.support-fr.org

--Souley 26 nov 2005 à 21:22 (CET)


 # On commence par definir les options  globales du serveur ftp 
 # Nom du serveur
 ServerName          "Support-fr.org FTP Server"
 # Stanalone ou Xinetd
 ServerType          standalone
 # Utilisation du serveur par defaut
 DefaultServer       on
 # Les utilisateurs n'ont pas besoin de shell valide
 RequireValidShell   off
 # On n'utilise pas PAM
 AuthPAM             off
 AuthPAMConfig       ftp
 # On evite les requete DNS lors de la connexion d'un utilisateur (accelere la connexion)
 IdentLookups off
 UseReverseDNS off
 # Port 21 is the standard FTP port.
 Port				21
 DenyFilter \*.*/
 # Umask 022 is a good standard umask to prevent new dirs and files
 # from being group and world writable.
 Umask				022
 # 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 under which the server will run.
 User				ftp
 Group				nogroup
 # Lieux ou sont stockes les logs 
 SystemLog /var/log/proftpd/proftpd.log
 TransferLog /var/log/proftpd/xferlog
 # Adresse Mail du responsable du serveur
 ServerAdmin *******@support-fr.org
 TimesGMT off
 # On n'affiche pas les permissions des fichiers
 DirFakeUser on nobody
 DirFakeGroup on nobody
 # Mode de transfert par defaut
 DefaultTransferMode binary
 # ON autrorise le resume
 AllowRetrieveRestart on
 AllowStoreRestart on
 TimeoutNoTransfer               600
 TimeoutStalled                  600
 TimeoutIdle      		  1200
 # Normally, we want files to be overwriteable.
 <Directory />
   AllowOverwrite		on
 </Directory>
 # A basic anonymous configuration, no upload directories.
 <Anonymous ~ftp>
   User				ftp
   Group				ftp
 # We want clients to be able to login with "anonymous" as well as "ftp"
 UserAlias			anonymous ftp
 # Limit the maximum number of anonymous logins
 MaxClients			10
 # We want 'welcome.msg' displayed at login, and '.message' displayed
 # in each newly chdired directory.
 DisplayLogin			welcome.msg
 DisplayFirstChdir		.message
 # Limit WRITE everywhere in the anonymous chroot
 <Limit WRITE>
   DenyAll
 </Limit>
 </Anonymous>
 MaxClientsPerHost		2
 MaxLoginAttempts		3
 AccessGrantMsg			"Bienvenue %u sur le serveur FTP support-fr.org"
 DeferWelcome			on
 <Global>
 DefaultRoot           ~
 AllowOverwrite        yes
 MaxClients            30
 MaxClientsPerHost     1
 UseFtpUsers           on
 AllowForeignAddress   on
 ServerIdent           on   "Support-fr.org FTP server Ready" 
 AccessGrantMsg        "Bienvenue %u sur le serveur Support-fr.org"
 </Global>