LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 11: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, 11: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, 09: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, 10: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, 06: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, 09: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, 12:12 PM   #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


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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration