All pastes #260226 Raw Edit

Quelque chose

public text v1 · immutable
#260226 ·published 2006-11-28 03:23 UTC
rendered paste body
#
# /etc/proftpd.conf -- Masquerade avec Virtual Host Local .
# 

ServerName			"ftp.cereli.org"
ServerType			standalone
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 PASSV 
PassivePorts 60000 60500
# Addresse de Masquage !!! A REMPLACER PAR LA VOTRE !!!
MasqueradeAddress  82.228.244.195
# 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

DeferWelcome			off
# Umask 022 interdit l'écriture et la creation de fichier et répertoire.
Umask				022  022
TimeoutLogin         		120
TimeoutNoTransfer		600
TimeoutStalled			600
TimeoutIdle			1200
# utilisateur et groupe du serveur.
User				nobody
Group				nogroup

MultilineRFC2228		on
DefaultServer			on
ShowSymlinks			on

# 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 ~

DisplayConnect 			before.msg
DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
# Normally, we want files to be overwriteable.
AllowOverwrite			off



# 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>