User Tools

Site Tools


sermn_wiki:userpages:marta:ftp

This is an old revision of the document!


Servidor FTP amb ProFTPd

<note important> En construcción </note>

Configuració

General

   Include		  /etc/proftpd/modules.conf
   AuthPAM		  off
   UseIPv6		  off
   
   ServerName		  "cie-58-175"
   ServerType		  standalone
   DeferWelcome	  off
   
   MultilineRFC2228	  on
   DefaultServer	  on
   ShowSymlinks	  on
   
   TimeoutNoTransfer	  600
   TimeoutStalled	  600
   TimeoutIdle	  1200
   
   DisplayLogin	  welcome.msg
   DisplayFirstChdir	  .message
   ListOptions	  "-l"
   
   DenyFilter		  \*.*/
   
   Port		  21
   
   MaxInstances	  30
   
   User		  nobody
   Group		  nogroup
   
   Umask		  022  022
   AllowOverwrite	  on
   AllowRetrieveRestart on
   
   DefaultRoot 	  ~
   IdentLookups 	  off
   
   RootLogin		  off
   MaxLoginAttempts	  3
   RequireValidShell	  off
   
   MaxClientsPerHost	  2
   MaxClientsPerUser	  2
   MaxClients		  10 "Full Server"
   
   DirFakeGroup	  on ftp
   DirFakeUser	  on ftp
   DirFakeMode	  0000
   
   TransferLog 	  /<path>/<file>
   SystemLog   	  /<path>/<file>.log
   <IfModule mod_quota.c>
        QuotaEngine on
   </IfModule>
   
   <IfModule mod_ratio.c>
        Ratios on
   </IfModule>
   
   <IfModule mod_delay.c>
        DelayEngine on
   </IfModule>
   
   <IfModule mod_ctrls.c>
        ControlsEngine        on
        ControlsMaxClients    2
        ControlsLog           /<path>/controls.log
        ControlsInterval      5
        ControlsSocket        /<path>/proftpd.sock
   </IfModule>
   
   <IfModule mod_ctrls_admin.c>
        AdminControlsEngine on
   </IfModule>


Usuaris virtuals amb mySQL

# Autentificacion bbdd mysql
   SQLBackend              mysql
   SQLAuthTypes            Backend
   SQLAuthenticate         users*
   SQLConnectInfo          <dbname>@localhost <dbuser> <password>
   SQLDefaultGID           32767
   SQLDefaultUID           32767
   SQLMinID                500
   SQLUserInfo             users username password uid gid homedir shell
   SQLUserWhereClause      "actiu=1"
   SQLHomedirOnDemand      on
   
# Acutalització de la base de dades
   SQLLog PASS updatecount
   SQLNamedQuery updatecount UPDATE "count=count+1, accessed=now() WHERE username='%u'" users


Connexió segura amb SSL/TLS

#Configuracio SSL
   <IfModule mod_tls.c>
        TLSEngine on
   </IfModule>
   
   TLSLog				/var/log/proftpd/tls.log
   TLSProtocol			SSLv23
   TLSRSACertificateFile 		/etc/ssl/certs/ftpd-rsa.pem
   TLSRSACertificateKeyFile	        /etc/ssl/certs/ftpd-rsa.pem
   TLSVerifyClient			off
   TLSOptions			        NoCertRequest
   TLSRenegotiate			required off
   TLSRequired			on

Enllaços

www.proftpd.org

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
sermn_wiki/userpages/marta/ftp.1227014107.txt.gz · Last modified: 2008/11/18 14:15 by marta