Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0c6a661

Browse files
author
Felipe Zimmerle
committed
First version of the status engine implementation
The Status Engine allow the measurements of how many ModSecurityinstances are running around the world, as long as informationon how many times it had been restarted and so on. Everytime thatthe server is started it perform a DNS query that is redirectedto our servers, that query constains information about theModSecurity version and it dependencies versions. It also sends aunique indetification generate locally for the server, avoidingcounting the same server twice while generating the statistics.This id is a sha-1 hash of the machine name + mac address of thefirst network adapter. In this commit it is enabled by default,in the release will be a configuration option to disable thisfunctionality. It also important to cite that the informationgather by this query will be also available in ModSecurity websitepublic open via a JSON stateless API. There will be an fancyheatmap as well.
1 parentd93ce9c commit0c6a661

File tree

5 files changed

+470
-0
lines changed

5 files changed

+470
-0
lines changed

‎apache2/Makefile.am‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ mod_security2_la_SOURCES = acmp.c \
88
libinjection/libinjection_sqli.c\
99
mod_security2.c\
1010
modsecurity.c\
11+
msc_status_engine.c\
1112
msc_crypt.c\
1213
msc_geo.c\
1314
msc_gsb.c\

‎apache2/mod_security2.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include"msc_lua.h"
3838
#endif
3939

40+
#include"msc_status_engine.h"
4041

4142
/* ModSecurity structure */
4243

@@ -722,6 +723,8 @@ static int hook_post_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_t
722723
ap_log_error(APLOG_MARK,APLOG_NOTICE |APLOG_NOERRNO,0,s,
723724
"Original server signature: %s",real_server_signature);
724725
}
726+
727+
msc_status_engine_call();
725728
}
726729

727730
srand((unsignedint)(time(NULL)*getpid()));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp