LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-27-2003, 09:35 AM   #1
Tobas
LQ Newbie
 
Registered: Dec 2003
Posts: 16

Rep: Reputation: 0
FTP login problem


i have installed Proftpd ans everything works except 2 things

1. i can login from everywhere in the world except from my local pc's ?? (the pc's in the lan )

2. how do i set my ftp-server so i can have a passive login ???


this is the problem flashfxp gives :


Passive :


200 Type set to A
PASV
227 Entering Passive Mode (192,168,1,1,129,41).
Data Socket Error: Connection refused
List Error



Port :

200 PORT command successful
LIST
421 No Transfer Timeout (10 seconds): closing control connection.
Connection lost: 192.168.1.1

( no file listing either )


Tobas
 
Old 12-27-2003, 09:41 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Why not turn passive off from where ever your attempting to login from? Your going to get better reliablity out of your FTP server most likely with passive turned off.
 
Old 12-27-2003, 10:05 AM   #3
Tobas
LQ Newbie
 
Registered: Dec 2003
Posts: 16

Original Poster
Rep: Reputation: 0
when i FXP stuff it needs to be passive ( the source ftp's are )
 
Old 12-28-2003, 03:39 AM   #4
Tobas
LQ Newbie
 
Registered: Dec 2003
Posts: 16

Original Poster
Rep: Reputation: 0
i can login but it stops when i should have a bunch of dirs


Connecting to 192.168.1.1
Connected to 192.168.1.1 -> IP=192.168.1.1 PORT=21
220 *********** FTP server ready
USER ****
331 Password required for *****.
PASS (hidden)
230 User ***** logged in.
SYST
215 UNIX Type: L8
REST 100
350 Restarting at 100. Send STORE or RETRIEVE to initiate transfer
REST 0
350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer
CWD /
250 CWD command successful.
PWD
257 "/" is current directory.
TYPE A
200 Type set to A
PORT 192,168,1,253,11,175
200 PORT command successful
LIST


and then nothing .

but when i log in from my work i can get in

and another problem shows :

when i want to log into my win PC from the Mandrake 9.2 box i cant either but the stranges thing is he cant find my win pc's ip ???

Last edited by Tobas; 12-28-2003 at 03:41 AM.
 
Old 12-28-2003, 10:37 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally posted by Tobas
when i FXP stuff it needs to be passive ( the source ftp's are )
Why would they have to be passive? What do you mean the source ftp's are?

A good definition of Passive FTP I found which I don't think you necessarily need:

"Passive FTP (sometimes referred to as PASV FTP because it involves the FTP PASV command) is a more secure form of data transfer in which the flow of data is set up and initiated by the File Transfer Program (FTP) client rather than by the FTP server program. Separate FTP client programs, such as WS_FTP Pro, usually allow the user to select passive FTP. Most Web browsers (which act as FTP clients) use passive FTP by default because corporations prefer it as a safety measure. As a general rule, any coprorate firewall server, which exists in order to protect an internal network from the outside world, recognizes input from the outside only in response to user requests that were sent out requesting the input. The use of passive FTP ensures all data flow initiation comes from inside the network rather than from the outside.

How It Works

Using normal or passive FTP, a client begins a session by sending a request to communicate through TCP port 21, the port that is conventionally assigned for this use at the FTP server. This communication is known as the Control Channel connection.

Using "normal" FTP communication, the client requestor also includes in the same PORT command packet on the Control Channel a second port number that is to be used when data is to be exchanged; the port-to-port exchange for data is known as the Data Channel. The FTP server then initiates the exchange from its own port 20 to whatever port was designated by the client. However, because the server-initiated communication is no longer controlled by the client and can't be correlated by a firewall to the initial request, the potential exists for uninvited data to arrive from anywhere posing as a normal FTP transfer.

Using passive FTP, a PASV command is sent instead of a PORT command. Instead of specifying a port that the server can send to, the PASV command asks the server to specify a port it wishes to use for the Data Channel connection. The server replies on the Control Channel with the port number which the client then uses to initiate an exchange on the Data Channel. The server will thus always be responding to client-initiated requests on the Data Channel and the firewall can coorelate these."
 
  


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
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 05:24 PM
proftpd. FTP login problem.. gplacek Linux - Networking 5 12-09-2004 08:29 AM
FTP Network login problem codabiz Linux - Networking 3 05-21-2004 02:16 AM
FTP Login Problem CanadianPenguin Linux - Networking 3 10-18-2003 07:45 PM
login problem (/dev/tty*,ftp...) --TOL-- Linux - Newbie 6 05-23-2002 07:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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