Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


aide_synology

This is an old revision of the document!


AIDE - integrity check NAS share

  • Install AIDE on CentOS 7
    yum install aide
  • Configure chrony (or ntpd)
  • Configure AIDE /etc/aide.conf
    @@define DBDIR /var/lib/aide
    @@define LOGDIR /var/log/aide
    
    database=file:@@{DBDIR}/aide.db.gz
    
    database_out=file:@@{DBDIR}/aide.db.new.gz
    
    gzip_dbout=yes
    
    verbose=5
    
    report_url=file:@@{LOGDIR}/aide.log
    report_url=stdout
    
    
    
    NAS = s+sha256
    
    /mnt/nas/ NAS
    !/mnt/nas/.*@eaDir.*
    !/mnt/nas/.*\.AppleDouble.*
    !/mnt/nas/.*\.DS_Store.*
    !/mnt/nas/.*Network\ Trash\ Folder.*
    !/mnt/nas/.*Temporary\ Items.*
    !/mnt/nas/.*\.TemporaryItems.*
  • Generate new database:
    aide --init
aide_synology.1420555993.txt.gz · Last modified: 2015/01/06 14:53 by admin