LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   proftpd hangs at "LIST -al" (https://www.linuxquestions.org/questions/linux-server-73/proftpd-hangs-at-list-al-535865/)

anwar 03-08-2007 10:36 PM

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 :)

lord-fu 03-09-2007 10:38 AM

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.

anwar 03-09-2007 08:26 PM

Yes! How do I configure my router properly for passive ftp connections?

anwar 03-28-2007 09:14 AM

bumping this thread up :)

MartinUK 03-28-2007 05:36 PM

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

anwar 03-30-2007 08:06 AM

Thanks MartinUK for the informative post! It's a bit clearer now thanks :)

Biggen 03-30-2007 11:12 AM

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...


All times are GMT -5. The time now is 05:07 PM.