0

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?

3
Contributors
3
Replies
5
Views
8 Years
Discussion Span
Last Post by landonmkelsey
0

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 ;)

0

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.

0

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]#

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.