Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
massyn authored Jul 25, 2018
1 parent da85558 commit 550186d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
20 changes: 20 additions & 0 deletions remediate/remediate_4.2.1.2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
# ** AUTO GENERATED **

# 4.2.1.2 - Ensure logging is configured (Not Scored)

echo '*.emerg :omusrmsg:*' >> /etc/rsyslog.d/CIS.conf
echo 'mail.* -/var/log/mail' >> /etc/rsyslog.d/CIS.conf
echo 'mail.info -/var/log/mail.info' >> /etc/rsyslog.d/CIS.conf
echo 'mail.warning -/var/log/mail.warn' >> /etc/rsyslog.d/CIS.conf
echo 'mail.err /var/log/mail.err' >> /etc/rsyslog.d/CIS.conf
echo 'news.crit -/var/log/news/news.crit' >> /etc/rsyslog.d/CIS.conf
echo 'news.err -/var/log/news/news.err' >> /etc/rsyslog.d/CIS.conf
echo 'news.notice -/var/log/news/news.notice' >> /etc/rsyslog.d/CIS.conf
echo '*.=warning;*.=err -/var/log/warn' >> /etc/rsyslog.d/CIS.conf
echo '*.crit /var/log/warn' >> /etc/rsyslog.d/CIS.conf
echo '*.*;mail.none;news.none -/var/log/messages' >> /etc/rsyslog.d/CIS.conf
echo 'local0,local1.* -/var/log/localmessages' >> /etc/rsyslog.d/CIS.conf
echo 'local2,local3.* -/var/log/localmessages' >> /etc/rsyslog.d/CIS.conf
echo 'local4,local5.* -/var/log/localmessages' >> /etc/rsyslog.d/CIS.conf
echo 'local6,local7.* -/var/log/localmessages' >> /etc/rsyslog.d/CIS.conf
23 changes: 23 additions & 0 deletions remediate/remediate_4.2.2.2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh
# ** AUTO GENERATED **

# 4.2.2.2 - Ensure logging is configured (Not Scored)

echo "log { source(src); source(chroots); filter(f_console); destination(console); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_console); destination(xconsole); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_newscrit); destination(newscrit); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_newserr); destination(newserr); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_newsnotice); destination(newsnotice); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_mailinfo); destination(mailinfo); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_mailwarn); destination(mailwarn); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_mailerr); destination(mailerr); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_mail); destination(mail); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_acpid); destination(acpid); flags(final); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_acpid_full); destination(devnull); flags(final); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_acpid_old); destination(acpid); flags(final); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_netmgm); destination(netmgm); flags(final); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_local); destination(localmessages); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_messages); destination(messages); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_iptables); destination(firewall); };" >> /etc/syslog-ng/syslog-ng.conf
echo "log { source(src); source(chroots); filter(f_warn); destination(warn); };" >> /etc/syslog-ng/syslog-ng.conf

0 comments on commit 550186d

Please sign in to comment.