Hi Daniel,

i can see many messages at /var/ossec/logs/alerts/... - but only from
the local hsot (the OSSEC Server).

At the Windows Client - i've changed some files (rename, delete, remove,
add) - and i can see chanages only at
/var/ossec/queue/syscheck/daheim-server (the Windows Client).

But not at /var/ossec/logs/alerts.. :(

I don't change many Options at the config file, only add the Client IP
(192.168.1.2):

Here the config:


<ossec_config>
  <global>
    <email_notification>yes</email_notification>
    <email_to>[EMAIL PROTECTED]</email_to>
    <smtp_server>mx2.mail.yahoo.com.</smtp_server>
    <email_from>[EMAIL PROTECTED]</email_from>

    <white_list>127.0.0.1</white_list>
    <white_list>192.168.1.5</white_list>
    <white_list>192.168.1.2</white_list>

  </global>

  <rules>
    <include>rules_config.xml</include>
    <include>pam_rules.xml</include>
    <include>sshd_rules.xml</include>
    <include>telnetd_rules.xml</include>
    <include>syslog_rules.xml</include>
    <include>arpwatch_rules.xml</include>
    <include>pix_rules.xml</include>
    <include>named_rules.xml</include>
    <include>smbd_rules.xml</include>
    <include>vsftpd_rules.xml</include>
    <include>pure-ftpd_rules.xml</include>
    <include>proftpd_rules.xml</include>
    <include>ms_ftpd_rules.xml</include>
    <include>hordeimp_rules.xml</include>
    <include>vpopmail_rules.xml</include>
    <include>web_rules.xml</include>
    <include>apache_rules.xml</include>
    <include>ids_rules.xml</include>
    <include>squid_rules.xml</include>
    <include>firewall_rules.xml</include>
    <include>netscreenfw_rules.xml</include>
    <include>postfix_rules.xml</include>
    <include>sendmail_rules.xml</include>
    <include>imapd_rules.xml</include>
    <include>mailscanner_rules.xml</include>
    <include>ms-exchange_rules.xml</include>
    <include>racoon_rules.xml</include>
    <include>spamd_rules.xml</include>
    <include>msauth_rules.xml</include>
    <!-- <include>policy_rules.xml</include> -->
    <include>attack_rules.xml</include>
    <include>local_rules.xml</include>
    <include>ossec_rules.xml</include>
    <include>windows_rules.xml</include>
  </rules>

  <syscheck>
    <!-- Frequency that syscheck is executed - default every 2 hours -->
    <frequency>180</frequency>

    <!-- Directories to check  (perform all possible verifications) -->
    <directories check_all="yes">/etc,/usr/bin,/usr/sbin</directories>
    <directories check_all="yes">/bin,/sbin</directories>

    <!-- Files/directories to ignore -->
    <ignore>/etc/mtab</ignore>
    <ignore>/etc/mnttab</ignore>
    <ignore>/etc/hosts.deny</ignore>
    <ignore>/etc/mail/statistics</ignore>
    <ignore>/etc/random-seed</ignore>
    <ignore>/etc/adjtime</ignore>
    <ignore>/etc/httpd/logs</ignore>
    <ignore>/etc/utmpx</ignore>
    <ignore>/etc/wtmpx</ignore>
    <ignore>/etc/cups/certs</ignore>

    <!-- Windows files to ignore -->
    <ignore>C:\WINDOWS/System32/LogFiles</ignore>
    <ignore>C:\WINDOWS/Debug</ignore>
    <ignore>C:\WINDOWS/WindowsUpdate.log</ignore>
    <ignore>C:\WINDOWS/iis6.log</ignore>
    <ignore>C:\WINDOWS/system32/wbem/Logs</ignore>
    <ignore>C:\WINDOWS/system32/wbem/Repository</ignore>
    <ignore>C:\WINDOWS/Prefetch</ignore>
    <ignore>C:\WINDOWS/PCHEALTH/HELPCTR/DataColl</ignore>
    <ignore>C:\WINDOWS/SoftwareDistribution</ignore>
    <ignore>C:\WINDOWS/Temp</ignore>
    <ignore>C:\WINDOWS/system32/config</ignore>
    <ignore>C:\WINDOWS/system32/spool</ignore>
    <ignore>C:\WINDOWS/system32/CatRoot</ignore>
  </syscheck>

  <rootcheck>
    <rootkit_files>/var/ossec/etc/shared/rootkit_files.txt</rootkit_files>

<rootkit_trojans>/var/ossec/etc/shared/rootkit_trojans.txt</rootkit_trojans>
  </rootcheck>

  <active-response>
    <disabled>yes</disabled>
  </active-response>


  <remote>
    <connection>syslog</connection>
  </remote>

  <remote>
    <connection>secure</connection>
  </remote>

  <remote>
    <allowed-ips>192.168.1.2</allowed-ips>
  </remote>

  <alerts>
    <log_alert_level>1</log_alert_level>
    <email_alert_level>7</email_alert_level>
  </alerts>
  <!-- Files to monitor (localfiles) -->

  <localfile>
    <log_format>syslog</log_format>
    <location>/var/log/auth.log</location>
  </localfile>

  <localfile>
    <log_format>syslog</log_format>
    <location>/usr/local/squid/var/logs/access.log</location>
  </localfile>

  <localfile>
    <log_format>syslog</log_format>
    <location>/var/log/squid/access.log</location>
  </localfile>

  <localfile>
    <log_format>snort-fast</log_format>
    <location>/var/log/snort/alert</location>
  </localfile>

  <localfile>
    <log_format>apache</log_format>
    <location>/var/log/httpd/error_log</location>
  </localfile>

  <localfile>
    <log_format>apache</log_format>
    <location>/var/log/httpd/access_log</location>
  </localfile>

  <localfile>
    <log_format>apache</log_format>
    <location>/etc/httpd/logs/access_log</location>
  </localfile>

  <localfile>
    <log_format>apache</log_format>
    <location>/etc/httpd/logs/error_log</location>
  </localfile>
</ossec_config>

Thanks :)

Best regards
Fabian

Daniel Cid wrote:
> 
> Hi Fabian,
> 
> You will only see alerts at /var/ossec/logs/alerts/alerts.log if
> something happens
> (like a file changes or a log matches any of the rules). Try doing a:
> 
> $ logger "Segmentation Fault test"
> 
> on the linux server to see if it generates anything. If it does not,
> can you show
> us your config and the output of /var/ossec/logs/ossec.log?
> 
> Thanks,
> 
> -- 
> Daniel B. Cid
> dcid ( at ) ossec.net
> 
> On 11/14/06, fabiannorton <[EMAIL PROTECTED]> wrote:
>>
>> Hi Kurt,
>>
>> thats my problem: i can see some actions at
>> /var/ossec/queue/syscheck/daheim-server (the Windows Client).
>>
>> The filesystem check at the Windows Client works well - i can see the
>> md5sum and filename at /var/ossec/queue/syscheck/daheim-server:
>>
>> ....
>> ...
>>
>> +++8282187:33279:0:0:ad5a7bb75f869b4b44432101f6907371:e0fab2b9f68947428b4fb23b6dba4fa09a87708f
>>
>> !1163366290 D:\Dokumente und Einstellungen\Administrator\Eigene
>> Dateien/vlc-0.8.5-win32.exe
>>
>> +++135945992:33279:0:0:31bc929a5968eee0c1dc9d3d46b9d297:427c6d84a6b312f1f55c8b4cd3b04e376a4e98fb
>>
>> !1163366290 D:\Dokumente und Einstellungen\Administrator\Eigene
>> Dateien/W2KSP4_DE.EXE
>> .....
>> ...
>> .
>>
>>
>> but i can't see anything at /var/ossec/alerts/*
>> no eventlog at the Linux Server :(
>>
>> Do you have any idea?
>>
>> Thanks for your answer!! :)
>>
>> Best Regards
>> Fabian
>>
>>
>>
>> Kurt wrote:
>> > I've got the agent running on Windows and it works ok for me. Are
>> you looking in /var/ossec/logs/alerts? Is your alerts.log file showing
>> only events from your server, and nothing from your Windows client?
>> I'm trying to get a clearer picture of what you're seeing (or *not*
>> seeing).
>> >
>> > Kurt
>> > perl -e "($_='tjgvlvsuAzbipp/dpn')=~s/(.)/chr(ord($1)-1)/ge;print"
>> > -----
>> > Society doesn't understand me and technology fears me.
>> >
>> > ----- Original Message ----
>> > From: mohrenfabian <[EMAIL PROTECTED]>
>> > To: [EMAIL PROTECTED]
>> > Sent: Sunday, November 12, 2006 2:16:47 PM
>> > Subject: [ossec-list] Question about the Windows Agent
>> >
>> >
>> > Hello,
>> >
>> > i've installed a Server of my Archlinux Box - and the Agent on the
>> > Windows machine.
>> >
>> > The Key is correct imported. I can see the right connection from the
>> > client (/var/ossec/queue/agent-info) or with "list_agents -a".
>> >
>> > Under /var/ossec/queue/syscheck - i can see a logfile from the
>> client (i
>> > 've deleted some file - these files are listed).
>> >
>> > But i got no message at /var/ossec/log/....?
>> >
>> > Have anybody a idea?
>> >
>> > Best Regards
>> > Fabian
>> >



                
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

Reply via email to