Learn about Centmin Mod LEMP Stack today
Become a Member

Sysadmin FTP failed accepting connection after receiving some files

Discussion in 'System Administration' started by arlon, Dec 4, 2016.

  1. arlon

    arlon Member

    83
    6
    8
    Feb 20, 2016
    Ratings:
    +11
    Local Time:
    11:39 AM
    1.13.6
    10.1
    i'm using centminmod engine as my backup server and using FTP to receive backup from other server,

    i setup backup configuration on cpanel to backup all cpanel accounst and send them to backup server(using centminmod ftp), but backup process transfer always fail after sending 2 or 3 cpanel accounts, i have disabled CSF but it dooesn't fix my problem,,
    and also when the process failed, i can not validate backup ftp from my cpanel "Error: Connection to the server timed out." but i can use FTP using my computer
    and i can ping my backup server ip using my cpanel server, and also i can send files using rsync

    i tried different panel (centos web panel) and using centos web panel FTP to receice my cpanel backup and all files backup transfered without problem..

    how to fix this problem?
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,890
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,401
    Local Time:
    2:39 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  3. arlon

    arlon Member

    83
    6
    8
    Feb 20, 2016
    Ratings:
    +11
    Local Time:
    11:39 AM
    1.13.6
    10.1
  4. eva2000

    eva2000 Administrator Staff Member

    30,890
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,401
    Local Time:
    2:39 PM
    Nginx 1.13.x
    MariaDB 5.5
    Disable CSF blocks everything as there's no iptable rules to allow ports for ftp etc - there's virtually no iptable rules set if you disable CSF firewall. Centmin Mod pure-ftpd server uses passive mode and explicit TLS encrypted ftp so requires proper CSF firewall/iptables setup for passive ports to work. Disable CSF firewall, will prevent passive port based pure-ftpd from working as outlined at Pure-FTPD Virtual FTP Users - CentminMod.com LEMP Nginx web stack for CentOS
     
    • Like Like x 1
  5. arlon

    arlon Member

    83
    6
    8
    Feb 20, 2016
    Ratings:
    +11
    Local Time:
    11:39 AM
    1.13.6
    10.1
    how to whitelist my IP for pureftp? should i add my IP on CSF csf.allow ?
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,890
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,401
    Local Time:
    2:39 PM
    Nginx 1.13.x
    MariaDB 5.5
    same way you whitelist any ip as outlined at CSF Firewall - CentminMod.com LEMP Nginx web stack for CentOS
    Code (Text):
    csf -a xxx.xxx.xxx.xxx

     
    • Like Like x 1
  7. arlon

    arlon Member

    83
    6
    8
    Feb 20, 2016
    Ratings:
    +11
    Local Time:
    11:39 AM
    1.13.6
    10.1
    fixed now, thanks :)
     
    • Like Like x 1
  8. eva2000

    eva2000 Administrator Staff Member

    30,890
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,401
    Local Time:
    2:39 PM
    Nginx 1.13.x
    MariaDB 5.5
    excellent :D