LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-31-2004, 10:41 AM   #1
eggoz
Member
 
Registered: Feb 2003
Posts: 159

Rep: Reputation: 30
Ftp CInnection Timed Out


I am running vsftp on Redhat 9. I can get as far as connecting to the server. When I go to connect to the server it connects, but when I do a directory listing, the connection times out:
227 Entering Passive Mode (192,168,1,20,94,90)
ftp: connect: Connection timed out

Inside the pub dir there is 1 test file and a link to /mnt/mnt_share. Both have 777 read/write options (For testing purposes of course). Any idea where I might be going wrong?
 
Old 01-31-2004, 01:11 PM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
the "entering Passive mode" seems to say that your ftp client is forced to switch to this version of the ftp protocol.
Ok, I can't tell you wich is the "active" or "passive" ftp protovol cuz there seems to be no straight line about it (and I'm not enought geek to read ftp RFC)

However, one is direct connection trought port 21 for every operation like :
Client(random > #30 000 port)------>Ftp(Port 21)
and it stay like this during all the session.

The "other one" is a first connection trought port 21 and then client and server negociate a port where they will continue connection, so something like :
Client(Radom > #30 000 port)------->Ftp(Random > #30 000 port)

Now the problem is that some firewall can't handle this second version, cuz they usually block they don't know. So make sure your firewall is ok (both client and server firewall) or use the "other" mode (active or passive, depending your client, no one has the same name but they usually all support both mode).

On Linux, you could use some special Nating module to make sure the connection will be keep alive even if it changes of port.
 
Old 01-31-2004, 02:44 PM   #3
eggoz
Member
 
Registered: Feb 2003
Posts: 159

Original Poster
Rep: Reputation: 30
I guess this will require some more looking into. The only thing that I have found, not sure if this is what you were talking about, is something in the config file of the ftp server.
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES

Then I went a head and opened up port 20 to allow data to come in and out, but still no such luck. What is this Nating module that you speak of?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Samba timed out Lechio Linux - Networking 2 11-17-2008 04:23 PM
Timed actions LongName Programming 2 09-02-2004 03:42 AM
RPC: Timed Out adelaideyip Linux - Networking 0 08-24-2004 04:07 PM
no host, timed out awd86 Linux - Networking 3 11-05-2003 06:42 PM
Connection timed out Valluvan Programming 6 12-22-2002 02:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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