Skip to main content

Can't publish new custom mod_sec rule

Comments

3 comments

  • fuzzylogic
    I think your chained rule is not saving due to syntax error. The error is the "chain" in the last clause. It should not be there. Modsec assumes you want to chain the next rule that it reads after your rule. The next rule after yours has a disruptive action (as you would expect), so this explains the error you are receiving... Disruptive actions can only be specified by chain starter rules.
    0
  • cPanelMichael
    Hello, The information in the previous post should help. Let us know if you have any additional questions. Thank you.
    0
  • jndawson
    I think your chained rule is not saving due to syntax error. The error is the "chain" in the last clause. It should not be there. Modsec assumes you want to chain the next rule that it reads after your rule. The next rule after yours has a disruptive action (as you would expect), so this explains the error you are receiving... Disruptive actions can only be specified by chain starter rules.

    We got the error and explanation, just having problems fixing it. Having said that, removing the last "chain" did the trick - thanks!
    0

Please sign in to leave a comment.