LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-20-2004, 01:55 AM   #1
TheUnknown
LQ Newbie
 
Registered: Aug 2003
Location: N.Y.
Posts: 23

Rep: Reputation: 15
Proftpd disconnects


Okay, I have scoured here and several other forums so I will ask here...

Running Proftpd on MDK 10 Official, I used their default proftp.conf file and set up a user for FTP transfers.

Now what I get is this:

Trying xxx-xxx-xxx-xx.xx-x.x-xxxx.xxx.xx.xxxxx.xxx.xx:28
Connected to xxxxxx.xxx.xxx:28
220 xxx-xxx-xxx-xx.xx-x.x-xxxx.xxx.xx.xxxxx.xxx.xx FTP server ready
USER wacko
331 Password required for wacko.
PASS xxxx
230 -- Guest access granted for wacko --
SYST
215 UNIX Type: L8
TYPE I
200 Type set to I
PWD
257 "/" is current directory.
PASV
227 Entering Passive Mode (xxx,xxx,xxx,xx,xx,xxx).
Cannot create a data connection: Connection refused
Disconnecting from site xxxxxxx.xxxxx.xxx

I know it's something simple, but it's aluding me right now... Any suggestions?
 
Old 10-20-2004, 02:18 AM   #2
TheUnknown
LQ Newbie
 
Registered: Aug 2003
Location: N.Y.
Posts: 23

Original Poster
Rep: Reputation: 15
This is what I have found out so far:

2.2. When gFTP tries to get the remote directory listing, I receive the error: Cannot create a data connection: Connection refused Go under FTP->Options->FTP and turn off passive file transfers. Instead of sending the PASV command to open up the data connection on the server side, the data connection will be opened up on the client side, and the PORT command will be sent to the server instead.

Now the problem is this:

425 Unable to build data connection: Connection refused

Hmmmm....
 
Old 10-20-2004, 02:31 AM   #3
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Yeah it sounds like the initial negociation is working but the actual FTP data ports are locked up tight.

The thing is where?

Your Linux box?

Your Firewall?
 
Old 10-20-2004, 02:35 AM   #4
TheUnknown
LQ Newbie
 
Registered: Aug 2003
Location: N.Y.
Posts: 23

Original Poster
Rep: Reputation: 15
I have one box as the "Router/FTp server" running Shorewall.

Trying to connect to it with gftp
 
Old 10-20-2004, 02:37 AM   #5
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
On the server temporarily shut down Shorewall.

e.g.

service shorewall stop

Then see if you can connect.

If so you'll need to open the FTP-DATA port in shorewall.
 
Old 10-20-2004, 02:46 AM   #6
TheUnknown
LQ Newbie
 
Registered: Aug 2003
Location: N.Y.
Posts: 23

Original Poster
Rep: Reputation: 15
You were close !

What I did to the router was issue shorewall a clear command and I was able to connect and stay connected.

I do have ACCEPT 22,28 ports.

hmmm....

Weird, I dissconnected and tried to reconnect and got the original error... ugh!

hmmm... I restarted Shorewall, then sent it the CLEAR command and I'm able to connect....

Last edited by TheUnknown; 10-20-2004 at 02:51 AM.
 
Old 10-20-2004, 02:53 AM   #7
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Eh, don't you want 21 which is FTP and 20 which is FTP-DATA?
 
  


Reply



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
Frequent disconnects? Nego Linux - Software 1 09-10-2005 10:05 PM
ftp disconnects often chadi Linux - General 1 12-10-2004 10:31 PM
x11VNC Disconnects jonty_11 Linux - General 2 10-06-2004 09:28 PM
wpa_supplicant disconnects drzel Linux - Wireless Networking 1 07-17-2004 07:07 PM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:55 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