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.

Passive FTP for cpbackup not working

Discussion in 'Data Protection' started by dansgalaxy, Apr 12, 2011.

  1. dansgalaxy

    dansgalaxy Well-Known Member

    Joined:
    Jan 29, 2007
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Reading, UK
    cPanel Access Level:
    Root Administrator
    I have got some FTP backup with a new server, but can't get it working, as soon as it enters Passive it chokes.

    It's running on a custom port, all info is fine.

    Server running CentOS & CSF. It works when firewall is disabled, so that's obviously the issue.

    How can I set it up so Passive FTP OUT works with the firewall?
     
  2. BlaineM.

    BlaineM. cPanel QA Analyst
    Staff Member

    Joined:
    Apr 4, 2011
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hey Dan, there are a couple settings you'll need to change to allow Passive FTP.

    First, you'll need to tell PureFTPd and ProFTP what ports to use for Passive FTP.

    for PureFTPd edit /etc/pure-ftpd.conf, uncomment the following line, and set the port range you'll be using.
    # PassivePortRange 30000 35000

    for ProFTP, do the same for /etc/proftpd.conf.
    # PassivePorts 30000 35000

    Then, you'll need to tell CSF to allow that port range through your firewall.

    edit /etc/csf/csf.conf and add the range as StartingPort:EndingPort, like the following.
    # Allow incoming TCP ports
    TCP_IN = "20,21,22,25,53,80,110,30000:35000"

    Finally, you'll need to restart the services.

    service csf restart
    service pureftpd restart
    or
    service proftpd restart
     
  3. dansgalaxy

    dansgalaxy Well-Known Member

    Joined:
    Jan 29, 2007
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Reading, UK
    cPanel Access Level:
    Root Administrator
    Done, not working.

    Note the problem is connecting FROM my server - via cpbackup - to the FTP server (which I have no control over).
     
Loading...

Share This Page