<!-- @(#) $Id$
  -  Racoon VPN rules for OSSEC HIDS.
  -  Author: Daniel B. Cid
  -  License: http://www.ossec.net/en/licensing.html
  -->


<!-- BETA -->

<group name="syslog,racoon,">
  <rule id="14100" level="0">
    <decoded_as>racoon</decoded_as>
    <description>Grouping of racoon rules.</description>
  </rule>
  
  <rule id="14101" level="5">
    <decoded_as>racoon-failed</decoded_as>
    <description>VPN authentication failed.</description>
    <group>authentication_failed,</group>
  </rule>
  
  <rule id="14110" level="0">
    <if_sid>14100</if_sid>
    <action>INFO</action>
    <description>Racoon informational message.</description>
  </rule>

  <rule id="14111" level="4">
    <if_sid>14100</if_sid>
    <action>ERROR</action>
    <description>Racoon error message.</description>
  </rule>
  
  <rule id="14112" level="4">
    <if_sid>14100</if_sid>
    <action>WARNING</action>
    <description>Racoon warning message.</description>
  </rule>
  
  <rule id="14120" level="3">
    <if_sid>14110</if_sid>
    <match>ISAKMP-SA established </match>
    <group>authentication_success</group>
    <description>VPN established.</description>
  </rule>
  
  <rule id="14121" level="0">
    <if_sid>14111</if_sid>
    <match>such policy does not already exist</match>
    <description>Roadwarrior configuration (ignored error).</description>
  </rule>
  
  <rule id="14122" level="0">
    <if_sid>14112</if_sid>
    <match>ignore INITIAL-CONTACT notification</match>
    <description>Roadwarrior configuration (ignored warning).</description>
  </rule>
  
  <rule id="14123" level="0">
    <if_sid>14111</if_sid>
    <match>ERROR: invalid attribute|ERROR: rejected</match>
    <description>Invalid configuration settings (ignored error).</description>
  </rule>
  
  <rule id="14151" level="9" frequency="3" timeframe="360">
    <if_matched_sid>14101</if_matched_sid>
    <same_source_ip />
    <description>Multiple failed VPN logins.</description>
  </rule>
</group> <!-- SYSLOG,RACOON -->
