LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2007, 10:18 PM   #1
lawadm1
Member
 
Registered: Jul 2003
Location: Illinois
Distribution: Fedora 11, Ubuntu 9.04
Posts: 80

Rep: Reputation: 15
FTP hanging after connecting


FC6

Here's the log from FTP commander when attempting to access my ftp server over the internet. Looks like it logs in, but then hangs on LIST before eventually getting the Failed to Establish connection message. I've even stopped iptables, but no dice. I also disbaled Selinux because I was getting 500: connection refused errors.

Also, when I look in /var/log, there are know logfiles that are even updated.

Any ideas?

> USER jwhite
< 331 Please specify the password.
> PASS (hidden)
< 230 Login successful.
> SYST
< 215 UNIX Type: L8
> PWD
< 257 "/home/jwhite"
> TYPE A
< 200 Switching to ASCII mode.
> PASV
< 227 Entering Passive Mode (192,168,0,138,7,236)
> LIST
< 425 Failed to establish connection.
 
Old 09-14-2007, 12:48 AM   #2
thedonkdonk
Member
 
Registered: Oct 2005
Location: San Jose, CA
Distribution: Fedora, RHEL, CentOS
Posts: 136

Rep: Reputation: 16
This is usually a problem with a firewall. Check out http://www.linuxhomenetworking.com/w...P_Server_Setup and read the part about passive FTP.

Thanks,
James Glenn
thedonkdonk.net
 
Old 09-14-2007, 08:46 AM   #3
lawadm1
Member
 
Registered: Jul 2003
Location: Illinois
Distribution: Fedora 11, Ubuntu 9.04
Posts: 80

Original Poster
Rep: Reputation: 15
Could it be an issue with the router? I had a Linksys WRT54G before, and it only required me to port forward Port 21, and I had no issues. Now I have D-Link DI-634M, and port forward to port 21 doesn't seem to work completely. Do I need to add more port ranges to forward in the router?
 
Old 09-14-2007, 09:48 AM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
port 20 maybe. try to set $FTP_PASSIVE variable in .bashrc

export FTP_PASSIVE=1
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp hanging up with WG311 and Mandrake 10.0 lorenzaccio Linux - Wireless Networking 0 12-21-2004 08:58 AM
java app hanging when connecting to mysql blank_slate Programming 3 11-15-2004 09:52 AM
Connecting to anonymous FTP - why? clau_bolson Linux - Security 3 01-09-2004 08:48 AM
ftp connections hanging forever in CLOSE, CLOSE_WAIT state mxyzplk Linux - Software 0 11-26-2003 09:54 AM
connecting music to FTP nautilus_1987 Linux - Networking 4 06-27-2003 03:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration