Results 1 to 4 of 4

Thread: Regding OSSEC

  1. #1
    Join Date
    May 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Regding OSSEC

    FYI...

    Installed OSSEC server version 2.6 in Cent OS 6.2 and agents are web servers

    installed in chroot environment.

    Moreover ossec server and apache (web servers are agents) are installed in separate machines.


    In ossec.conf file, added below configuration in both server and agent.

    <localfile>
    <log_format>syslog</log_format>
    <location>/chroot/site/usr/local/apache/logs/error_log</location>
    </localfile>


    Already in decoder.xml and in rules folder apache related configuration is set

    by default.


    Problem : Ossec is not working for apache logs, not even generating


    mails related to Apache errors , rest of the ossec part is working as needed.

    Please guide me what has to be done to solve the issue.




  2. #2
    Join Date
    Apr 2012
    Posts
    90
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    2
    My guess is that Apache is running outside of the chroot environment, so the OSSEC agents can't see the logs. Try running OSSEC in a virtual machine that can still access the system running the Apache server, or if in the chroot environment, treat the root system as a remote system, even if you use localhost as the system address.

  3. #3
    Join Date
    May 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Regding OSSEC

    Quote Originally Posted by Stefano Messicano View Post
    My guess is that Apache is running outside of the chroot environment,

    Sure Apache is running in chroot environment.

    so the OSSEC agents can't see the logs. Try running OSSEC in a virtual machine that can still access the system running the Apache server, or if in the chroot environment, treat the root system as a remote system, even if you use localhost as the system address.

    Ossec and apache are installed in separate machines, in such a way that ossec can access apache as needed.

    Note : Only apache is installed in chroot environment.

    Moreover please let me know what has to cross checked to solve this part.

  4. #4
    Join Date
    Jan 2012
    Posts
    124
    Thanks
    0
    Thanked 10 Times in 10 Posts
    Rep Power
    2
    Installed OSSEC server version 2.6 in Cent OS 6.2 and agents are web servers

    installed in chroot environment.
    So, is OSSEC in a chroot environment as well, or no? What you said originally contradicts your newer statement. However, this makes a big difference.

    How is OSSEC set up, exactly? You should have an OSSEC server set up on one machine, and a sensor/agent set up on the Apache machine. If this is correct, then the sensor should not be chroot'ed, but should have access rights to Apache's logs.

    Problem : Ossec is not working for apache logs, not even generating mails related to Apache errors , rest of the ossec part is working as needed.
    Sounds like a permissions issue for Apache's logs myself. What's the output when you run this command:
    ls -liha /chroot/site/usr/local/apache/logs/error_log
    It could be that OSSEC just does not have access rights to either /chroot or some subdirectory of that. Espcially if OSSEC is working correctly everywhere else.
    Information Server Management
    Linux server management, PCI consultation and affordable web hosting.

    Security For Us - Where security works for you

    Providing server security and PCI compliance for individuals and businesses.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,563
Threads: 3,917
Posts: 9,436
Top Poster: Fred (1,486)
Welcome to our newest member, nahidworld

» Links



Powered by vBadvanced CMPS