#
# /etc/proftpd.conf -- Masquerade avec Virtual Host Local .
#
ServerName "NOM_DU_SERVEUR"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayConnect before.msg
DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"
DenyFilter \*.*/
# Utilisation de NIS ou LDAP:
#PersistentPasswd off
# Utilisation de TLS:
#TLSEngine on
# Utilisation des Quotas:
#Quotas on
# Utilisation des Ratio:
#Ratios on
# Port de communication du serveur (standard 21).
Port 21
# Port mode PASSIV
PassivePorts 60000 60500
# Addresse de Masquage !!! A REMPLACER PAR LA VOTRE !!!
MasqueradeAddress XXX.XXX.XXX.XXX
# 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
# utilisateur et groupe du serveur.
User nobody
Group nogroup
# Umask 022 interdit l'écriture et la creation de fichier et répertoire.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite off
# 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.
#DelayEngine off
# Chroot PROFTPD
DefaultRoot ~
# Connection annonyme et des utilisateur à partir du net de du réseau local
<Anonymous ~ftp>
User ftp
Group nogroup
# # Alias pour la connection de l utilisateur anonyme
UserAlias anonymous ftp
# # n'utiliser que des lais authentifier
AuthAliasOnly on
# # Cosmetic changes, all files belongs to ftp user
DirFakeUser on ftp
DirFakeGroup on ftp
# Hide all files owned by user 'root'
HideUser root
#
RequireValidShell off
#
# Message et nombre maximum de connections
MaxClients 50 "Désolé, le maximum de %m utilisateurs est atteint -- réessayez plus tard"
# # Limit WRITE everywhere in the anonymous chroot
<Directory *>
<Limit RMD DELE MKD STOR WRITE>
DenyAll
</Limit>
<Limit CWD READ>
AllowAll
</Limit>
</Directory>
</Anonymous>
# Hôte Virtuel Pour le réseau local
# !!! A remplacer par l'adresse ip local de votre serveur ftp
<VirtualHost 192.168.2.2>
ServerName "FTP Local"
DeferWelcome off
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayConnect before.msg
DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"
DenyFilter \*.*/
#PersistentPasswd off
TLSEngine on
#Quotas on
#Ratios on
Port 21
User nobody
Group nogroup
Umask 022 022
AllowOverwrite on
DefaultRoot ~
<Anonymous ~ftp>
User ftp
Group nogroup
UserAlias anonymous ftp
AuthAliasOnly on
DirFakeUser on ftp
DirFakeGroup on ftp
HideUser root
RequireValidShell off
MaxClients 50 "Désolé, le maximum de %m utilisateurs est #atteint -- réessayez plus tard"
<Directory *>
<Limit RMD DELE MKD STOR WRITE>
DenyAll
</Limit>
<Limit CWD READ>
AllowAll
</Limit>
</Directory>
</Anonymous>
</VirtualHost>