]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Changed Syslog to latest 2.x release
authorManiacikarus <maniacikarus@ipfire.org>
Sat, 17 Jan 2009 11:35:18 +0000 (12:35 +0100)
committerManiacikarus <maniacikarus@ipfire.org>
Sat, 17 Jan 2009 11:35:18 +0000 (12:35 +0100)
config/syslog-ng/syslog-ng.conf
lfs/syslog-ng

index a5cd8e21b254193f5fee0be2be2db34b905ce417..df37d3cd7d5b3588e86425a2905316c253039a8e 100644 (file)
-@version:3.0
-options { long_hostnames(off); flush_lines(0); stats_freq(3600); };
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007, 2008, 2009 Michael Tremer & Christian Schmidt           #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
-source src { unix-stream("/dev/log"); internal(); };
-source kernsrc { file("/proc/kmsg"); };
+#@version:3.0
 
-destination messages { file("/var/log/messages"); };
-destination console { usertty("root"); };
-destination console_all { file("/dev/tty12"); };
+options {
+       flush_lines(0);
+       stats_freq(3600);
+       time_reopen (10);
+       log_fifo_size (1000);
+       long_hostnames (off);
+       use_dns (no);
+       use_fqdn (no);
+       create_dirs (no);
+       keep_hostname (yes);
+       };
 
-destination ids { program("/usr/sbin/ids-block"); };
+source sys {
+       file ("/proc/kmsg" log_prefix("kernel: "));
+       unix-stream ("/dev/log");
+       internal();
+       };
 
-#destination loghost { tcp("10.0.0.1" port(514)); };
+destination messages {
+       file("/var/log/messages");
+       };
+destination boot {
+       file("/var/log/boot.log");
+       };
+destination console {
+       usertty("root");
+       };
+destination console_all {
+       file("/dev/tty12");
+       };
+destination ids {
+       program("/usr/sbin/ids-block");
+       };
+destination loghost {
+       tcp("10.0.0.1" port(514));
+       };
 
-filter f_syslog { not facility(authpriv, mail) and not match(ppp.*LCP); };
-filter f_cron { facility(cron); };
-filter f_daemon { facility(daemon); };
-filter f_kern { facility(kern); };
-filter f_mail { facility(mail) and not match (imapd); };
-filter f_messages { not facility(auth, authpriv, mail, news); };
-filter f_emergency { level(emerg); };
+filter f_boot {
+       facility(local7);
+       };
+filter f_cron {
+       facility(cron);
+       };
+filter f_daemon {
+       facility(daemon);
+       };
+filter f_kern {
+       facility(kern);
+       };
+filter f_messages {
+       not facility(mail, news, cron);
+       };
+filter f_emergency {
+       level(emerg);
+       };
+filter f_ids {
+       facility(auth)
+       and message("snort")
+       and message("Priority: 1");
+       };
+filter f_ssh {
+       program("sshd.*")
+       and message("Failed password for root from");
+       };
 
-filter f_ids { facility(auth) and match("snort") and match("Priority: 1"); };
-filter f_ssh { program("sshd.*") and match("Failed password for root from"); };
-
-log { source(src); source(kernsrc); filter(f_messages); destination(messages); };
-log { source(src); source(kernsrc); filter(f_emergency); destination(console); };
-log { source(src); source(kernsrc); destination(console_all); };
-
-log { source(src); filter(f_ids); destination(ids); };
-log { source(src); filter(f_ssh); destination(ids); };
+log {
+       source(sys);
+       filter(f_messages);
+       destination(messages);
+       };
+log {
+       source(sys);
+       filter(f_emergency);
+       destination(console);
+       };
+log {
+       source(sys);
+       filter(f_boot);
+       destination(boot);
+       };
+log {
+       source(sys);
+       destination(console_all);
+       };
+log {
+       source(sys);
+       filter(f_ids);
+       destination(ids);
+       };
+log {
+       source(sys);
+       filter(f_ssh);
+       destination(ids);
+       };
index 6551f16ca53da22d2cf209cd2950ab9002cc6db0..13313084b139a2e42a1950353dc67d2fa73540b9 100644 (file)
@@ -25,7 +25,7 @@
 include Config
 
 PKG_NAME   = syslog-ng
-VER        = 3.0.1
+VER        = 2.1.3
 PKG_VER    = 0
 
 THISAPP    = $(PKG_NAME)-$(VER)
@@ -88,8 +88,9 @@ $(OBJECT): $(objects)
                        --enable-dynamic-linking \
                        --disable-sql \
                        --disable-pcre \
+                       --with-pidfile-dir=/var/run \
                        --disable-ssl
-       cd $(DIR_APP) && make #$(PARALLELISMFLAGS)
+       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
        cd $(DIR_APP) && make install
 
        -mkdir -pv /etc/$(PKG_NAME)