With CSF active the port bandwidth drops drastically

Post Reply
rogalde
Junior Member
Posts: 4
Joined: 19 Mar 2019, 09:22

With CSF active the port bandwidth drops drastically

Post by rogalde »

I have a VPS with Almalinux8, Cpanel and CSF installed and with a 600Mpbs port. I started experiencing speed issues with FTP uploads (because it limited data upload) and so to check the speeds from the server, I installed speedtest cli.

The results with CSF/LFD activated are:

Code: Select all

Idle Latency:     9.79 ms   (jitter: 6.93ms, low: 2.03ms, high: 24.56ms)
    Download:    50.82 Mbps (data used: 60.1 MB)
                363.07 ms   (jitter: 71.63ms, low: 40.45ms, high: 718.71ms)
      Upload:    69.13 Mbps (data used: 56.3 MB)
                275.46 ms   (jitter: 66.22ms, low: 6.46ms, high: 787.30ms)
 Packet Loss:     0.0%
The results with CSF/LFD disabled are:

Code: Select all

Idle Latency:     0.72 ms   (jitter: 0.74ms, low: 0.30ms, high: 1.62ms)
    Download:   558.68 Mbps (data used: 395.4 MB)
                  9.56 ms   (jitter: 3.18ms, low: 1.01ms, high: 87.33ms)
      Upload:   570.64 Mbps (data used: 256.8 MB)
                107.27 ms   (jitter: 33.75ms, low: 2.26ms, high: 249.56ms)
 Packet Loss:     0.0%
I have tried reinstalling CSF and at first it works perfectly but after 1 or 2 minutes it limits the port again.
I have also tried several profiles, the one that comes by default, low or high security, but nothing works.
The truth is that I don't know what to do to solve this. Could someone help me?

Thanks in advance.
rogalde
Junior Member
Posts: 4
Joined: 19 Mar 2019, 09:22

Re: With CSF active the port bandwidth drops drastically

Post by rogalde »

Hello again.
Unfortunately I have installed Almalinux8 as a new virtual machine in virtualbox on my Local PC and I notice that the same thing happens although with different speeds.

Is all this normal or is there some hidden setting that solves it?

Thanks
rogalde
Junior Member
Posts: 4
Joined: 19 Mar 2019, 09:22

Re: With CSF active the port bandwidth drops drastically

Post by rogalde »

After a few days of research I have only been able to solve the problem by cleaning IPTABLES and reinstalling the CSF with its tool in the "Fix Common Problems" section.

I have realized that the solution is not 100% permanent since after at least 15~20 days the port speed limitation problem has occurred again. I still don't know the correct cause but I do know that by deactivating the CSF everything returns to normal.

The solution is always to run these commands and reinstall the CSF.

From a terminal run as root:
1) csf -x (disable csf)
2) nft flush ruleset
3) iptables -F
4) Reinstall CSF from its "Fix Common Problems" section

I can't submit an official ticket because they are only for paid products and not this, but if some of the developers see this, it would be interesting if they could take a look.

Thanks.
alexg
Junior Member
Posts: 1
Joined: 29 May 2024, 04:04

Re: With CSF active the port bandwidth drops drastically

Post by alexg »

i have same issue to my servers, download speed with closed csf its 200mbs and with enabled csf its 1mbs......which setting can cause that?
rogalde
Junior Member
Posts: 4
Joined: 19 Mar 2019, 09:22

Re: With CSF active the port bandwidth drops drastically

Post by rogalde »

Hi again!

After a long time testing on several VPS with different OS versions (Ubuntu and Almalinux) I have discovered that when country blocking is used, the speed is drastically limited (in my case CC_DENY).
I hope this helps other people and that they can solve it if there really is a solution.

Regards
mattcaz
Junior Member
Posts: 3
Joined: 01 Dec 2020, 17:46

Re: With CSF active the port bandwidth drops drastically

Post by mattcaz »

I'm having the same issue and wonder if it's a problem because I did a CPanel elevate from Centos 7 to Almalinux 8. When I disable CSF or remove all the country codes in cc-deny, my download speed from my server returns to normal.

Has anyone figured out a fix for this issue?

UPDATE: STILL NOT FIXED.. adding US to the allowed list didn't help. Transfer drops from 25mb/s to less than 1mb/s


thanks,
matt
Post Reply