For those that encounter problems when trying to get passive ftp working with iptables make sure that the following 2 modules are loaded.
ip_conntrack_ftp
ip_nat_ftp
This can be done as follows:
/sbin/modprobe ip_conntrack_ftp
/sbin/modprobe ip_nat_ftp
Wow!
It’s work!
Thank you very much!
I was fought with this about two days before saw your post 🙁
Good one Harry, this is an oldie but one that catches a lot of people out. The symptom that this is the problem is that active ftp (ports 20 and 21 only) works fine. With passive ftp enabled you can log in ok with username and password but cannot list/see any files.
regards
Martin