Re: [mod-security-users] libmodsecurity collection files location
Brought to you by:
victorhora,
zimmerletw
|
From: Ervin H. <ai...@gm...> - 2018-06-11 09:55:46
|
Hi Ehsan, On Mon, Jun 11, 2018 at 01:20:58PM +0430, Ehsan Mahdavi wrote: > Hi all > > Modsecurity version 2 had some collection files like ip.pag, global.pag and > etc stored in location specified by SecDataDir . > Migrating to modsec V3.0 I can't find such files there. > > Where should I be looking at? I've never used ModSecurity 2, but in V3, as I know (and if it's analog what you describe above) there are two kinds of type of collections: * in-memory * lmdb See the source: https://github.com/SpiderLabs/ModSecurity/blob/95048d5fcfe43147ab0269bff69e2353817cb7c7/src/modsecurity.cc#L65 https://github.com/SpiderLabs/ModSecurity/tree/v3/master/src/collection/backend So, the in-memory backend stores the variables in memory, LMDB stores in an LMDB database, therefore I'm afraid there aren't any other files, what you're looking for. Note, that the LMDB collection doesn't work in this state, the patch are waiting for the merge: https://github.com/SpiderLabs/ModSecurity/pull/1787 But may be I'm wrong and you're talking about totally another context of collections. :) a. |