LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ProFTPD hangs on "227 Entering Passive Mode" (https://www.linuxquestions.org/questions/linux-newbie-8/proftpd-hangs-on-227-entering-passive-mode-176413/)

VirusHater 04-30-2004 02:15 PM

ProFTPD hangs on "227 Entering Passive Mode"
 
Hi all,
Thanks in advance for your help. I am new to Linux and have been researching this issue all morning. I recently installed RedHat 9 to act as an FTP server for our magazine. I have proFTPD working, yet I can only connect in the following manner:

*If I use Internet Explorer connection I can connect fine and transfer files.
*If I use windows command prompt I can connect and transfer files.

**If I use WS-FTP Lite, I can connect but program halts and stops at LIST command. Will work if I un-check passive transfers under the advanced tab.
**If I try from withing Linux, I get "227 Entering Passive Mode" - and then times out.

Seems like passive mode is a problem for my server, but I have searched all over the internet and have not found a way to change that setting in ProFTPD. It appears that my server is working, which I am very happy about, but I have a MAC user that needs to connect using fetch and the user is not computer savvy and having her shutoff passive mode in fetch will be more trouble than I have time for. Thank you again for any help that you can provide.

-virushater-

VirusHater 05-01-2004 11:16 AM

Problem Fixed!!
 
Hello,
After many hours of research I have fixed my own problem!!

In case anyone finds this post and had the same questions I had, here is how I solved this issue:

in proftpd.conf,

first I added:
#This displays the internet address on client instead of
#the local address that you are forwarding ftp request to
MasqueradeAddress "xx.xx.xx.xx" (external internet address)

then I added:
PassivePorts 60000 65535

I then adjusted my NAT router to forward all 60000 - 65535 ranges to my internal FTP server address. Works fast and flawless.

Thanks everyone who looked at my post.

VirusHater 05-01-2004 11:58 AM

Wanted to give credit to the person where I found this solution (Tahnk You!):

http://www.castaglia.org/proftpd/doc...-HOWTO-NAT.txt

lindylex 11-21-2008 04:50 AM

VirusHater, Iam tryin to do the same but with QEMU and Debian Etch as Guest and Debian Etch as host. I go the same rror but i am not sure how to resolve this. I tried what you did but I am not sure what to do for the MasqueradeAddress directive.

Code:

ftp> open localhost 9021
Connected to localhost.
220 ProFTPD 1.3.1 Server (Debian) [127.0.0.1]
Name (localhost:username): music
331 Password required for music
Password:
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (10,0,2,2,153,91)
ftp: connect: Connection timed out
ftp>

So I decided to use this directive for proftpd within this file /etc/proftpd/proftpd.conf
PassivePorts 53630 53631

If that is correct then I should see something like this.

Entering Passive Mode (10,0,2,2,209,126)
Entering Passive Mode (10,0,2,2,209,127)

Instead I still get random ports assign for the passive port range. How can I limit the server to use ports 53630 - 53631 as the passive ports?

Thanks

niranjan_lk 06-30-2010 05:26 PM

#load module nf_conntrack_ftp

modprobe nf_conntrack_ftp

# or vim /etc/modules
# add line to end of file
# nf_conntrack_ftp


All times are GMT -5. The time now is 04:42 AM.