Sziasztok,
a napokban feltettem a proftpd-t es egy darabig ment minden rendben de most valami miatt kulso halozatbol csak a bejelentkezes megy, nem tudok listazni. A config fajl igy nez ki:
ServerType standalone
DefaultServer on
Umask 022
ServerName "0.0.0.0"
ServerIdent on "My FTP Server"
ServerAdmin email@example.org
IdentLookups off
UseReverseDNS off
Port 21
PassivePorts 49152 65534
#MasqueradeAddress None
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
DisplayLogin welcome.msg
DisplayChdir .message
User nobody
Group nobody
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode binary
AllowForeignAddress off
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 220
TransferRate STOR 250
TransferRate STOU 250
TransferRate APPE 250
SystemLog /var/log/secure
RequireValidShell off
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSProtocol SSLv23
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gadmin-proftpd/certs/cert.pem
TLSRSACertificateKeyFile /etc/gadmin-proftpd/certs/key.pem
TLSCACertificateFile /etc/gadmin-proftpd/certs/cacert.pem
TLSRenegotiate required off
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."
AllowUser ftpuser
DenyALL
User ftpuser
Group ftpusers
AnonRequirePassword on
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.msg
Allow from all
Deny from all
AllowOverwrite off
AllowAll
DenyAll
Az ftp konyvtarra megadtam minden jogot de akkor sem mukodik, ezt talaltam a log file-ba:
Apr 22 20:30:39 rob1ntema-laptop proftpd[10463] rob1ntema-laptop (::ffff:192.168.2.1[::ffff:192.168.2.1]): FTP session opened.
Apr 22 20:30:39 rob1ntema-laptop proftpd[10463] rob1ntema-laptop (::ffff:192.168.2.1[::ffff:192.168.2.1]): Preparing to chroot to directory '/home/rob1ntema/ftp'
Apr 22 20:30:39 rob1ntema-laptop proftpd[10463] rob1ntema-laptop (::ffff:192.168.2.1[::ffff:192.168.2.1]): ANON ftpuser: Login successful.
Apr 22 20:30:57 rob1ntema-laptop proftpd[10144] rob1ntema-laptop (::ffff:192.168.2.1[::ffff:192.168.2.1]): Passive data transfer failed, possibly due to network issues
Apr 22 20:30:57 rob1ntema-laptop proftpd[10144] rob1ntema-laptop (::ffff:192.168.2.1[::ffff:192.168.2.1]): Check your PassivePorts and MasqueradeAddress settings,
Apr 22 20:30:57 rob1ntema-laptop proftpd[10144] rob1ntema-laptop (::ffff:192.168.2.1[::ffff:192.168.2.1]): and any router, NAT, and firewall rules in the network path.
Apr 22 20:30:57 rob1ntema-laptop proftpd[10144] rob1ntema-laptop (::ffff:192.168.2.1[::ffff:192.168.2.1]): FTP no transfer timeout, disconnected
Apr 22 20:30:57 rob1ntema-laptop proftpd[10144] rob1ntema-laptop (::ffff:192.168.2.1[::ffff:192.168.2.1]): FTP session closed.
Mire vannak a PassivePorts-ok es mi lehet a baj?
Elore is koszonom.
- 771 megtekintés
Hozzászólások
Nézzed meg a tűzfaladat, hogy átengeded-e amit kell. ip_nat_ftp modul be van töltve ?
- A hozzászóláshoz be kell jelentkezni
A szerverből hiányzik a passzív ftp beállítása (pl: passivePorts 5000-6000) a kliens oldalon pedig passzív ftp-t kell beállítani. Ugyan ez érvényes a tűzfalra is. Be kell engedni az 5000-6000 tartományt is mint RELATED.
Parancssori kliensben a passzív mód bejelentkezés után kapcsolható be a passive paranccsal.
- A hozzászóláshoz be kell jelentkezni
A szerveren bevan állítva a configja szerint
( PassivePorts 49152 65534 )- ugyemlékszem ez a gyári default a configban.
- A hozzászóláshoz be kell jelentkezni
kis olvasnivaló : http://slacksite.com/other/ftp.html
én a tűzfal környékén (is) nézelődnék ...
- A hozzászóláshoz be kell jelentkezni