Correct configuration for Ubuntu 12.04 (log file locations)
Posted: 03 Jun 2013, 20:18
Hi,
I recently installed CSF on two servers, one is a Debian Wheezy (7.0) and the other Ubuntu Precise (12.04). I noticed on the Debian server that I have two files ("iptables_log" and "lfdmain") in the "/etc/csf/stats/" folder but these files are not present on the Ubuntu server. I did some further digging and I noticed that on the Debian server I have a "/var/log/messages" file but on the Ubuntu server this log file is missing.
I see in my "csf.conf" the following log files are specified. Since "/var/log/messages" is missing on the Ubuntu server should I point those to "/var/log/syslog" instead? Does this file contain everything CSF needs to function correctly? Also are there any other settings that I need to look at for CSF to be fully functional on my Ubuntu 12.04 server? Any advice is appreciated.
Mannekino
I recently installed CSF on two servers, one is a Debian Wheezy (7.0) and the other Ubuntu Precise (12.04). I noticed on the Debian server that I have two files ("iptables_log" and "lfdmain") in the "/etc/csf/stats/" folder but these files are not present on the Ubuntu server. I did some further digging and I noticed that on the Debian server I have a "/var/log/messages" file but on the Ubuntu server this log file is missing.
I see in my "csf.conf" the following log files are specified. Since "/var/log/messages" is missing on the Ubuntu server should I point those to "/var/log/syslog" instead? Does this file contain everything CSF needs to function correctly? Also are there any other settings that I need to look at for CSF to be fully functional on my Ubuntu 12.04 server? Any advice is appreciated.
- HTACCESS_LOG = "/var/log/apache2/error.log"
- MODSEC_LOG = "/var/log/apache2/error.log"
- SSHD_LOG = "/var/log/auth.log"
- SU_LOG = "/var/log/messages"
- FTPD_LOG = "/var/log/messages"
- SMTPAUTH_LOG = "/var/log/secure"
- POP3D_LOG = "/var/log/mail.log"
- IMAPD_LOG = "/var/log/mail.log"
- IPTABLES_LOG = "/var/log/messages"
- SUHOSIN_LOG = "/var/log/messages"
- BIND_LOG = "/var/log/messages"
- SYSLOG_LOG = "/var/log/messages"
Mannekino