Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1


Stary wyjadacz :P



witam
uruchomiłem wreszcie proftpd + mysql
lecz nie pokazuje mi plików w katalogu do którego jest przypisany użytkownik ,dostaje timeout :/
proftpd.conf :
#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes, reload proftpd after modifications, if
# it runs in daemon mode. It is not required in inetd/xinetd mode.
#
# Includes DSO modules
Include /etc/proftpd/modules.conf
UseIPv6 off
IdentLookups off
ServerName "Debian"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayChdir .message true
ListOptions "-l"
DenyFilter \*.*/
# Port 21 is the standard FTP port.
Port 10021
# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
PassivePorts 49152 65534
# If your host was NATted, this option is useful in order to
# allow passive tranfers to work. You have to use your public
# address and opening the passive ports used on your firewall as well.
# This is useful for masquerading address with dynamic IPs:
# refresh any configured MasqueradeAddress directives every 8 hours
<IfModule mod_dynmasq.c>
# DynMasqRefresh 28800
</IfModule>
# 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 that the server normally runs at.
User proftpd
Group nogroup
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords:
# PersistentPasswd off
# This is required to use both PAM-based authentication and local passwords
# AuthOrder mod_auth_pam.c* mod_auth_unix.c
# Be warned: use of this directive impacts CPU average load!
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
#
# UseSendFile off
TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log
# Logging onto /var/log/lastlog is enabled but set to off by default
#UseLastlog on
# In order to keep log file dates consistent after chroot, use timezone info
# from /etc/localtime. If this is not set, and proftpd is configured to
# chroot (e.g. DefaultRoot or <Anonymous>), it will use the non-daylight
# savings timezone regardless of whether DST is in effect.
#SetEnv TZ :/etc/localtime
<IfModule mod_quotatab.c>
QuotaEngine off
</IfModule>
<IfModule mod_ratio.c>
Ratios off
</IfModule>
# Delay engine reduces impact of the so-called Timing Attack described in
# http://www.securityfocus.com/bid/11430/discuss
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>
<IfModule mod_ctrls.c>
ControlsEngine off
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>
<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
</IfModule>
#
# Alternative authentication frameworks
#
#Include /etc/proftpd/ldap.conf
Include /etc/proftpd/sql.conf
#
# This is used for FTPS connections
#
#Include /etc/proftpd/tls.conf
#
# Useful to keep VirtualHost/VirtualRoot directives separated
#
#Include /etc/proftpd/virtuals.con
# Include other custom configuration files
Include /etc/proftpd/conf.d/
<IfModule mod_memcache.c>
MemcacheEngine on
MemcacheServers 127.0.0.1:11211
</IfModule>
# Normally, we want files to be over write able.
<Directory /*>
AllowOverwrite on
</Directory>sql.conf
<IfModule mod_sql.c> SQLBackend mysql # SQLEngine on SQLAuthenticate on # # Use both a crypted or plaintext password SQLAuthTypes Crypt Plaintext # # Use a backend-crypted or a crypted password SQLAuthTypes Backend Crypt # # Connection SQLConnectInfo proftpd@localhost proftpd trudnehaslo # # Describes both users/groups tables # SQLUserInfo ftpuser userid passwd uid gid homedir shell SQLGroupInfo ftpgroup groupname gid members SQLMinID 500 # Update count every time user logs in SQLLog PASS updatecount SQLNamedQuery updatecount UPDATE "count=count+1, accessed=now() WHERE userid='%u'" ftpuser # Update modified everytime user uploads or deletes a file SQLLog STOR,DELE modified SQLNamedQuery modified UPDATE "modified=now() WHERE userid='%u'" ftpuser DefaultRoot ~ RootLogin off RequireValidShell off SqlLogFile /var/log/proftpd/sql.log </IfModule>
gdzie popełniłem błąd w konfiguracji ?
Offline



Użytkownik


Stary wyjadacz :P



Oct 23 13:06:20 ip proftpd[14530] : FTP session opened. Oct 23 13:06:22 ip proftpd[14530] : Preparing to chroot to directory '/web/upload/tmp' Oct 23 13:06:22 ip proftpd[14530] : USER ftpuser: Login successful. Oct 23 13:16:23 ip proftpd[14530] : Data transfer stall timeout: 600 seconds Oct 23 13:16:23 ip proftpd[14530] : FTP session closed.
Ostatnio edytowany przez szewczyk (2012-10-23 15:23:20)
Offline


Stary wyjadacz :P



Może ktoś ma jakiś pomysł ? Pomocy :/
Nie moge nawet skonfigurować PHPdesignera do kumunikacji za pomocą sftp + klucz
Offline







Podobno człowiek...;)








U mnie też ostatnio proftpd nie listuje katalogów, nie wiem, o co biega,
Ale zamiast wołać pomocy możesz zainstalować pure-ftpd - razem z uploadscriptem (clamav) postawisz działający ftp z ssl/tls w 15 minut.
Jest 25 razy latwiejszy w konfiguracji niż Proftpd i w dodatku w ciągu ostatnich kilku lat nie miał podrzuconego backdoora (w przeciwieństwie do proftpd i vsftpd).
Sznurki:
http://www.howtoforge.com/virtual-hosting-with-pure … -debian-lenny
http://www.howtoforge.com/how-to-integrate-clamav-i … -debian-lenny
http://www.howtoforge.com/how-to-configure-pureftpd … -debian-lenny
W ogóle ze względu bezpieczeństwa, i na takie kfiatki, radzę zawsze mieć skonfigurowane i zainstalowane 2 serwery ftp, zapięte do autoryzacji przez pam_mysql, żeby można przełączyć się z jednego na drugi, jak na RSS będzie następny alarm z którymś ftp.
Ostatnio edytowany przez Jacekalex (2012-10-24 09:40:27)
Offline


Stary wyjadacz :P



z pure-ftpd ta sama sytuacja filezilla zatrzymuje sie na komendzie MLSD (listowanie katalogów) w logach nic , autoryzacja przechodzi bez problemu
Offline


Stary wyjadacz :P



serwer mam za NAT ,działa aż miło patrzeć !!! :)
Offline







Podobno człowiek...;)








Czemu od razu nie napisałeś, o co biega?
Jest moduł iptables , nazywa się: CONFIG_NF_NAT_FTP=y
U mnie wbudowany na sztywno, na pewno działa z klientami ftp, czy sprawdzi się na serwerze ftp?
Diabli wiedzą.
Generalnie serwer ftp za NAT to jest gigantyczne nieporozumienie, bo to dziadostwo powstało w czasach, jak nie było ani NAT ani firewalli.
Dlatego potrzebuje portów pasywnych, i podobnych bzdur.
Ewentualnie musisz przekierować przy NAT caly zakres portów pasywnych, jakich używa serwer FTP, ale to już więcej rzeźbienia w NATcie niż ta robota warta.
Lepiej pozostań przy ssh, ten działa na jednym porcie, i zarówno FIlezilla jak sshfs, czy Windowsowy WinSCP obsługują go bez najmniejszego problemu.
Trochę inaczej tam się robi chroota na sftp, ale nie święci garnki lepią.
Offline


Stary wyjadacz :P



zamknałem porty pasywne dla ftp
dodałem echo "adres_zewnętrzny" > conf/ForcePassiveIP
wyłaczyłem passive mode w programie i jest ok
szukam jeszcze zmiany portu dla pure-ftp aby nie był na domyślnym
Offline
Strony: 1