Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED CSF Error on start

Discussion in 'Security' started by Jallekobber, Mar 15, 2018.

Tags:
  1. Jallekobber

    Jallekobber Member

    Joined:
    Jul 12, 2012
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Just installed CSF and went through the configuration file trying to restart and apply my changes when I see this error:

    You have an unresolved error when starting csf:
    Error: iptables command [/sbin/iptables --wait -v -A INPUT ! -i lo -p tcp --dport "80 -m conntrack --ctstate NEW -m recent --set --name "80] failed, at line 2774 in /usr/sbin/csf

    You need to restart csf successfully to remove this warning, or delete /etc/csf/csf.error

    I tried to find the iptables / CSF complete file with all the rules but I can't seem to find it.

    This is the only rule preventing me from starting my firewall.

    Regards,

    Jacob.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. rarod

    rarod Active Member

    Joined:
    Apr 20, 2017
    Messages:
    33
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Try this:

    cat /etc/csf/csf.error

    If you are lucky the error may should tell something.

    And/Or If you are using blocklists or/and CC_DENY enable IP_SET.
     
    cPanelMichael likes this.
  4. Jallekobber

    Jallekobber Member

    Joined:
    Jul 12, 2012
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Thank you for your replies.

    I found out that the versions.txt file in CSF was missing and caused the error. Putting the normal version file back fixes the error.

    Again a self inflicted error..

    Jake.
     
    cPanelMichael likes this.
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I'm glad to see the issue is now solved. Thank you for sharing the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice