LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   FTP hanging after connecting (https://www.linuxquestions.org/questions/linux-software-2/ftp-hanging-after-connecting-584563/)

lawadm1 09-13-2007 10:18 PM

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.

thedonkdonk 09-14-2007 12:48 AM

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

lawadm1 09-14-2007 08:46 AM

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?

j-ray 09-14-2007 09:48 AM

port 20 maybe. try to set $FTP_PASSIVE variable in .bashrc

export FTP_PASSIVE=1


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