RegisterRegister    Log inLog in    SearchSearch   

Post new topic   Reply to topic
 
View previous topic :: View next topic  
Author Message
theWeird



PostPosted: Mon Feb 08, 2010 9:10 pm    Post subject: Solved: Timeout on FTP Directory Listing (Linux) Reply with quote

It seems that I am not the only one here that had problems using GCs FTP Service on Linux.
This is the solution for you if you have this problem:
Your Login on the FTP-Service on port 2121 is accepted, Username and Password are working
On the step 'Directory listing' your FTP client runs into a timeout, you can't recieve a list of the directory's content.

Why does this appear?
The FTP Server of the GC Client only accepts passive FTP connections.
This requires to open any port above 1024 for the data connection. This port is choosen randomly.
On login your FTP-Client uses only the control connection on port 2121, no problem. But the directory listing is the first operation that requires a port for data.

Typical linux firewalls are looking for new connections on the typical FTP port 21. If there is a control connection established, the FTP server is allowed to open a data connection on a random port.
That's why normal FTP server will work on your server but GCs Server will not.

The Solution:
Kernel mod nf_conntrack_ftp

This kernel mod is a kind of plugin for the network layer and firewall of your server.
You can tell him which ports are used for FTP-Services.
After doing that this mod will look for connections on this ports to ensure that new passive connections for the FTP-Services can be opened.

To load the Mod in Debian use this command as root:
modprobe nf_conntrack_ftp ports=21,2121
(command may differ in other distributions)
21,2121 is the list of ports where your server has FTP-Services running on.

After rebooting the server you have to reload the mod.
To avoid this, open the file /etc/modules and add the following line:
nf_conntrack_ftp ports=21,2121
Now the module should be loaded each time you start your server.
Back to top
View user's profile Send private message
adbot



PostPosted: Thu Mar 31, 2011 3:57 am 

Andrew
Mammoth


PostPosted: Wed Feb 17, 2010 4:24 pm    Post subject: Reply with quote

Thank's for this tutorial.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum powered by phpBB © 2001, 2005 phpBB Group
GameCreate Service Terms | Privacy Policy | © Copyright Mammoth Media 2001-2007
GameCreate™ is a trademark of Mammoth Media Pty Ltd. GameCreate® is a registered trademark in Australia.