Linux passive ftp not working problem and solution
Q. My passive ftp is not working, what can do to fix this problem?
A. Make sure firewall is not blocking your FTP session. If ports are open make sure IPtables is allowing passive ftp. To solve this problem add ip_conntrack_ftp module. Type the following command to load this module:
# modprobe ip_conntrack_ftp
Add this module to your IPtables firewall script:
# firewall
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
modprobe ip_conntrack
modprobe ip_conntrack_ftp
# Setting default filter policy
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
# Rest of rules
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Linux / UNIX FAQ:
- Linux disable or remove the iptables firewall
- How do I Load / Start RHEL / CentOS / Fedora Linux Iptables Firewall on Computer Boot?
- Iptables open ftp port 21
- How do I save iptables rules or settings?
- Redhat / CentOS / Fedora Linux Open Port
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Please do not use the comment form to ask for help / question. Ask your question on the excellent Linux tech support forum. Thank you very much for stopping by our site!
~ Last updated on: January 7, 2007



Recent Comments
Today ~ 2 Comments
Today ~ 1 Comment
Today ~ 2 Comments
Today ~ 44 Comments
Today ~ 6 Comments