Skip to main content

[EA-8605] Mod_Security and Mod_Ruid2 with persistent storage

Comments

4 comments

  • cPanelMichael
    Hello, I've moved this post into it's own thread. Could you verify if you are using EasyApache 4? If so, could you let us know if defining a custom path for the "SecGeoLookupDb" directive works for this purpose? The option is configurable via: "WHM Home " Security Center " ModSecurity" Configuration " Configure Global Directives" Thank you.
    0
  • linux4me2
    I know the OP needs to verify it on his own installation, but I can verify that a custom path saved for SecGeoLookupDb in EA4 did not get overwritten when updating from cPanel 58.0.30 to 58.0.31 on mine.
    0
  • rclemings
    The solution in #2 does not work for me. The "SecGeoLookupDb" global directive remains set to /var/log/secdatadir, but on the next cPanel update the following setting in /etc/apache2/conf.d/modsec/modsec2.cpanel.conf reverts to /var/cpanel/secdatadir and the errors resume: ## ## ModSecurity fixed global configuration directives ## SecDataDir "/var/log/secdatadir" The errors look like this: ModSecurity: collections_remove_stale: Failed to access DBM file "/var/cpanel/secdatadir/XXXX-ip": Permission denied (where XXXX is the username)
    0
  • cPanelMichael
    ModSecurity: collections_remove_stale: Failed to access DBM file "/var/cpanel/secdatadir/XXXX-ip": Permission denied (where XXXX is the username)

    Hello @rclemings, This issue was recently brought up in a support ticket. Here's a quoted summary of the response: The following page on the Mod_Security GitHub shows where compatibility for Mod_Ruid2 and MPM-ITK was added to Mod_Security version 2.9.3:
    0

Please sign in to leave a comment.