Guest User

Untitled

a guest
Jun 6th, 2018
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. ossec = {
  2. rules = (
  3. {
  4. comment = "This is just some data about this section";
  5. type = "rule_file";
  6. path = "rules/rules/00_ossec_rules.xml";
  7. },
  8. {
  9. type = "rule_dir";
  10. path = "rules/rules/";
  11. pattern = ".*\.xml";
  12. },
  13. {
  14. type = "rule_dir";
  15. path = "rules/plugins/";
  16. pattern = ".*\.xml";
  17. },
  18. {
  19. path = "rules/decoder/00_ossec_decoder.xml";
  20. type = "decoder";
  21. },
  22. {
  23. type = "decoder_dir";
  24. path = "rules/decoder/";
  25. pattern = ".*\.xml";
  26. },
  27. {
  28. type = "decoder_dir";
  29. path = "rules/decoder/plugins";
  30. pattern = ".*\.xml";
  31. },
  32. );
  33. input = {
  34. syscheck = {
  35. frequency = 79200;
  36. dir = (
  37. {
  38. path ( "/etc", "/usr/bin", "/usr/sbin" );
  39. check_all = True;
  40. };
  41. {
  42. path ("/tmp");
  43. check_md5 = True;
  44. };
  45. );
  46. ignore (
  47. {pattern = "/etc/mtab"};
  48. {pattern = "/etc/mnttab"};
  49. {
  50. pattern = ".*.bin";
  51. type = sregex;
  52. };
  53. );
  54.  
  55. };
  56. localfile = (
  57. {
  58. path = "/var/log/security";
  59. type = "syslog";
  60. },
  61. {
  62. path = "/var/log/messages";
  63. type = "syslog";
  64. }
  65. );
  66. };
  67. output = {
  68. database = (
  69. {
  70. hostname = "server1";
  71. username = "ossec";
  72. password = "ossecpw";
  73. database = "ossec";
  74. type = "mysql";
  75. },
  76. {
  77. hostname = "server2";
  78. username = "ossec";
  79. password = "ossecpw";
  80. database = "ossec";
  81. type = "pgsql";
  82. }
  83. );
  84. email = {
  85. email_from = "ossec@example.com";
  86. smtp_servers = (
  87. {
  88. hostname = "smtp1.example.com";
  89. starttls = True;
  90. username = "ossec@example.com";
  91. password = "ossec";
  92. },
  93. {
  94. hostname = "smtp2.google.com";
  95. starttls = True;
  96. username = "ossec@google.com";
  97. password = "ossecpw";
  98. },
  99. );
  100. alerts = (
  101. {
  102. email_to = "jeremy@example.com";
  103. level = 14;
  104. group = "firewall";
  105. location = ".*";
  106. format = "full";
  107. no_delay = True;
  108. no_grouping = True;
  109. },
  110. {
  111. email_to = "pager@example.com";
  112. level = 15;
  113. format = "sms";
  114. no_delay = True;
  115. no_grouping = True;
  116. },
  117. );
  118. };
  119. };
  120. };
Add Comment
Please, Sign In to add comment