Skip to content
Mateusz Piotrowski edited this page Aug 23, 2016 · 2 revisions

No Internet connection

Static IP for Host-only VM network

Build audit-userspace

Get the source code

curl -O http://people.redhat.com/sgrubb/audit/audit-2.6.5.tar.gz
gzip -d audit-2.6.5.tar.gz
tar xf audit-2.6.5.tar
cd audit-2.6.5

Install

yum install libtool tcp_wrappers-devel openldap-devel python-devel libcap-ng-devel swig
./configure --sbindir=/sbin --with-python=yes --with-libwrap --enable-gssapi-krb5=yes --with-libcap-ng=yes
make
make install

Reference to install fixes

How to find out if I succeed?

# Stop auditd.
service auditd stop
# Backup old logs.
mv /var/log/audit/audit.log /var/log/audit/audit2.log
# Start auditd.
service auditd start
# Check out the record starting with `type=DAEMON_START`.
# It has a field called ver which value is the auditd's version.
head /var/log/audit/audit.log

Install the latest kernel

http://www.ostechnix.com/install-linux-kernel-4-4-5-centos-ubuntu/

Configure auditd

https://www.digitalocean.com/community/tutorials/how-to-write-custom-system-audit-rules-on-centos-7

  • Add the rules to /etc/audit/rules.d/audit.rules to make them permanent.

Configure audisp

  • The NOLOG value of log_format in /etc/audit/auditd.conf is deprecated.

Clone this wiki locally