Join the community today
Become a Member

Beta Branch fix csfinstalls firewall unit handling replacing CSF rules in 140.00b…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Dec 1, 2026 at 1:14 AM.

  1. eva2000

    eva2000 Administrator Staff Member

    60,650
    12,635
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,302
    Local Time:
    5:03 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fix csfinstalls firewall unit handling replacing CSF rules in 140.00beta01


    csfinstalls() started iptables.service and ip6tables.service after csf -ra
    had already loaded the CSF rules. With CSF 16.32 that ran iptables-restore
    of the stock /etc/sysconfig/iptables and ip6tables rules over the live CSF
    ruleset, which stayed in place until the next csf restart, about a minute
    later on a fresh install. With CSF 16.33, which disables and masks
    nftables, iptables and ip6tables itself, the same calls fail on the masked
    units and log errors. Stopping nftables.service could also flush the whole
    ruleset when that service was active.

    Changes:
    - disable firewalld and nftables only when they are enabled, skipping
    masked or missing units
    - stop firewalld only when it is active and never stop nftables.service
    - no longer start iptables and ip6tables during csfinstalls, and only
    enable them for boot when they are disabled, so units masked by CSF 16.33
    are left alone

    Continue reading...

    140.00beta01 branch