Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Sep 2005
    Posts
    14

    Default FTP problem again.

    Hey all,

    I know this topic seems to have been covered several times from the searching I have done, so I apologize for starting another one if this answer is out there already.

    Ok so FTP problem I have and my clients.

    It takes an extremely long time to log in. When and if it does login the directory listing is empty. I was using WS_ftp for this. I just happen to try SmartFTP and noticed that this software brings up the port number. Then the light bulb went on.
    Sure enough this port range that it was trying to use was not allowed by the Firewall -APF.
    So I went into the config added that port range and what do you know it worked.

    But now here is the part I do not understand. The ports seem to be incrementing. So once it exceeds my port range I can not FTP again. So obviously it has something to do with APF and my FTP software - proftpd.

    So does anyone know why the port ranges would just keep incrementing like that and what I can do. Maybe this could be something that is going on with other people?


    Hope someone knows.

    Thanks

  2. #2
    Member sh4ka's Avatar
    Join Date
    May 2005
    Posts
    433

    Default

    I'm not totally sure but I remember FTP service in passive mode uses 3000_3500... you may try to add that and verify your rules at APF configuration.

  3. #3
    Member
    Join Date
    Sep 2005
    Posts
    14

    Default

    Hey thanks for the reply.

    I did already add that port range. But see the problem is the port range that it is connecting on is incrementing or something. So I would have to keep increasing the range from 3000_3500 to more. I had this 3000_3500 then FTP stopped working. Then I increased it to 3000_5000 worked then stopped working again. So I increased it to 3000_5500 and it worked. So of course I am defeating the purpose of the APF but for debugging that is what I did??

  4. #4
    Member sh4ka's Avatar
    Join Date
    May 2005
    Posts
    433

    Default

    You may have something really wrong at your box.. or the ftp service.... ports for FTP are 21 or the passive range that I told you.. this is very rare

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    If APF/iptables is working correctly you should never have to open a hole in your firewall for FTP as it uses SPI (stateful packet inspection) to determine if you can open PASV ports. Are you using proftpd or pure-ftpd? If proftpd, you might want to try changing over to pure-ftpd and see if that improves things

    You might want to check in /var/log/messages for iptables errors when you try and FTP in. Whether you do or not, make sure you're using the latest version of APF as recent former releases had bugs which caused issues on some servers for FTP and POP3 connections.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  6. #6
    Member
    Join Date
    Sep 2005
    Posts
    14

    Default

    I am using proftpd.
    I did switch over to pure-ftpd and it did not change anything. Stopping the APF service gets things working just fine.

    I do have a feeling I am not using the latest version of APF. Could you walk me through checking the version and upgrading if needed?

Similar Threads & Tags
Similar threads

  1. FTP problem
    By chris8lunch in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-21-2006, 02:04 PM
  2. ftp problem
    By SACHIN in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-29-2005, 08:39 AM
  3. ftp problem
    By ingenialtda.com in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-23-2005, 05:04 PM
  4. Disable Anonymous FTP Problem [Pure-FTP]
    By 3en in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-22-2005, 03:41 PM
  5. [HELP]FTP login problem. Anyone here face the problem b4?
    By ProLamer in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 05-31-2005, 08:50 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube