LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-28-2012, 06:53 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
can't seem to connect using proftp


I know I've solved this one a million times, but I can't seem to find the right answer on any weblink. I guess I'm going to have to write the answer down this time.

I've installed a new linux slackware computer. I want to ftp to this computer using proftpd. I've enabled proftpd in inetd.conf. /etc/proftpd.conf specifies:

ServerType inetd
DefaultServer on
Port 21
Umask 022
MaxInstances 30
User bison
Group bison
SystemLog /var/log/proftpd.log
TransferLog /var/log/xferlog

<Directory /*>
AllowOverwrite on
</Directory>

I don't want anonymous ftp and the ftp user is listed in /etc/ftpusers. Does the ServerName matter in proftpd.conf? I've just got it set to an arbitrary string.

I've rebooted.
I can connect to port 21 remotely via telnet but if I try using ftp, I never get a login promt. It waits a while, then I get

421 Service not available, remote server has closed connection

I see nothing in any log files.

I can ftp locally.

What am I doing wrong ... again?
 
Old 06-29-2012, 02:12 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Quote:
I can connect to port 21 remotely via telnet but if I try using ftp, I never get a login promt. It waits a while, then I get

421 Service not available, remote server has closed connection
Please note that it's the inetd daemon that listens on port 21, so actually this is who responds to your telnet. In a normal ftp connection, it should pass control to the ftpd server.
Could you post the inetd.conf line where you call proftpd?
Also you can comment out that line, restart inetd, configure proftpd as standalone, start it and see if you can connect

Regards
 
Old 07-05-2012, 04:28 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Fixed it!

Duh! I figured it out. It was a router issue. I'll have to say IMOH the Apple airport extreme is not all that easy to set up. The port forwarding dialog showed that I had ssh, http and ftp all forwarded. ssh and httpd worked fine, so I didn't think it could be a router issue. The problem is, the port forward dialog shows the forwarded ports (actually, descriptions, not the actual port numbers 22, 80, 21, respectively), but it does NOT show to which IP these are forwarded. You have to click on an Edit button which takes you to a subordinate dialog. This thought finally occured to me and I drove to the office in the middle of the night to check it out. Sure enough, the ftp port was not forwarded to the linux host, but the others were! I forwarded ftp to the correct host and voila!

Problem solved.

Thanks for your patience on this one.
 
  


Reply

Tags
proftpd



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
Proftp can't connect to ftp client. andy106 Linux - Server 2 02-06-2011 03:20 PM
Proftp does not connect anacharya Linux - Networking 1 04-26-2005 12:17 AM
proftp Joey.Dale Linux - Networking 14 12-15-2003 03:20 PM
ahhh! ProFTP would'nt let me connect gaelen Linux - Newbie 4 11-15-2003 09:54 PM
proftp Orion Pax Mandriva 1 11-01-2003 12:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:52 PM.

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
Open Source Consulting | Domain Registration