From 036af2102da8ab33e139fb1cde2fef2e9926f36a Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 27 Apr 2003 07:47:26 +0000 Subject: This patch fixes so the pathes in ulogd.conf matches what you gave to configure.. (Magnus Boden) --- ulogd/Makefile.in | 9 ++++-- ulogd/ulogd.conf | 82 -------------------------------------------------- ulogd/ulogd.conf.in | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 84 deletions(-) delete mode 100644 ulogd/ulogd.conf create mode 100644 ulogd/ulogd.conf.in (limited to 'ulogd') diff --git a/ulogd/Makefile.in b/ulogd/Makefile.in index 6038076..9475ab5 100644 --- a/ulogd/Makefile.in +++ b/ulogd/Makefile.in @@ -31,12 +31,17 @@ distrib: recurse: @for d in $(SUBDIRS); do if ! make -C $$d; then exit 1; fi; done -ulogd: ulogd.c $(LIBIPULOG) include/ulogd/ulogd.h conffile/conffile.o $(LIBIPULOG)/libipulog.a +ulogd: ulogd.c $(LIBIPULOG) include/ulogd/ulogd.h conffile/conffile.o $(LIBIPULOG)/libipulog.a ulogd.conf $(CC) $(CFLAGS) -rdynamic $< conffile/conffile.o $(LIBIPULOG)/libipulog.a -o $@ $(LIBS) +edit = sed -e 's,@libdir\@,$(ULOGD_LIB_PATH),g' + +ulogd.conf: ulogd.conf.in + $(edit) ulogd.conf.in > ulogd.conf + clean: # rm -f ulogd *.o extensions/*.o extensions/*.so conffile/*.o - rm -f ulogd ulogd.o + rm -f ulogd ulogd.o ulogd.conf @for d in $(SUBDIRS); do if ! make -C $$d $@; then exit 1; fi; done distclean: clean diff --git a/ulogd/ulogd.conf b/ulogd/ulogd.conf deleted file mode 100644 index e06a3ae..0000000 --- a/ulogd/ulogd.conf +++ /dev/null @@ -1,82 +0,0 @@ -# Example configuration for ulogd -# $Id: ulogd.conf,v 1.7 2002/07/30 07:04:12 laforge Exp $ -# - -###################################################################### -# GLOBAL OPTIONS -###################################################################### - -# netlink multicast group (the same as the iptables --ulog-nlgroup param) -nlgroup 1 - -# logfile for status messages -logfile /var/log/ulogd.log - -# loglevel: debug(1), info(3), notice(5), error(7) or fatal(8) -loglevel 5 - -# libipulog receive buffer size (should be at least the size of the -# in-kernel buffer (ipt_ULOG.o 'nlbufsiz' parameter) -bufsize 65535 - -###################################################################### -# PLUGIN OPTIONS -###################################################################### - -# We have to configure and load all the plugins we want to use - -# general rules: -# 1. specify the options FIRST, then load the plugin -# 2. interpreter plugins have to precede output plugins - - -# -# ulogd_BASE.so - interpreter plugin for basic IPv4 header fields -# you will always need this -plugin /usr/local/lib/ulogd/ulogd_BASE.so - - -# -# ulogd_LOGEMU.so - simple syslog emulation target -# -# where to write to -syslogfile /var/log/ulogd.syslogemu -# do we want to fflush() the file after each write? -syslogsync 1 -# load the plugin -plugin /usr/local/lib/ulogd/ulogd_LOGEMU.so - - -# -# ulogd_OPRINT.so: file for packet dumping -# -# where to write the log -dumpfile /var/log/ulogd.pktlog -# load the plugin (remove the '#'if you want to enable it -#plugin /usr/local/lib/ulogd/ulogd_OPRINT.so - - -# -# ulogd_MYSQL.so: optional logging into a MySQL database -# -# database information -mysqltable ulog -mysqlpass changeme -mysqluser laforge -mysqldb ulogd -mysqlhost localhost -# load the plugin (remove the '#' if you want to enable it) -#plugin /usr/local/lib/ulogd/ulogd_MYSQL.so - - -# -# ulogd_PGSQL.so: optional logging into a PostgreSQL database -# -# database information -pgsqltable ulog -pgsqlpass -pgsqluser postgres -pgsqldb ulogd -pgsqlhost localhost -#load the plugin (remove the '#' if you want to enable it) -#plugin /usr/local/lib/ulogd/ulogd_PGSQL.so diff --git a/ulogd/ulogd.conf.in b/ulogd/ulogd.conf.in new file mode 100644 index 0000000..c1b3bbb --- /dev/null +++ b/ulogd/ulogd.conf.in @@ -0,0 +1,86 @@ +# Example configuration for ulogd +# $Id: ulogd.conf,v 1.8 2002/07/30 07:15:54 laforge Exp $ +# + +###################################################################### +# GLOBAL OPTIONS +###################################################################### + +# netlink multicast group (the same as the iptables --ulog-nlgroup param) +nlgroup 1 + +# logfile for status messages +logfile /var/log/ulogd.log + +# loglevel: debug(1), info(3), notice(5), error(7) or fatal(8) +loglevel 5 + +# libipulog receive buffer size (should be at least the size of the +# in-kernel buffer (ipt_ULOG.o 'nlbufsiz' parameter) +bufsize 65535 + +###################################################################### +# PLUGIN OPTIONS +###################################################################### + +# We have to configure and load all the plugins we want to use + +# general rules: +# 1. specify the options FIRST, then load the plugin +# 2. interpreter plugins have to precede output plugins + + +# +# ulogd_BASE.so - interpreter plugin for basic IPv4 header fields +# you will always need this +plugin @libdir@/ulogd_BASE.so + + +# +# ulogd_LOGEMU.so - simple syslog emulation target +# +# where to write to +syslogfile /var/log/ulogd.syslogemu +# do we want to fflush() the file after each write? +syslogsync 1 +# load the plugin +plugin @libdir@/ulogd_LOGEMU.so + + +# +# ulogd_OPRINT.so: file for packet dumping +# +# where to write the log +dumpfile /var/log/ulogd.pktlog +# load the plugin (remove the '#'if you want to enable it +#plugin @libdir@/ulogd_OPRINT.so + + +# +# ulogd_MYSQL.so: optional logging into a MySQL database +# +# database information +mysqltable ulog +mysqlpass changeme +mysqluser laforge +mysqldb ulogd +mysqlhost localhost +# load the plugin (remove the '#' if you want to enable it) +#plugin @libdir@/ulogd_MYSQL.so + + +# +# ulogd_PGSQL.so: optional logging into a PostgreSQL database +# +# database information +pgsqltable ulog +pgsqlpass +pgsqluser postgres +pgsqldb ulogd +pgsqlhost localhost +#load the plugin (remove the '#' if you want to enable it) +#plugin @libdir@/ulogd_PGSQL.so + +pcapfile /var/log/ulogd.pcap +pcapsync 1 +#plugin @libdir@/ulogd_PCAP.so -- cgit v1.2.3