[SOLVED] FTP Server behind NAT (IPtables) List FTP directories Problem
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
FTP Server behind NAT (IPtables) List FTP directories Problem
Hi,
the FTP server (10.205.13.97) is behind a firewall (NAT).
I can login to the ftp server without any problems from a remote machine. However, I can't list directories (ls) from remote machine. Even passive mode is timed-out.
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
500 Illegal PORT command
ftp: bind: Address already in use
ftp> passive
Passive mode on.
ftp> ls
227 Entering Passive Mode (50,17,79,90,251,162).
ftp: connect: Connection timed out
ftp>
I am using Proftpd as the FTP server (Ubuntu).
The IpTables for the firwall box (Ubuntu) was defined as the following (ports 20 & 21 is forwarded):
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.