modsecurity 모니터링 프로그램?

jic5760의 이미지

웹에서 php을 통해 modsecurity (Apache)을 모니터링 할 수 있는 프로그램 추천해 주세요~ 오픈소스루요.
waf-fle을 설치해볼려고 몇시간동안 끙끙앓았는데 자꾸 /controller/ 이 500오류가 나서 안되네요.ㅠㅠ

익명 사용자의 이미지

WAF-FLE 설치된 서버의 Apache error 로그 확인해 보셨나요?

익명 사용자의 이미지

확인해봤는데 아무것도 없습니다...ㅠㅠ
Debug을 true로 해보기도 했는데 아무것도 안나오네요..
그냥 config.php파일에서
$DEBUG=true;
했는데도 아무것도 안나옵니다...

익명 사용자의 이미지

WAF-FLE 의 README 는 확인하신거죠?

WAF-FLE 에서 apache_getenv() 함수를 쓰기 때문에 mod_php 로 빌드하셔야 합니다.
http:///waf-fle/ 로 접속했을 때 아무것도 안나온다면 Apache2, mod_php 설정을 확인해 보셔야 할것 같네요. :)

jic5760의 이미지

네 mod_php5으로 빌드했습니다.

Requirements:
Apache 2.x server : 2.4
modrewrite : rewrite_module 활성화함
PHP 5.3 or higher : PHP 5.5 사용중
PHP PDO Mysql extension : PHP에서 사용가능
PHP GeoIP extension : PHP에서 사용가능
MySQL 5.1 or later : mysql 5.1

뭐가 문제일까요?....
참고로 waf-fle 설정페이지같은건 잘 접속이 되는데

service mlog2waffle start 만 하면
Starting mlog2waffle...
Starting up mlog2waffle in "tail" mode, using config file /etc/mlog2waffle.conf
Error in HTTP connection: 500 Internal Server Error [실패]
이럽니다...ㅜㅜ

jic5760의 이미지

sensorLogin 에서
if ( $APC_ON AND apc_fetch($login.'_'.$pass) AND ($remoteAddrLong >= apc_fetch($login.'_'.$pass.'_ipstart') AND $remoteAddrLong <= apc_fetch($login.'_'.$pass.'_ipend')) OR (is_null(apc_fetch($login.'_'.$pass.'_ipstart')) AND is_null(apc_fetch($login.'_'.$pass.'_ipend'))) ) {
가 오류가 나네요...
apc_fetch때문인지.. APC_ON = false 했는데도 그러네요...

jic5760의 이미지

apc_fetch때문에 그렇네요...

그냥 function apc_fetch($a){} 추가해 주니까 됩니다..ㅎ

익명 사용자의 이미지

RHEL6.5 기준으로 php-pecl-apc 패키지를 설치해 주시고
service httpd restart 하시면 될듯 하네요.

최근에 mod_security 와 WAF-FLE 을 구축하고 있어서 jic5760 님 글을 관심있게 보게 되었네요. ㅎㅎ

익명 사용자의 이미지

직접 빌드를 해서 그런지 pecl이 안되더라구요ㅠㅠ
자꾸 컴퍼일 도중에 오류나고...
참고로 위에 함수를 만들었는데
return FALSE; 을 넣어줘야 작동하네요~
is_null..때문에요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.