LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-30-2004, 03:15 PM   #1
VirusHater
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.

-virushater-
 
Old 05-01-2004, 12:16 PM   #2
VirusHater
LQ Newbie
 
Registered: Apr 2004
Location: Traverse City MI
Distribution: RedHat 9
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 05-01-2004, 12:58 PM   #3
VirusHater
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!):

http://www.castaglia.org/proftpd/doc...-HOWTO-NAT.txt
 
Old 11-21-2008, 05:50 AM   #4
lindylex
Member
 
Registered: Mar 2007
Posts: 177

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.

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
 
Old 06-30-2010, 06:26 PM   #5
niranjan_lk
LQ Newbie
 
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
Smile

#load module nf_conntrack_ftp

modprobe nf_conntrack_ftp

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


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


All times are GMT -5. The time now is 11:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration