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.

ip_conntrack_ftp
ip_nat_ftp

This can be done as follows:

/sbin/modprobe ip_conntrack_ftp
/sbin/modprobe ip_nat_ftp

Add to delicious Digg This Add to My Yahoo! Add to Google Add to StumbleUpon
| | Comments (2)

2 Comments

Wow!
It's work!
Thank you very much!
I was fought with this about two days before saw your post :(

Martin Fox said:

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

Leave a comment

About this Entry

This page contains a single entry by Harry published on May 6, 2005 12:26 AM.

Language Envy was the previous entry in this blog.

Jet Lag is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.01