Problem with opening ports for ftp in iptables
Posted on 2014-07-31
Hi all, If I have INPUT chain set to drop by default, and ports 20 and 21 are open, ftp doesn't work right. I've also noticed the SSH password prompt takes a long time to show up. When I accept all input again, ftp works, and the login pops up right away. The problem with ftp is that it connects, but doesn't show any data (no directory listing once it lists). I'm using a default installation and settings (except anonymous login is off) for vsftp. The only input rules I have are 20, 21, and my ssh port open and I set an accept all on the lo interface. My output is set to accept.
Does anyone know what I'm doing wrong or why this isn't working?