This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Working with cPanel, they seem to locate an issue with CSF/LFD that is causing the packaging of a full backup to end prematurely from cpanel, but yet the the file is sent to the remote destination.
The package restores fine, but again, not everything is restored.
After much testing, I have been able to replicate
the issue with the test1 account and a test account, using 2 different ftp
hosts. The backup archive looks fine, but does not fully transfer to the
recipient ftp site.
When I manually transferred a backup archive, via ftp (in passive mode just as
I specified in the backup wizard), the full file was received.
Unfortunately, in viewing logs, stracing the ftp process and attempting to
monitor the ftp transmission, I was not able to determine why the transferred
file is truncated when transferred via the backup wizard in cPanel.
In addition, I confirmed that restoring from a backup directly downloaded from
the backup wizard is only partially successful. I selected a home directory
backup and the restoration stopped after a partial mail directory restore. The
difficulty is that there were no errors presented.
Later on, disabling CSF/LFD eliminates the problem.
I don't know why iptables is doing that. The first thing to check is /var/log/lfd.log and see if lfd is blocking the IP address at all. If it isn't, then it'll be an iptables problem. A guess might be the connection tracking table either being full or losing the connection relationship and so dropping the RELATED, ESTABLISHED setting.