PDA

View Full Version : Problem with FTP server and LNS


Chris_008
July 15th, 2007, 12:07 PM
Hi all,
I am trying to run an FTP server with the latest LNS 2.06 under Win XP. I have the enhanced rules loaded and I have imported the ftp server.rie rule. I am also behind a router. Users can connect and i can see in the FTP server log the command passv and then the connection is lost. If I however close LNS it works. Any suggestions?
Many thanks!

Frederic
July 15th, 2007, 01:39 PM
Hi,

Is there any useful information in Look 'n' Stop log when this happens ?

Thanks,

Frederic

nuser
July 16th, 2007, 02:21 AM
The default 'ftp server rule' is for port mode (port 20 and 21), which means that your ftp server is actually a 'ftp client' using port 20.
For passive ftp mode, you have to specify some listening ports in your server program (Serv_u, G6, etc) and then allow these ports in LnS.

For example, I am now using xlight ftp server (www.xlightftpd.com) and I specify only 1 listening port (5000) for data transfer. So the ftp rule of LnS is like this.
(also, don't forget to bind this rule to your ftp program).

btw, some 'smart' ftp client (flashfxp) can switch to port mode automatically when passive mode fails (there is an option in flashfxp). So, the default ftp server rule might work if you use flashfxp.

Chris_008
July 16th, 2007, 12:04 PM
Hi,
I am currently using Serv-U 6.4 and LNS 2.06
Nuser, I think I understand what you mean. A friend of mine is only using Internet explorer and that seem to want use passive mode to transfer files. LNS is blocking connections on ports such as 1080. If someone connect without using passive mode it works.
so i can set up any port for passive mode transfer in Serv-U and it should work?

nuser
July 16th, 2007, 10:36 PM
{QUOTE-> Hi,
I am currently using Serv-U 6.4 and LNS 2.06
Nuser, I think I understand what you mean. A friend of mine is only using Internet explorer and that seem to want use passive mode to transfer files. LNS is blocking connections on ports such as 1080. If someone connect without using passive mode it works.
so i can set up any port for passive mode transfer in Serv-U and it should work? <-QUOTE}
If the only problem is IE, it's not necessary to change LnS rules. The default ftp server rule should work.

Try this:
IE->Internet Options -> Advanced -> Enable FTP folder view (checked by default)

uncheck this

Then IE will use port mode for ftp and can connect to your server without trouble.

sapdan
August 3rd, 2007, 02:45 PM
hello,

i have problem with serv-u 6.4.0.4 and lns 2.06. my ftp server is on port 7899 and users can connect, but cant see any files/folders :(

here's my config.

regards,
daniel

Frederic
August 4th, 2007, 11:00 AM
Hi,

Could you check and report the content of the log just after you know one client could not see the files/folders ?

Thanks,

Frederic

sapdan
August 4th, 2007, 01:34 PM
sure, i attached log

Frederic
August 4th, 2007, 05:24 PM
It seems your FTP server is not on port 7899 but on port 30174.

Could you perform some other attempts to check if this 30174 is constant.
If it is then you could add a rule for that port.

Also maybe the FTP server configuration needs to be checked again.

Frederic

sapdan
August 4th, 2007, 06:26 PM
if it wasnt port7899 people wont be able to connect at all.
forgot to mention when i shut down lns and run ftp server then people can connect and can see files/dirs.

Frederic
August 5th, 2007, 04:38 AM
The log shows incoming connections on port 30174, and also 50003, 50004.

Usually for the initial connection the common FTP port 21 is used (which allows the client to connect and to get the other ports to use), and then another port defined by the server is used.

Frederic