passive ftp and iptables

For those that encounter problems when trying to get passive ftp working with iptables make sure that the following 2 modules are loaded.
This can be done as follows:
/sbin/modprobe ip_conntrack_ftp
/sbin/modprobe ip_nat_ftp

2 Replies to “passive ftp and iptables”

  1. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *