Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-30-2004, 02:15 PM   #1
LQ Newbie
Registered: Apr 2004
Location: Traverse City MI
Distribution: RedHat 9
Posts: 3

Rep: Reputation: 0
Question 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.

Old 05-01-2004, 11:16 AM   #2
LQ Newbie
Registered: Apr 2004
Location: Traverse City MI
Distribution: RedHat 9
Posts: 3

Original Poster
Rep: Reputation: 0
Problem Fixed!!

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.
Old 05-01-2004, 11:58 AM   #3
LQ Newbie
Registered: Apr 2004
Location: Traverse City MI
Distribution: RedHat 9
Posts: 3

Original Poster
Rep: Reputation: 0
Wanted to give credit to the person where I found this solution (Tahnk You!):
Old 11-21-2008, 04:50 AM   #4
Registered: Mar 2007
Posts: 192

Rep: Reputation: 17
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.

ftp> open localhost 9021
Connected to localhost.
220 ProFTPD 1.3.1 Server (Debian) []
Name (localhost:username): music
331 Password required for music
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
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?

Old 06-30-2010, 05:26 PM   #5
LQ Newbie
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0

#load module nf_conntrack_ftp

modprobe nf_conntrack_ftp

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


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
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 04:40 AM
Ftp Passive mode won't "ls" on my FC3 box severian23 Linux - Networking 0 07-06-2005 12:29 PM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-06-2005 11:44 PM
227 Entering Passive Mode mxtinker Linux - Networking 1 02-25-2004 08:58 AM
ftp connection problem. It hangs on "entering passive mode" lynchmob09 Linux - Newbie 3 10-31-2003 11:09 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration