Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
auditdistd [2012/03/18 02:37] – PawelJakubDawidekauditdistd [2018/07/17 21:40] (current) – add to CategoryHowTo MateuszPiotrowski
Line 10: Line 10:
  
 One of the key purposes of logging security events is postmortem analysis in One of the key purposes of logging security events is postmortem analysis in
-case of system compromise. Currently the kernel can push audit records directly +case of system compromise. Currently, the kernel can push audit records directly 
-into a file or made them available through /dev/auditpipe device. Because audit+into a file or make them available through the /dev/auditpipe device. Because audit
 logs are stored locally by the kernel, an attacker has access to them once the logs are stored locally by the kernel, an attacker has access to them once the
 system is compromised, which enables him to remove trails of his activity. system is compromised, which enables him to remove trails of his activity.
Line 66: Line 66:
 <code> <code>
 # openssl req -x509 -nodes -newkey rsa:4096 -days 1825 -batch \ # openssl req -x509 -nodes -newkey rsa:4096 -days 1825 -batch \
-        -out /etc/auditdistd.cert.pem -keyout /etc/auditdistd.key.pem +        -out /etc/security/auditdistd.cert.pem \ 
-# chmod 0600 /etc/auditdistd.key.pem /etc/auditdistd.cert.pem +        -keyout /etc/security/auditdistd.key.pem 
-# chown root:wheel /etc/auditdistd.key.pem /etc/auditdistd.cert.pem+# chmod 0600 /etc/security/auditdistd.key.pem /etc/security/auditdistd.cert.pem 
 +# chown root:wheel /etc/security/auditdistd.key.pem /etc/security/auditdistd.cert.pem
 </code> </code>
  
-Print certificate public key's finger print is a form ready to be pasted into sender's configuration file:+Print certificate public key's finger print in a form ready to be pasted into sender's configuration file:
  
 <code> <code>
-# openssl x509 -in /etc/auditdistd.cert.pem -noout -fingerprint -sha256 | \+# openssl x509 -in /etc/security/auditdistd.cert.pem -noout -fingerprint -sha256 | \
         awk -F '[ =]' '{printf("%s=%s\n", $1, $3)}'         awk -F '[ =]' '{printf("%s=%s\n", $1, $3)}'
 SHA256=8F:0A:FC:8A:3D:09:80:AF:D9:AA:38:CC:8A:86:53:E6:8F:B6:1C:55:30:14:D7:F9:AA:8B:3E:73:CD:F5:76:2B SHA256=8F:0A:FC:8A:3D:09:80:AF:D9:AA:38:CC:8A:86:53:E6:8F:B6:1C:55:30:14:D7:F9:AA:8B:3E:73:CD:F5:76:2B
Line 86: Line 87:
 </code> </code>
  
-Create /etc/auditdistd.conf configuration file:+Create /etc/security/auditdistd.conf configuration file:
  
 <code> <code>
Line 102: Line 103:
  
 <code> <code>
-# chmod 600 /etc/auditdistd.conf +# chmod 600 /etc/security/auditdistd.conf 
-# chown root:wheel /etc/auditdistd.conf+# chown root:wheel /etc/security/auditdistd.conf
 </code> </code>
  
Line 167: Line 168:
 </code> </code>
  
-Create /etc/auditdistd.conf configuration file:+Create /etc/security/auditdistd.conf configuration file:
  
 <code> <code>
Line 182: Line 183:
  
 <code> <code>
-# chmod 600 /etc/auditdistd.conf +# chmod 600 /etc/security/auditdistd.conf 
-# chown root:wheel /etc/auditdistd.conf+# chown root:wheel /etc/security/auditdistd.conf
 </code> </code>
  
Line 197: Line 198:
 /etc/rc.d/auditdistd start /etc/rc.d/auditdistd start
 </code> </code>
 +
 +----
 +
 +{{tag>HowTo}}
  
  • auditdistd.1332038237.txt.gz
  • Last modified: 2012/03/18 02:37
  • by PawelJakubDawidek