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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED CSF Error on start

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

Tags:
  1. Jallekobber

    Jallekobber Member

    Joined:
    Jul 12, 2012
    Messages:
    20
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. rarod

    rarod Member

    Joined:
    Apr 20, 2017
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    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:
    20
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm glad to see the issue is now solved. Thank you for sharing the outcome.
     
Loading...

Share This Page