ftp login hangs
I have a bad problem with ftp. When I try to login to my webserver out on the net from my linux box on my lan, it hangs. I get:
Code:
[adam@gondor adam]$ ftp 212.227.119.104 Strangely, it works from my windows box on the same LAN. My LAN is configured so: gateway box eth0 IP: 192.168.1.254 linux box IP: 192.168.1.253 win box IP: 192.168.1.252 The linux box and the win box point to the gateway IP as a gateway. The gateway has iptables and a modem on eth1 with DHCP setup. Any clues where or what or why? Thanks!!! |
Server ftp
One question.
The server ftp requires a password for your user. Notes: the ftp command run in tcp 20 and the data run in tcp 21, may be possible that you need run a module for ftp. |
Yes it definitely requires a password. The windows box login doesnt hang and asks for the password straight away. What do you mean about tcp 21?
|
I'm having a very similiar problem, only my FT hangs after I enter the password. It only does this when I enter the correct password (if I enter the incorrect one the ftp server responds immediately). It happens no matter what FTP client I use (I've tried five) on Linux, but on Windows (from the same machine, dual-boot) I can connect just fine. Anyone have any suggestions, this is really frustrating.
P.S. I tried disabling IPv6, to no avail. |
Anybody?
This is looking grimmer and grimmer. |
Are you running any firewalling stuff? Sounds like it's going into passive mode then timing out. You log in using port 21 and I think it is switching to port 22 after you authenticate.
Oh yeah, you might check /etc/hosts.allow and /etc/hosts.deny to make sure there isn't anything blocking local addresses. |
OK, my hosts.deny and hosts.allow are both empty.
I am running iptables, and below is part of my script. However I have run this for a year without changing it - or at least I think I have. But now I'm looking at it again, I'm not so sure that I'm allowing the right stuff back in on the tcp2 chain. I've removed parts of the script that aren't directly related to the ftp. Code:
iptables -P INPUT DROP |
All times are GMT -5. The time now is 10:12 PM. |