]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/samhain/templates/samhainrc.erb
remote sysloging config for the clients, fix typo and keep hostnames
[dsa-puppet.git] / modules / samhain / templates / samhainrc.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 #####################################################################
7 #
8 # Configuration file template for samhain.
9 #
10 #####################################################################
11
12 # -- empty lines and lines starting with '#', ';' or '//' are ignored
13 # -- boolean options can be Yes/No or True/False or 1/0 
14 # -- you can PGP clearsign this file -- samhain will check (if compiled
15 #    with support) or otherwise ignore the signature
16 # -- CHECK mail address
17 #
18 # To each log facility, you can assign a threshold severity. Only
19 # reports with at least the threshold severity will be logged
20 # to the respective facility (even further below).
21 #
22 #####################################################################
23 #
24 # SETUP for file system checking:
25
26 # (i)   There are several policies, each has its own section. Put files
27 #       into the section for the appropriate policy (see below).
28 # (ii)  Section [EventSeverity]: 
29 #       To each policy, you can assign a severity (further below).
30 # (iii) Section [Log]: 
31 #       To each log facility, you can assign a threshold severity. Only
32 #       reports with at least the threshold severity will be logged
33 #       to the respective facility (even further below).
34 #
35 #####################################################################
36
37 #####################################################################
38 #
39 # Files are defined with: file = /absolute/path
40 #
41 # Directories are defined with:                  dir = /absolute/path
42 # or with an optional recursion depth (N <= 99): dir = N/absolute/path
43 #
44 # Directory inodes are checked. If you only want to check files
45 # in a directory, but not the directory inode itself, use (e.g.):
46 #
47 # [ReadOnly]
48 # dir = /some/directory
49 # [IgnoreAll]
50 # file = /some/directory
51 #
52 # You can use shell-style globbing patterns, like: file = /path/foo*
53
54 ######################################################################
55
56 [Misc]
57 ##
58 ## Add or subtract tests from the policies
59 ## - if you want to change their definitions,
60 ##   you need to do that before using the policies
61 ##
62 # RedefReadOnly = (no default)
63 # RedefAttributes=(no default)
64 # RedefLogFiles=(no default)
65 # RedefGrowingLogFiles=(no default)
66 # RedefIgnoreAll=(no default)
67 # RedefIgnoreNone=(no default)
68 # RedefUser0=(no default)
69 # RedefUser1=(no default)
70 <% if nodeinfo['buildd'] -%>
71 IgnoreMissing=/etc/lvm/archive/.*.vg
72 <% end -%>
73
74 [Attributes]
75 ##
76 ## for these files, only changes in permissions and ownership are checked
77 ##
78 file=/etc/mtab
79 file=/etc/ssh_random_seed
80 file=/etc/asound.conf
81 <% case hoster when "ubcece", "darmstadt", "ftcollins", "grnet" then -%>
82 <% else -%>
83 file=/etc/resolv.conf
84 <% end -%>
85 file=/etc/localtime
86 file=/etc/ioctl.save
87 file=/etc/passwd.backup
88 file=/etc/shadow.backup
89 file=/etc/postfix/prng_exch
90 file=/etc/adjtime
91 file=/etc/lvm/.cache
92 file=/etc/lvm/cache
93 file=/etc/lvm/cache/.cache
94 file=/etc/network/run/ifstate
95 file=/var/state/samhain/samhain_file
96 file=/etc/bind/zones/db.debian.net
97 file=/etc/exim4/bsmtp
98 <% if classes.include?("named::geodns") -%>
99 file=/etc/bind
100 file=/etc/bind/named.conf.acl
101 file=/etc/bind/named.conf.local
102 file=/etc/bind/geodns/named.conf.geo
103 file=/etc/bind/geodns/recvconf.files
104 <% end -%>
105 <% if classes.include?("named") -%>
106 file=/etc/bind/named.conf.options
107 <% end -%>
108
109 #
110 # There are files in /etc that might change, thus changing the directory
111 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
112 #
113 file=/etc
114 file=/etc/ssh
115 file=/etc/network/run
116 file=/etc/bind/zones
117 file=/etc/spamassassin/sa-update-keys
118
119 # These are the directories for the files we handle with puppet
120 file=/etc/apache2/conf.d
121 files=/etc/apache2/mods-enabled
122 file=/etc/samhain
123 file=/etc/munin
124 file=/etc/munin/plugins
125 file=/etc/munin/plugin-conf.d
126 file=/etc/exim4
127 file=/etc/exim4/ssl
128 file=/etc/apt
129 file=/etc/apt/apt.conf.d
130 file=/etc/apt/sources.list.d
131 file=/etc/default
132 file=/etc/logrotate.d
133 file=/etc/nagios
134 file=/etc/nagios/nrpe.d
135 file=/etc/nagios/obsolete-packages-ignore.d
136 file=/etc/bind/geodns
137 <% if nodeinfo['nagiosmaster'] -%>
138 file=/etc/nagios3/puppetconf.d
139 <% end -%>
140 file=/etc/puppet
141 file=/etc/cron.d
142 file=/usr/lib/nagios/plugins
143 file=/usr/sbin
144 file=/etc/monit
145 file=/etc/monit/monit.d
146 file=/etc/pam.d
147 file=/etc/sysctl.d
148 file=/etc/syslog-ng
149 file=/etc/ferm/
150 file=/etc/ferm/conf.d
151 file=/etc/ferm/dsa.d
152
153
154 [LogFiles]
155 ##
156 ## for these files, changes in signature, timestamps, and size are ignored 
157 ##
158 file=/var/run/utmp
159 file=/etc/motd
160
161
162
163 #####################################################################
164 #
165 # This would be the proper syntax for parts that should only be
166 #    included for certain hosts.
167 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
168 #    result still has the proper syntax for the config file.
169 # You may have any number of @HOSTNAME/@end brackets.
170 # HOSTNAME should be the fully qualified 'official' name 
171 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
172 #    No IP number - except if samhain cannot determine the 
173 #    fully qualified hostname.
174 #
175 # @HOSTNAME
176 # file=/foo/bar
177 # @end
178 #
179 # These are two examples for conditional inclusion/exclusion
180 # of a machine based on the output from 'uname -srm'
181 #
182 # $Linux:2.*.7:i666
183 # file=/foo/bar3
184 # $end
185 #
186 # !$Linux:2.*.7:i686
187 # file=/foo/bar2
188 # $end
189 #
190 #####################################################################
191
192 [GrowingLogFiles]
193 ##
194 ## for these files, changes in signature, timestamps, and increase in size
195 ##                  are ignored 
196 ##
197 file=/var/log/warn
198 file=/var/log/messages
199 file=/var/log/wtmp
200 file=/var/log/faillog
201 file=/var/log/auth.log
202 file=/var/log/daemon.log
203 file=/var/log/user.log
204 file=/var/log/kern.log
205 file=/var/log/syslog
206
207
208 [IgnoreAll]
209 ##
210 ## for these files, no modifications are reported
211 ##
212 ## This file might be created or removed by the system sometimes.
213 ##
214 <% case hoster when "ubcece", "darmstadt", "ftcollins", "grnet" then -%>
215 file=/etc/resolv.conf
216 <% end -%>
217 file=/etc/resolv.conf.pcmcia.save
218 file=/etc/nologin
219 file=/etc/postfix/debian.db
220 file=/etc/postfix/debian
221 file=/etc/ssh/ssh_known_hosts
222 file=/etc/ssh/ssh-rsa-shadow
223 file=/var/lib/misc/ssh-rsa-shadow
224 file=/etc/.da-backup.trace
225 file=/etc/postfix/debianhosts
226 file=/etc/postfix/debianhosts.db
227 file=/etc/blkid.tab
228 file=/etc/blkid.tab.old
229 file=/etc/resolv.conf.dhclient-new
230
231 # We handle these files with puppet - please to not be bothering us
232 file=/etc/timezone
233 file=/etc/motd.tail
234 file=/etc/ntp.conf
235 file=/etc/samhain/samhainrc
236 file=/etc/munin/munin-node.conf
237 file=/etc/munin/plugin-conf.d/munin-node
238 file=/etc/userdir-ldap.confc
239 file=/etc/exim4/blacklist
240 file=/etc/exim4/host_blacklist
241 file=/etc/exim4/callout_users
242 file=/etc/exim4/exim4.conf
243 file=/etc/exim4/grey_users
244 file=/etc/exim4/helo-check
245 file=/etc/exim4/locals
246 file=/etc/exim4/localusers
247 file=/etc/exim4/manualroute
248 file=/etc/exim4/rbllist
249 file=/etc/exim4/rhsbllist
250 file=/etc/exim4/submission-domains
251 file=/etc/exim4/virtualdomains
252 file=/etc/exim4/whitelist
253 file=/etc/exim4/local-settings.conf
254 file=/etc/exim4/ssl/ca.crt
255 file=/etc/exim4/ssl/ca.crl
256 file=/etc/exim4/ssl/thishost.crt
257 file=/etc/exim4/ssl/thishost.key
258 file=/etc/ssh/ssh_config
259 file=/etc/ssh/sshd_config
260 <%=
261 out=""
262 if not nodeinfo['heavy_exim'].empty?
263   out = '
264 file=/etc/exim4/surbl_whitelist.txt
265 file=/etc/exim4/exim_surbl.pl
266 file=/etc/exim4/ccTLD.txt
267 file=/etc/clamav-unofficial-sigs.conf
268 file=/etc/clamav-unofficial-sigs.dsa.conf
269 '
270 end
271 out
272 %>
273 file=/etc/munin/plugins/bind
274 file=/etc/munin/plugins/bind_views
275 file=/etc/munin/plugins/cpu
276 file=/etc/munin/plugins/df
277 file=/etc/munin/plugins/df_abs
278 file=/etc/munin/plugins/df_inode
279 file=/etc/munin/plugins/entropy
280 file=/etc/munin/plugins/forks
281 file=/etc/munin/plugins/interrupts
282 file=/etc/munin/plugins/iostat
283 file=/etc/munin/plugins/irqstats
284 file=/etc/munin/plugins/load
285 file=/etc/munin/plugins/memory
286 file=/etc/munin/plugins/ntp_offset
287 file=/etc/munin/plugins/ntp_states
288 file=/etc/munin/plugins/open_files
289 file=/etc/munin/plugins/open_inodes
290 file=/etc/munin/plugins/processes
291 file=/etc/munin/plugins/ps_apache2
292 file=/etc/munin/plugins/ps_exim4
293 file=/etc/munin/plugins/ps_vsftpd
294 file=/etc/munin/plugins/spamassassin
295 file=/etc/munin/plugins/swap
296 file=/etc/munin/plugins/uptime
297 file=/etc/munin/plugins/vmstat
298 file=/etc/munin/plugins/vfstpd
299 file=/etc/munin/plugins/apache_accesses
300 file=/etc/munin/plugins/apache_processes
301 file=/etc/munin/plugins/apache_volume
302 file=/etc/munin/plugins/apache_servers
303 file=/etc/munin/plugins/exim_mailqueue
304 file=/etc/munin/plugins/exim_mailstats
305 file=/etc/munin/plugins/postfix_mailqueue
306 file=/etc/munin/plugins/postfix_mailvolume
307 file=/etc/apache2/conf.d/ressource-limits
308 file=/etc/apache2/mods-enabled/info.conf
309 file=/etc/apache2/mods-enabled/info.load
310 file=/etc/apache2/mods-enabled/server.conf
311 file=/etc/apache2/mods-enabled/server.load
312 file=/etc/apache2/conf.d/server-status
313 file=/etc/apache2/conf.d/local-serverinfo
314 file=/etc/apt/preferences
315 file=/etc/apt/sources.list.d/volatile.list
316 file=/etc/apt/sources.list.d/security.list
317 file=/etc/apt/sources.list.d/buildd.list
318 file=/etc/apt/sources.list.d/debian.org.list
319 file=/etc/apt/sources.list.d/debian.restricted.list
320 file=/etc/apt/sources.list.d/debian.list
321 file=/etc/apt/sources.list.d/backports.org.list
322 file=/etc/apt/apt.conf.d/local-recommends
323 file=/etc/apt/apt.conf.d/local-pdiffs
324 file=/etc/puppet/puppet.conf
325 file=/etc/default/puppet
326 file=/etc/default/postgrey
327 file=/etc/logrotate.d/exim4-paniclog
328 file=/etc/logrotate.d/exim4-base
329 file=/etc/logrotate.d/syslog-ng
330 file=/etc/syslog-ng/syslog-ng.conf
331 file=/usr/sbin/dsa-update-apt-status
332 file=/usr/sbin/dsa-update-samhain-status
333 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
334 file=/etc/nagios/nrpe.d/debianorg.cfg
335 file=/etc/nagios/obsolete-packages-ignore
336 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
337 file=/usr/lib/nagios/plugins/dsa-check-packages
338 file=/usr/lib/nagios/plugins/dsa-check-soas
339 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
340 file=/usr/lib/nagios/plugins/dsa-check-samhain
341 file=/usr/lib/nagios/plugins/dsa-check-statusfile
342 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
343 file=/usr/lib/nagios/plugins/dsa-check-config
344 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
345 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
346 file=/usr/lib/nagios/plugins/dsa-check-puppet
347 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
348 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
349 file=/usr/lib/nagios/plugins/dsa-check-dabackup
350 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
351 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
352 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
353 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
354 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
355 file=/etc/sudoers
356 file=/etc/sysctl.d/mmap_min_addr.conf
357 file=/etc/pam.d/sudo
358 file=/etc/monit/monitrc
359 file=/etc/monit/monit.d/01puppet
360 file=/etc/monit/monit.d/00debian.org
361 file=/etc/cron.d/dsa-puppet-stuff
362 file=/etc/cron.d/dsa-buildd
363 <% if nodeinfo['nagiosmaster'] -%>
364 file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
365 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
366 file=/etc/nagios3/puppetconf.d/auto-services.cfg
367 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
368 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
369 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg
370 <% end -%>
371 <% if nodeinfo['muninmaster'] -%>
372 file=/etc/munin/munin.conf
373 <% end -%>
374 <% if nodeinfo['puppetmaster'] -%>
375 dir=8/etc/puppet
376 <% end -%>  
377 <% if classes.include?('named::geodns') -%>
378 dir=1/etc/bind/geodns
379 <% end -%>
380 <% if classes.include?('named::secondary') -%>
381 dir=1/etc/bind
382 file=/etc/bind/named.conf.debian-zones
383 <% end -%>
384 <% if fqdn == "dijkstra.debian.org" -%>
385 dir=4/etc/dsa-kvm
386 <% end -%>
387
388 <% if nodeinfo['buildd'] -%>
389 dir=3/etc/lvm
390 <% end -%>
391 dir=1/etc/ferm/dsa.d
392 file=/etc/ferm/conf.d/me.conf
393 file=/etc/ferm/conf.d/defs.conf
394 file=/etc/ferm/ferm.conf
395
396 [IgnoreNone]
397 ##
398 ## for these files, all modifications (even access time) are reported
399 ##    - you may create some interesting-looking file (like /etc/safe_passwd),
400 ##      just to watch whether someone will access it ...
401 ##
402
403 [Prelink]
404 ##
405 ## Use for prelinked files or directories holding them
406 ##
407
408
409 [ReadOnly]
410 ##
411 ## for these files, only access time is ignored
412 ##
413 dir=/usr/bin
414 dir=/bin
415 dir=/boot
416 #
417 # SuSE (old) has the boot init scripts in /sbin/init.d/*, 
418 # so we go 3 levels deep
419 #
420 dir=3/sbin
421 dir=/usr/sbin
422 dir=/lib
423 dir=3/usr/lib
424 #
425 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*, 
426 #        so we go 3 levels deep there too
427 #
428 dir=3/etc
429
430 # Various directories / files that may include / be SUID/SGID binaries
431 #
432 #
433 file=/usr/lib/pt_chown
434 # X11, in Debian X7 this is now a symlink
435 #dir=/usr/X11R6/bin
436 #dir=/usr/X11R6/lib/X11/xmcd/bin
437 # Apache:
438 #file=/usr/lib/apache/suexec
439 #file=/usr/lib/apache/suexec.disabled
440 # Extra directories:
441 #dir=/opt/gnome/bin
442 #dir=/opt/kde/bin
443
444 [User0]
445 [User1]
446 ## User0 and User1 are sections for files/dirs with user-definable checking
447 ## (see the manual) 
448
449
450 [EventSeverity]
451 ##
452 ## Here you can assign severities to policy violations.
453 ## If this severity exceeds the treshold of a log facility (see below),
454 ## a policy violation will be logged to that facility.
455 ##
456 ## Severity for verification failures.
457 ##
458 # SeverityReadOnly=crit
459 # SeverityLogFiles=crit
460 # SeverityGrowingLogs=crit
461 # SeverityIgnoreNone=crit
462 # SeverityAttributes=crit
463 # SeverityUser0=crit
464 # SeverityUser1=crit
465
466 # Default behaviour
467 SeverityReadOnly=crit
468 SeverityLogFiles=crit
469 SeverityGrowingLogs=warn
470 SeverityIgnoreNone=crit
471 SeverityAttributes=crit
472
473
474 ##
475 ## We have a file in IgnoreAll that might or might not be present.
476 ## Setting the severity to 'info' prevents messages about deleted/new file.
477 ##
478 # SeverityIgnoreAll=crit
479 SeverityIgnoreAll=info
480
481 ## Files : file access problems
482 # SeverityFiles=crit
483
484 ## Dirs  : directory access problems
485 # SeverityDirs=crit
486
487 ## Names : suspect (non-printable) characters in a pathname
488 # SeverityNames=crit
489
490 # Default behaviour
491 SeverityFiles=crit
492 SeverityDirs=crit
493 SeverityNames=warn
494
495
496 [Log]
497 ##
498 ## Switch on/OFF log facilities and set their threshold severity
499 ##
500 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
501 ## 'mark' is used for timestamps.
502 ##
503 ##
504 ## Use 'none' to SWITCH OFF a log facility
505 ## 
506 ## By default, everything equal to and above the threshold is logged.
507 ## The specifiers '*', '!', and '=' are interpreted as  
508 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does, 
509 ## at least on Linux). Examples:
510 ## MailSeverity=*
511 ## MailSeverity=!warn
512 ## MailSeverity==crit
513
514 ## E-mail
515 ##
516 # MailSeverity=none
517
518 ## Console
519 ##
520 # PrintSeverity=info
521
522 ## Logfile
523 ##
524 # LogSeverity=mark
525
526 ## Syslog
527 ##
528 # SyslogSeverity=none
529
530 ## Remote server (yule)
531 ##
532 # ExportSeverity=none
533
534 ## External script or program
535 ##
536 # ExternalSeverity = none
537
538 ## Logging to a database
539 ##
540 # DatabaseSeverity = none
541
542 # Default behaviour
543 MailSeverity=crit
544 PrintSeverity=none
545 LogSeverity=info
546 SyslogSeverity=alert
547 ExportSeverity=none
548
549
550
551
552
553 #####################################################
554 #
555 # Optional modules
556 #
557 #####################################################
558
559 # [SuidCheck]
560 ##
561 ## --- Check the filesystem for SUID/SGID binaries
562 ## 
563
564 ## Switch on
565 #
566 # SuidCheckActive = yes
567
568 ## Interval for check (seconds)
569 #
570 # SuidCheckInterval = 7200
571
572 ## Alternative: crontab-like schedule
573 #
574 # SuidCheckSchedule = NULL
575  
576 ## Directory to exclude 
577 #
578 # SuidCheckExclude = NULL
579
580 ## Limit on files per second (0 == no limit)
581 #
582 # SuidCheckFps = 0
583
584 ## Alternative: yield after every file
585 #
586 # SuidCheckYield = no
587
588 ## Severity of a detection
589 #
590 # SeveritySuidCheck = crit
591
592 ## Quarantine SUID/SGID files if found
593 #
594 # SuidCheckQuarantineFiles = yes
595
596 ## Method for Quarantining files:
597 #  0 - Delete or truncate the file.
598 #  1 - Remove SUID/SGID permissions from file.
599 #  2 - Move SUID/SGID file to quarantine dir.
600 #
601 # SuidCheckQuarantineMethod = 0
602
603 ## For method 1 and 3, really delete instead of truncating
604
605 # SuidCheckQuarantineDelete = yes
606
607 # [Kernel]
608 ##
609 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only) 
610 ##
611
612 ## Switch on/off
613 #
614 KernelCheckActive = True
615
616 ## Check interval (seconds); btw., the check is VERY fast
617 #
618 # KernelCheckInterval = 300
619
620 ## Severity
621 #
622 # SeverityKernel = crit
623
624
625 # [Utmp]
626 ##
627 ## --- Logging of login/logout events
628 ##
629
630 ## Switch on/off
631 #
632 LoginCheckActive = True
633
634 ## Severity for logins, multiple logins, logouts
635
636 # SeverityLogin=info
637 # SeverityLoginMulti=warn
638 # SeverityLogout=info
639
640 ## Interval for login/logout checks
641 #
642 # LoginCheckInterval = 300
643
644
645 # [Database]
646 ##
647 ## --- Logging to a relational database
648 ##
649
650 ## Database name
651 #
652 # SetDBName = samhain
653
654 ## Database table
655 #
656 # SetDBTable = log
657
658 ## Database user
659 #
660 # SetDBUser = samhain
661
662 ## Database password
663 #
664 # SetDBPassword = (default: none)
665
666 ## Database host
667 #
668 # SetDBHost = localhost
669
670 ## Log the server timestamp for received messages
671 #
672 # SetDBServerTstamp = True
673
674 ## Use a persistent connection
675 #
676 # UsePersistent = True
677
678 # [External]
679 ##
680 ## Interface to call external scripts/programs for logging
681 ##
682
683 ## The absolute path to the command
684 ## - Each invocation of this directive will end the definition of the
685 ##   preceding command, and start the definition of 
686 ##   an additional, new command
687 #
688 # OpenCommand = (no default)
689
690 ## Type (log or rv)
691 ## - log for log messages, srv for messages received by the server
692 #
693 # SetType = log
694
695 ## The command (full command line) to execute
696 #
697 # SetCommandLine = (no default)
698
699 ## The environment (KEY=value; repeat for more)
700 #
701 # SetEnviron = TZ=(your timezone)
702
703 ## The TIGER192 checksum (optional)
704 #
705 # SetChecksum = (no default)
706
707 ## User who runs the command
708 #
709 # SetCredentials = (default: samhain process uid)
710
711 ## Words not allowed in message
712 #
713 # SetFilterNot = (none)
714
715 ## Words required (ALL of them)
716 #
717 # SetFilterAnd = (none)
718
719 ## Words required (at least one)
720 #
721 # SetFilterOr = (none)
722
723 ## Deadtime between consecutive calls
724 #
725 # SetDeadtime = 0
726
727 ## Add default environment (HOME, PATH, SHELL)
728 #
729 # SetDefault = no
730
731
732 #####################################################
733 #
734 # Miscellaneous configuration options
735 #
736 #####################################################
737
738 [Misc]
739
740 ## whether to become a daemon process
741 ## (this is not honoured on database initialisation)
742 #
743 # Daemon = no
744 Daemon = yes
745
746 ## whether to test signature of files (init/check/none)
747 ## - if 'none', then we have to decide this on the command line -
748 #
749 # ChecksumTest = none
750 ChecksumTest=check
751
752 ## whether to drop linux capabilities that are not required
753 ## - will make a root process a 'mere mortal' in many respects
754 #
755 # UseCaps = yes
756
757 ## Set nice level (-19 to 19, see 'man nice'),
758 ## and I/O limit (kilobytes per second; 0 == off)
759 ## to reduce load on host.
760 #
761 # SetNiceLevel = 0
762 # SetIOLimit = 0
763
764 ## The version string to embed in file signature databases
765 #
766 # VersionString = NULL
767
768 ## Interval between time stamp messages
769 #
770 # SetLoopTime = 60
771 SetLoopTime = 600
772
773 ## Interval between file checks 
774 #
775 # SetFileCheckTime = 600
776 SetFileCheckTime = 7200
777
778 ## Alternative: crontab-like schedule
779 #
780 # FileCheckScheduleOne = NULL
781
782 ## Alternative: crontab-like schedule(2)
783 #
784 # FileCheckScheduleTwo = NULL
785
786 ## Report only once on modified fles 
787 ## Setting this to 'FALSE' will generate a report for any policy 
788 ## violation (old and new ones) each time the daemon checks the file system.
789 #
790 # ReportOnlyOnce = True
791
792 ## Report in full detail
793 #
794 # ReportFullDetail = False
795
796 ## Report file timestamps in local time rather than GMT
797 #
798 # UseLocalTime = No
799
800 ## The console device (can also be a file or named pipe)
801 ## - There are two console devices. Accordingly, you can use
802 ##   this directive a second time to set the second console device.
803 ##   If you have not defined the second device at compile time,
804 ##   and you don't want to use it, then:
805 ##   setting it to /dev/null is less effective than just leaving
806 ##   it alone (setting to /dev/null will waste time by opening
807 ##   /dev/null and writing to it)
808 #
809 # SetConsole = /dev/console
810
811 ## Activate the SysV IPC message queue
812 #
813 # MessageQueueActive = False
814
815
816 ## If false, skip reverse lookup when connecting to a host known 
817 ## by name rather than IP address (i.e. trust the DNS)
818 #
819 # SetReverseLookup = True
820
821 ## --- E-Mail ---
822
823 # Only highest-level (alert) reports will be mailed immediately,
824 # others will be queued. Here you can define, when the queue will
825 # be flushed (Note: the queue is automatically flushed after
826 # completing a file check).
827 #
828 SetMailTime = 86400
829
830 ## Maximum number of mails to queue
831 #
832 SetMailNum = 10
833
834 ## Recipient (max. 8)
835 #
836 SetMailAddress=samhain-reports@debian.org
837
838 ## Mail relay (IP address)
839 <% if nodeinfo['smarthost'].empty? -%>
840 SetMailRelay = master.debian.org
841 <% else -%>
842 SetMailRelay = localhost
843 <% end -%>
844
845 ## Custom subject format
846 #
847 MailSubject = [Samhain at %H] %T: %S
848
849 ## --- end E-Mail ---
850
851 ## Path to the prelink executable
852 #
853 # SetPrelinkPath = /usr/sbin/prelink
854
855 ## TIGER192 checksum of the prelink executable
856 #
857 # SetPrelinkChecksum = (no default)
858
859
860 ## Path to the executable. If set, will be checksummed after startup
861 ## and before exit.
862 #
863 # SamhainPath = (no default)
864
865
866 ## The IP address of the log server
867 #
868 # SetLogServer = (default: compiled-in)
869
870 ## The IP address of the time server
871 #
872 # SetTimeServer = (default: compiled-in)
873
874 ## Trusted Users (comma delimited list of user names) 
875 #
876 # TrustedUser = (no default; this adds to the compiled-in list)
877
878 ## Path to the file signature database
879 #
880 # SetDatabasePath = (default: compiled-in)
881
882 ## Path to the log file
883 #
884 # SetLogfilePath = (default: compiled-in)
885
886 ## Path to the PID file
887 #
888 # SetLockPath = (default: compiled-in)
889
890
891 ## The digest/checksum/hash algorithm
892 #
893 # DigestAlgo = TIGER192
894
895
896 ## Custom format for message header. 
897 ## CAREFUL if you use XML logfile format.
898 ##
899 ## %S severity
900 ## %T timestamp
901 ## %C class
902 ##
903 ## %F source file
904 ## %L source line
905 #
906 # MessageHeader="%S %T "
907
908
909 ## Don't log path to config/database file on startup
910 #
911 # HideSetup = False
912
913 ## The syslog facility, if you log to syslog
914 #
915 # SyslogFacility = LOG_AUTHPRIV
916 SyslogFacility=LOG_LOCAL2
917
918 ## The message authentication method
919 ## - If you change this, you *must* change it
920 ##   on client *and* server
921 #
922 # MACType = HMAC-TIGER
923
924
925 ## everything below is ignored
926 [EOF]
927
928 #####################################################################
929 # This would be the proper syntax for parts that should only be
930 #    included for certain hosts.
931 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
932 #    result still has the proper syntax for the config file.
933 # You may have any number of @HOSTNAME/@end brackets.
934 # HOSTNAME should be the fully qualified 'official' name 
935 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
936 #    No IP number - except if samhain cannot determine the 
937 #    fully qualified hostname.
938 #
939 # @HOSTNAME
940 # file=/foo/bar
941 # @end
942 #
943 # These are two examples for conditional inclusion/exclusion
944 # of a machine based on the output from 'uname -srm'
945 # $Linux:2.*.7:i666
946 # file=/foo/bar3
947 # $end
948 #
949 # !$Linux:2.*.7:i686
950 # file=/foo/bar2
951 # $end
952 #
953 #####################################################################