Problem with FTP server and LNS

Discussion in 'LnS English Forum' started by Chris_008, Jul 15, 2007.

Thread Status:
Not open for further replies.
  1. Chris_008

    Chris_008 Registered Member

    Joined:
    Mar 4, 2007
    Posts:
    2
    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!
     
  2. Frederic

    Frederic LnS Developer

    Joined:
    Jan 9, 2003
    Posts:
    4,353
    Location:
    France
    Hi,

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

    Thanks,

    Frederic
     
  3. nuser

    nuser Registered Member

    Joined:
    May 31, 2007
    Posts:
    105
    Location:
    Singapore
    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.
     

    Attached Files:

  4. Chris_008

    Chris_008 Registered Member

    Joined:
    Mar 4, 2007
    Posts:
    2
    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?
     
  5. nuser

    nuser Registered Member

    Joined:
    May 31, 2007
    Posts:
    105
    Location:
    Singapore
    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.
     
  6. sapdan

    sapdan Registered Member

    Joined:
    Feb 2, 2007
    Posts:
    11
    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
     

    Attached Files:

    • ftp.jpg
      ftp.jpg
      File size:
      222.9 KB
      Views:
      8
  7. Frederic

    Frederic LnS Developer

    Joined:
    Jan 9, 2003
    Posts:
    4,353
    Location:
    France
    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
     
  8. sapdan

    sapdan Registered Member

    Joined:
    Feb 2, 2007
    Posts:
    11
    sure, i attached log
     

    Attached Files:

    • log.txt
      File size:
      3.9 KB
      Views:
      14
  9. Frederic

    Frederic LnS Developer

    Joined:
    Jan 9, 2003
    Posts:
    4,353
    Location:
    France
    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
     
  10. sapdan

    sapdan Registered Member

    Joined:
    Feb 2, 2007
    Posts:
    11
    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.
     
    Last edited: Aug 4, 2007
  11. Frederic

    Frederic LnS Developer

    Joined:
    Jan 9, 2003
    Posts:
    4,353
    Location:
    France
    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
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.