The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FTP don´t list

Discussion in 'General Discussion' started by mgrizal, Sep 10, 2009.

  1. mgrizal

    mgrizal Well-Known Member

    Joined:
    Jun 15, 2004
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    My pure-ftpd don´t list files in the VPS

    1. I activate the passive ports in my CSF Firewall (range - 30000:35000 to TCP_IN)
    2. I activate PassivePortRange 30000 35000 in /etc/pure-ftpd.conf

    But when i try to conect don´t list files files and folders:

    C:\Users\mauro>ftp xxxxxxx.com
    Connected to xxxxxxx.com
    220---------- Welcome to Pure-FTPd [TLS] ----------
    220-You are user number 1 of 50 allowed.
    220-Local time is now 16:35. Server port: 21.
    220-This is a private system - No anonymous login
    220-IPv6 connections are also welcome on this server.
    220 You will be disconnected after 15 minutes of inactivity.
    User (xxxxxxx.com:(none)): supermer
    331 User supermer OK. Password required
    Password:
    230-User supermer has group access to: supermer
    230 OK. Current restricted directory is /
    ftp> dir
    200 PORT command successful

    And in this part dead!

    Thank you!
     
  2. logicsupport

    logicsupport Well-Known Member

    Joined:
    Jun 5, 2007
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    Hope you have the root access to the server . Make sure modules “ip_conntrack_ftp” and “ip_nat_ftp” are loaded. You can use lsmod to see if the modules are already there .

    Add the modules using

    modprobe ip_conntrack_ftp

    If you are running kernel 2.6.20 or later, replace ip_conntrack_ftp with nf_conntrack_ftp . Similarly, replace ip_nat_ftp with nf_nat_ftp.

    If that doesn't work , enter the command 'passive' to toggle your tranfer mode prior to the 'dir' command.

    Make sure that the account has necessary permissions on the directory you log them into .
     
  3. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    This sounds like trouble with passive FTP, you can use the "pass" command in cmdline ftp to toggle it on and off. Please try again and do it right before the dir part of your test.

    If the test works with active FTP but not with passive, you can make changes to your firewall for both to work.

    Thanks!
     
Loading...

Share This Page