LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-08-2007, 10:36 PM   #1
anwar
Member
 
Registered: Aug 2005
Location: Philippines
Distribution: Slackware 11.0
Posts: 44

Rep: Reputation: 15
proftpd hangs at "LIST -al"


Hi! Whenever I use my dyndns hostname to access proftpd it hangs at:

Code:
LIST -aL
But when I try the network address to access it, it works fine.

How do I fix this?

P.S.

I'm using a linksys router btw
 
Old 03-09-2007, 10:38 AM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
So when you go bu network address, do you mean internal private ip? That behaviour you are describing seems to be a firewall not configured to properly handle passive ftp connections.
 
Old 03-09-2007, 08:26 PM   #3
anwar
Member
 
Registered: Aug 2005
Location: Philippines
Distribution: Slackware 11.0
Posts: 44

Original Poster
Rep: Reputation: 15
Yes! How do I configure my router properly for passive ftp connections?
 
Old 03-28-2007, 09:14 AM   #4
anwar
Member
 
Registered: Aug 2005
Location: Philippines
Distribution: Slackware 11.0
Posts: 44

Original Poster
Rep: Reputation: 15
bumping this thread up
 
Old 03-28-2007, 05:36 PM   #5
MartinUK
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Rep: Reputation: 0
Anwar,

I think lord-fu was pointing to your firewall/router being the cause of the problem as you do not experience this on internal network (not going via firewall) but do from outside the network (running via firewall).

There is a detailed description about Active and Passive FTP through Linksys firewalls here:

http://www.allaboutjake.com/network/linksys/ftp/

The FTP protocol uses two channels, a control channel and a data channel. Which port the data channel runs on depends on whether you are using Active or Passive FTP. From what you have said it appears the control channel is working (you get login) but not the data channel (ls command fails). This could be due to:

1. NAT on firewall causing data channel to fail.
2. Data port being blocked or not forwarded on firewall.
3. FTP client set to use Active rather than passive transfers.

how you resolve this depends on what your firewall, FTP server and connecting clients support. The link above explains theory, from there you should be able to decide what is best in your situation.

You may also want to look on the Linksys site to see if there is info on there how to setup FTP access on their routers/firewallls.

Thanks
Martin
 
Old 03-30-2007, 08:06 AM   #6
anwar
Member
 
Registered: Aug 2005
Location: Philippines
Distribution: Slackware 11.0
Posts: 44

Original Poster
Rep: Reputation: 15
Thanks MartinUK for the informative post! It's a bit clearer now thanks
 
Old 03-30-2007, 11:12 AM   #7
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Rep: Reputation: 31
Quote:
Originally Posted by anwar
Thanks MartinUK for the informative post! It's a bit clearer now thanks
FYI, linux ftp clients seem to default to passive mode while windows ftp clients default to active mode.

I opened up ports 50000 - 50100 on my firewall for passive connections. Not sure how many people this will support at one time but it seems to get the job done...
 
  


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
ProFTPD hangs on "227 Entering Passive Mode" VirusHater Linux - Newbie 4 06-30-2010 05:26 PM
proftpd "dir" command hangs annamonster Linux - Networking 2 08-28-2006 02:29 PM
[B]"wireless network" config from "system" hangs[/B] dauphinfay Ubuntu 0 03-04-2006 03:16 PM
grub list "MZ" for my windows boot "Help on Change" davimint Linux - Newbie 2 01-26-2006 06:22 AM
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 04:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:09 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