Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

By Daniel Golub
I installed ProFTPD, and sometimes it stuck on the MLSD command, but sometimes not…
I enabled the Passive Ports range on the firewall (basic IP tables blocking)
This is my proftpd.conf file:
#MasqueradeAddress “146.185.135.196”
#PassivePorts 50000 50500 #PassivePorts 30000 35000 #PassivePorts 60000 65535
ServerName “localhost” PassivePorts 49152 65534 #MasqueradeAddress 146.185.135.196 ServerIdent on “FTP Server ready.” ServerAdmin root@localhost DefaultServer on
#PassivePorts 49152 65534
VRootEngine on DefaultRoot ~ !adm VRootAlias /etc/security/pam_env.conf etc/security/pam_env.conf
AuthPAMConfig proftpd AuthOrder mod_auth_pam.c* mod_auth_unix.c
#PersistentPasswd off
UseReverseDNS off
User nobody Group nobody
MaxInstances 20
UseSendfile off
LogFormat default “%h %l %u %t "%r" %s %b” LogFormat auth “%v [%P] %h %t "%r" %s”
<IfDefine TLS> TLSEngine on TLSRequired on TLSRSACertificateFile /etc/pki/tls/certs/proftpd.pem TLSRSACertificateKeyFile /etc/pki/tls/certs/proftpd.pem TLSCipherSuite ALL:!ADH:!DES TLSOptions NoCertRequest TLSVerifyClient off #TLSRenegotiate ctrl 3600 data 512000 required off timeout 300 TLSLog /var/log/proftpd/tls.log <IfModule mod_tls_shmcache.c> TLSSessionCache shm:/file=/var/run/proftpd/sesscache </IfModule> </IfDefine>
<IfDefine DYNAMIC_BAN_LISTS> LoadModule mod_ban.c BanEngine on BanLog /var/log/proftpd/ban.log BanTable /var/run/proftpd/ban.tab
BanOnEvent MaxLoginAttempts 2/00:10:00 01:00:00
BanControlsACLs all allow user ftpadm </IfDefine>
<Global>
Umask 022
AllowOverwrite yes <Limit ALL SITE_CHMOD> AllowAll </Limit>
</Global>
<IfDefine ANONYMOUS_FTP> <Anonymous ~ftp> User ftp Group ftp AccessGrantMsg “Anonymous login ok, restrictions apply.”
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 10 "Sorry, max %m users -- try again later"
# Put the user into /pub right after login
#DefaultChdir /pub
# We want 'welcome.msg' displayed at login, '.message' displayed in
# each newly chdired directory and tell users to read README* files.
DisplayLogin /welcome.msg
DisplayChdir .message
DisplayReadme README*
# Cosmetic option to make all files appear to be owned by user "ftp"
DirFakeUser on ftp
DirFakeGroup on ftp
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE SITE_CHMOD>
DenyAll
</Limit>
# An upload directory that allows storing files but not retrieving
# or creating directories.
<Directory uploads/*>
AllowOverwrite no
<Limit READ>
DenyAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
# Don't write anonymous accesses to the system wtmp file (good idea!)
WtmpLog off
# Logging for the anonymous transfers
ExtendedLog /var/log/proftpd/access.log WRITE,READ default
ExtendedLog /var/log/proftpd/auth.log AUTH auth
ExtendedLog /var/log/proftpd/ProFTPd.read.log READ ExtendedLog /var/log/proftpd/ProFTPd.write.log WRITE </Anonymous> </IfDefine>
The FileZilla log: Status: Connection established, waiting for welcome message… Response: 220 FTP Server ready. Command: USER daniel Response: 331 Password required for daniel Command: PASS **************** Response: 230 User daniel logged in Command: OPTS UTF8 ON Response: 200 UTF8 set to on Status: Connected Status: Retrieving directory listing… Command: CWD /Works/Turns Response: 250 CWD command successful Command: TYPE I Response: 200 Type set to I Command: PASV Response: 227 Entering Passive Mode (146,185,135,196,231,61). Command: MLSD Error: The data connection could not be established: ETIMEDOUT - Connection attempt timed out
I tried to install vsftp instead, still the same problem…
And I saw in the internet that this is a very common problem…
Thanks in advance.