944,123 Members | Top Members by Rank

Oct 29th, 2009
0

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

Expand Post »
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?
Similar Threads
Reputation Points: 18
Solved Threads: 2
Posting Whiz
Venom Rush is offline Offline
325 posts
since Oct 2007
Oct 29th, 2009
0
Re: Cannot connect to any FTP server no matter what FTP program I use.
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:
text Syntax (Toggle Plain Text)
  1. root@svn:~/devex# telnet ftp.kernel.org 21
  2. Trying 149.20.20.133...
  3. Connected to pub.us.kernel.org.
  4. Escape character is '^]'.
  5. 220 Welcome to ftp.kernel.org.

But yours doesn't work so it will probably look like:
text Syntax (Toggle Plain Text)
  1. root@svn:~/devex# telnet ftp.kernel.org 21
  2. Trying 149.20.20.133...
  3. 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
Featured Poster
Reputation Points: 1749
Solved Threads: 735
Senior Poster
sknake is offline Offline
3,948 posts
since Feb 2009
Oct 30th, 2009
0
Re: Cannot connect to any FTP server no matter what FTP program I use.
Click to Expand / Collapse  Quote originally posted by sknake ...
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:
text Syntax (Toggle Plain Text)
  1. root@svn:~/devex# telnet ftp.kernel.org 21
  2. Trying 149.20.20.133...
  3. Connected to pub.us.kernel.org.
  4. Escape character is '^]'.
  5. 220 Welcome to ftp.kernel.org.

But yours doesn't work so it will probably look like:
text Syntax (Toggle Plain Text)
  1. root@svn:~/devex# telnet ftp.kernel.org 21
  2. Trying 149.20.20.133...
  3. 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.
Reputation Points: 18
Solved Threads: 2
Posting Whiz
Venom Rush is offline Offline
325 posts
since Oct 2007
Jan 10th, 2010
0
Re: Cannot connect to any FTP server no matter what FTP program I use.
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]#
Reputation Points: 9
Solved Threads: 0
Newbie Poster
landonmkelsey is offline Offline
21 posts
since Aug 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Servers and Apache Forum Timeline: Unlimited hosting space is it true?
Next Thread in Linux Servers and Apache Forum Timeline: Configureing Apache with an exsiting domain.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC