954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Cannot connect to any FTP server no matter what FTP program I use.

Hi guys/gals

I'm having the most frustrating time trying to connect to FTP servers in order to upload files. I try to connect to a number of different FTP servers and cannot connect to any of them.

I've tried connecting to the same servers using the same FTP programs on a second machine and it has no issues at all.

I've done ping and tracert tests on the machine with the issues and the internet connection is definitely NOT the problem. I've looked at network settings but with my little knowledge about networks I've not been able to see if there are any issues. Both PCs have the same network setup so I doubt it's a network issue.

I'm at a loss, anyone come across a similar issue?

Venom Rush
Posting Whiz
352 posts since Oct 2007
Reputation Points: 31
Solved Threads: 2
 

You may have outbound FTP filtered. type iptables-save as root on the command prompt and paste the data back here.

Also are the two machines you tested on the same LAN? IE
10.1.1.1 = router
10.1.1.2 = broken machine
10.1.1.3 = working machine

And you have confirmed they are using the same default gateway? Paste the output of route -n in linux to get the gateway. In windows type route print .

Also on the nonworking linux machine paste the output of: telnet ftp.kernel.org 21

It should look like this:

root@svn:~/devex# telnet ftp.kernel.org 21
Trying 149.20.20.133...
Connected to pub.us.kernel.org.
Escape character is '^]'.
220 Welcome to ftp.kernel.org.


But yours doesn't work so it will probably look like:

root@svn:~/devex# telnet ftp.kernel.org 21
Trying 149.20.20.133...
telnet: Unable to connect to remote host: Connection refused


Or after 30 seconds it may never finishing and just sit at the "Connecting...."

The type of error you see will help determine what the problem may be ;)

sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735
 

You may have outbound FTP filtered. type iptables-save as root on the command prompt and paste the data back here.

Also are the two machines you tested on the same LAN? IE 10.1.1.1 = router 10.1.1.2 = broken machine 10.1.1.3 = working machine

And you have confirmed they are using the same default gateway? Paste the output of route -n in linux to get the gateway. In windows type route print .

Also on the nonworking linux machine paste the output of: telnet ftp.kernel.org 21

It should look like this:

root@svn:~/devex# telnet ftp.kernel.org 21
Trying 149.20.20.133...
Connected to pub.us.kernel.org.
Escape character is '^]'.
220 Welcome to ftp.kernel.org.

But yours doesn't work so it will probably look like:

root@svn:~/devex# telnet ftp.kernel.org 21
Trying 149.20.20.133...
telnet: Unable to connect to remote host: Connection refused

Or after 30 seconds it may never finishing and just sit at the "Connecting...."

The type of error you see will help determine what the problem may be ;)


Thanks for your reply sknake. I found what my issue was. My firewall went haywire and wasn't letting any connections on port 21 through.

Venom Rush
Posting Whiz
352 posts since Oct 2007
Reputation Points: 31
Solved Threads: 2
 

problem solved?? then ignore this!

(1) disable selinux
(2) configure the conf file and log into the machine you are on
[root@localhost etc]# cd /etc/vsftpd
[root@localhost vsftpd]# ls -alF
total 36
drwxr-xr-x 2 root root 4096 2009-11-27 15:29 ./
drwxr-xr-x 146 root root 12288 2010-01-10 11:29 ../
-rw------- 1 root root 125 2009-11-23 07:44 ftpusers
-rw------- 1 root root 361 2009-11-23 07:44 user_list
-rw------- 1 root root 4495 2009-11-23 07:44 vsftpd.conf
-rwxr--r-- 1 root root 338 2009-11-23 07:44 vsftpd_conf_migrate.sh*
[root@localhost vsftpd]#

landonmkelsey
Light Poster
26 posts since Aug 2009
Reputation Points: 9
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: