Léa-Linux & amis :   LinuxFR   GCU-Squad   GNU
proftpd
Envoyé par: kybo

salut,

voila une semaine j'ai refait mon pc avec fedora 8 (anciennement fedora 4) et j'ai un probleme avec proftpd, je suis logger mais n'arrive pas a fficher le contenu....

mon fichier proftpd.conf:
ServerType standalone
DefaultServer on
Umask 022
ServerName "XXXXXXXX"
ServerIdent on "XXXXXXXX"
IdentLookups off
UseReverseDNS off
UseFtpUsers off
Port 21
PassivePorts 49160 65534
RequireValidShell off
DefaultChdir /media/HITACHI60/ftp
DefaultRoot /media/HITACHI60/ftp
TransferLog /var/log/xferlog
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
DisplayLogin welcome.msg
User nobody
Group nobody
DirFakeUser off nobody
DirFakeGroup off off
DefaultTransferMode binary
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 0
TransferRate STOR 0
TransferRate STOU 0
TransferRate APPE 0
RequireValidShell off
#gp_random_username_length 4
#gp_random_password_length 4
#gp_randomize_case lower
#gp_useradd_homedir_path /var/ftp
#gp_html_path /var/www/html/ftp.htm
#gp_welcome_name welcome.msg
<IfModule mod_tls.c>
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSProtocol TLSv1
TLSLog /usr/local/var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gproftpd/gproftpd.pem
</IfModule>
<IfModule mod_ratio.c>
Ratios off
SaveRatios off
RatioFile "/restricted/proftpd_ratios"
RatioTempFile "/restricted/proftpd_ratios_temp"
CwdRatioMsg "Please upload first!"
FileRatioErrMsg "FileRatio limit exceeded, upload something first..."
ByteRatioErrMsg "ByteRatio limit exceeded, upload something first..."
LeechRatioMsg "Your ratio is unlimited."
</IfModule>
<Limit LOGIN>
AllowUser ninja
AllowUser kybo
DenyALL
</Limit>

<Anonymous /media/HITACHI60/ftp>
User ninja
Group kybo
AnonRequirePassword off
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<Limit LIST NLST RETR PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit STOR STOU APPE RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM >
DenyAll
</Limit>
</Anonymous>

<Anonymous /media/HITACHI60/ftp>
User kybo
Group kybo
AnonRequirePassword off
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
AllowOverwrite off
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<Limit RETR LIST NLST MDTM SIZE STAT CWD XCWD PWD XPWD CDUP XCUP>
AllowAll
</Limit>
<Limit DELE APPE STOR STOU SITE_CHMOD SITE_CHGRP RNFR RNTO MKD XMKD RMD XRMD>
DenyAll
</Limit>
</Anonymous>


/var/log/proftpd.log

Dec 27 01:58:24 localhost.localdomain proftpd[12724] localhost.localdomain (::ffff:192.168.1.1[:ffff:192.168.1.1]): FTP session opened.
Dec 27 01:58:24 localhost.localdomain proftpd[12724] localhost.localdomain (::ffff:192.168.1.1[:ffff:192.168.1.1]): ANON kybo: Login successful.
Dec 27 01:58:24 localhost.localdomain proftpd[12724] localhost.localdomain (::ffff:192.168.1.1[:ffff:192.168.1.1]): Preparing to chroot to directory '/media/HITACHI60/ftp'
Dec 27 02:00:24 localhost.localdomain proftpd[12724] localhost.localdomain (::ffff:192.168.1.1[:ffff:192.168.1.1]): FTP session idle timeout, disconnected
Dec 27 02:00:24 localhost.localdomain proftpd[12724] localhost.localdomain (::ffff:192.168.1.1[:ffff:192.168.1.1]): FTP session closed.


merci de votre aide....

Poste le Saturday 29 December 2007 19:48:48
Répondre     Citer    
Re: proftpd
Envoyé par: chromosome

Juste une question au passage, tu n'auras pas un firewall dans le chemin ?

Car ca sent, comme ca au premier coup d'oeil, a un probleme de ftp actif/passif. Ce qu'il faut savoir c'est que quand tu fais un trnasfert de donnee (donc pas pour le passage de commande), comme par exemple upload, download ou download de la liste des fichiers sur le serveur, le protocol ftp utilise une nouvelle session, et si tu as un firewall de le passage et qu'il est mal configurer il va dropper cette nouvelle session.


Poste le Monday 31 December 2007 09:47:50
Répondre     Citer    

Veuillez vous authentifier auparavant pour commenter.

 

Ce forum !
proftpd
Posez dans ce forum les questions qui ne trouvent pas place dans les autres...

Sauf mention contraire, les documentations publiées sont sous licence Creative-Commons