We help IT Professionals succeed at work.
Get Started

Opening FTP Port 21 on Centos

Last Modified: 2013-11-16
Hi All,

I recently installed Centos 5.x and I am trying to connect to the server from a remote
maching via ftp.  And, from what I have read online, an entry to the iptables must be made
in order for this to be done.

But,  whenever I attempt to add the rule iptables -A INPUT -p tcp -dport21 -j accept to open
the ftp port the following error message is encountered:

iptables v1.3.5: host/network '--dport21' not found.

Has anyone seen this message before and how can this be resolved?
Also, I have disabled the firewall on the local machine, but I still could not establish a ftp connection to the server

Thanks in advance!

Watch Question
This problem has been solved!
Unlock 1 Answer and 25 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE