LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-10-2002, 12:30 PM   #1
sitrus
Member
 
Registered: Nov 2001
Location: Finland
Distribution: Gentoo 1.4
Posts: 50

Rep: Reputation: 15
Proftpd 1.2.6 in Slackware 8.1


I'm setting up a proftpd 1.2.6 to a slack 8.1 server. This is my friends server.
The server runs well, but there is one problem. IF you connect to the ftpd from the same machine where the server is running there is no problems, but if you connect from another pc to it does this:
ncftp / > ls
Data connection timed out.
Falling back to PORT instead of PASV mode.

It works, but it takes some time. I haven't been able to figure out the problem why the PASSIVE mode fails when connecting from outside.
This is his firewall:
http://www.kevent.org/hype/files/misc/iptables.txt
this is his proftpd.conf
http://www.kevent.org/hype/files/misc/proftpdconf.txt
Ideas?
 
Old 11-10-2002, 03:09 PM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Quote:
It works, but it takes some time. I haven't been able to figure out the problem why the PASSIVE mode fails when connecting from outside.
This is his firewall:
http://www.kevent.org/hype/files/misc/iptables.txt
this is his proftpd.conf
http://www.kevent.org/hype/files/misc/proftpdconf.txt
First of all a security related question: You've running ProFTPd on Port 6789 so why do you open up Port 21 on the firewall?
Quote:
$IPT -A INPUT -i $INT -s 0/0 -d 0/0 -p tcp --dport 21 -j ACCEPT
You don't need that in that case


The problem itself is there cause of your firewall. PASV (PASSIVE) transfer required a port range transfer uses a port range and since your firewall will definately drop them that's why you get slow ...

Quote:
From http://www.proftpd.org/docs/directiv...l#PASSIVEPORTS
PassivePorts restricts the range of ports from which the server will select when sent the PASV command from a client. The server will randomly choose a number from within the specified range until an open port is found. Should no open ports be found within the given range, the server will default to a normal kernel-assigned port, and a message logged.

The port range selected must be in the non-privileged range (eg. greater than or equal to 1024); it is STRONGLY RECOMMENDED that the chosen range be large enough to handle many simultaneous passive connections (for example, 49152-65534, the IANA-registered ephemeral port range).
 
Old 11-10-2002, 03:18 PM   #3
sitrus
Member
 
Registered: Nov 2001
Location: Finland
Distribution: Gentoo 1.4
Posts: 50

Original Poster
Rep: Reputation: 15
Like said this is my friends server and he runs OpenSSH in port 21 because he can't connect to port 22 from his school. So the port 21 is open for sshd.

EDIT: thank you very much - You solved the problem. I opened 20 ports and added PassivePorts range to match those ports.

Last edited by sitrus; 11-10-2002 at 03:30 PM.
 
Old 11-10-2002, 04:49 PM   #4
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Quote:
Like said this is my friends server and he runs OpenSSH in port 21 because he can't connect to port 22 from his school. So the port 21 is open for sshd.
Sorry I didn't really read that part just thought you missed something

As always refer to the manual when you're faced with problems ... usually the original website and/or forum is the best place to start off
 
  


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
Proftpd - Slackware 10 - Login not working TBomb Linux - Software 22 09-13-2004 05:28 PM
Slackware 10 proftpd problem virus2547 Linux - Networking 5 08-19-2004 11:01 PM
proftpd on Slackware linux kernelvn Linux - Networking 1 08-19-2004 07:16 AM
ProftpD doesn't work with Slackware!? mrgrieves Slackware 17 05-02-2004 02:24 PM
ProFTPd Configuration Help on Slackware deesto Slackware 2 01-06-2003 04:58 PM


All times are GMT -5. The time now is 09:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration