I can login to FTP but can't LIST

cubeman

Verified User
Joined
Sep 1, 2014
Messages
15
Hi,
I am able to login to FTP using FTP client but when the client try to list directories I get timeout !!

I am doing NAT in the firewall by my ISP
My ISP informed me that all ports are open for the nated IP public IP but not the internal IP

in /etc/proftpd.conf

Code:
Port                    21
PassivePorts            35000 35999

//last line shows
/etc/proftpd.vhosts.conf

I opened /etc/proftpd.vhosts.conf and found it empty

So I added manually
Code:
<VirtualHost **.**.**.**>
        ServerName              "ProFTPd"
        ExtendedLog             /var/log/proftpd/**.**.**.**.bytes WRITE,READ userlog
        AuthUserFile            /usr/local/directadmin/data/users/*username*/ftp.passwd
</VirtualHost>

I restarted proFTPd but still I can't list with client FTP on port 21

1) Any idea why list in not working ?
2) Why /etc/proftpd.vhosts.conf was empty ?
3) When using global mode to access FTP, it connects to the internal IP with passive ports , Why is that ?
 
If yopu're going to use passive ftp then you're going to need to either use a firewall that knows how to open related ftp ports, or you need to manually open ports 35000 through 35999 through your firewall. Or start proftpd to open fewer ports; you'll probably never need 999 ports for passive ftp at the same time.

I use CSF+LFD (Linux only) which knows how to open passive ftp ports as required.

Jeff
 
Can I just use port 21 all the time automatically and how to do that ? to make LIST commad work
 
Last edited:
Yes, but you can't set anything at the server level. To do that you need to turn off passive FTP at the client level.

Jeff
 
Yes, I turned off passive FTP at the client level but still it gets stop at LIST command !!
 
Back
Top