Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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  "ftp://ftp.ensembl.org/pub/current_mysql/vega_mart_56/CHECKSUMS.gz" 
  curl: (7) couldn't connect to host
  $ wget "ftp://ftp.ensembl.org/pub/current_mysql/vega_mart_56/CHECKSUMS.gz"
  --14:25:46--  ftp://ftp.ensembl.org/pub/current_mysql/vega_mart_56/CHECKSUMS.gz
             => `CHECKSUMS.gz'
  Resolving ftp.ensembl.org... 193.62.203.113
  Connecting to ftp.ensembl.org|193.62.203.113|: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... :-) )

Thanks

share|improve this question
add comment

3 Answers

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

share|improve this answer
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.