Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working on a Fedora Core release 6, and whenever I want to download a given file from a FTP site, the connection is refused:

  $ curl --ftp-pasv  "" 
  curl: (7) couldn't connect to host
  $ wget ""
             => `CHECKSUMS.gz'
  Connecting to||:21... failed: Connection refused.

Downloading from a HTTP server is OK.

is it a firewall problem ? How can I fix this ? (The sysadmin is in holidays... :-) )


share|improve this question

Works on my machine. If anything, I'd say it's firewall-related.

share|improve this answer

Chances are it's not a software firewall on the system, that'd be wacky. But you can check by doing (as root):

iptables -L OUTPUT

I suspect you'll see something like:

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Which means nothing on the system is blocking that connection. It is possible it's a firewall within your infrastructure, but you haven't told us if you have a firewall, what kind it is, if you have access, etc. All I can tell you is I am able to download that file via FTP from where I am. :)

share|improve this answer
Thanks, You're right. That's what I get. Also I'm root on this machine, I'm not at all a sysadmin and I have no idea about how to check/config the firewall. :-) – Pierre Oct 21 '09 at 14:43

Either that remote host is refusing your connection or, more likely, you've got firewall rules somewhere preventing connections to Internet hosts, TCP port 21, from your source host.

We'd need a lot more information to tell you where to start looking. There could be iptables rules on the host where you're sourcing that connection. There could be rules in a firewall elsewhere on your network.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.