Garaud Jean-Claude a écrit :
On Tuesday 17 January 2006 20:22, deny wrote:
salut
j'utilisent ces regles avec iptables :
/sbin/iptables -N ULOG_DROP
/sbin/iptables -A ULOG_DROP -j ULOG
/sbin/iptables -A ULOG_DROP -j DROP
si tu veux je peux t"envoyer mon ulogd.conf
Ca m'intéresse aussi : jamais eu le temps de configurer ulogd.
Merci d'avance
Jean-Claude
# Example configuration for ulogd
# $Id: ulogd.conf.in 714 2005-02-19 21:33:43Z laforge $
#
[global]
######################################################################
# GLOBAL OPTIONS
######################################################################
# netlink multicast group (the same as the iptables --ulog-nlgroup param)
nlgroup=1
# logfile for status messages
logfile="/var/log/ulogd/ulogd.log"
# loglevel: debug(1), info(3), notice(5), error(7) or fatal(8)
loglevel=5
# socket receive buffer size (should be at least the size of the
# in-kernel buffer (ipt_ULOG.o 'nlbufsiz' parameter)
rmem=131071
# libipulog/ulogd receive buffer size, should be > rmem
bufsize=150000
######################################################################
# PLUGIN OPTIONS
######################################################################
# We have to configure and load all the plugins we want to use
# general rules:
# 1. load the plugins _first_ from the global section
# 2. options for each plugin in seperate section below
#
# ulogd_BASE.so - interpreter plugin for basic IPv4 header fields
# you will always need this
plugin="/usr/lib/ulogd/ulogd_BASE.so"
# output plugins.
plugin="/usr/lib/ulogd/ulogd_LOGEMU.so"
#plugin="/usr/lib/ulogd/ulogd_OPRINT.so"
#plugin="/usr/lib/ulogd/ulogd_MYSQL.so"
#plugin="/usr/lib/ulogd/ulogd_PGSQL.so"
#plugin="/usr/lib/ulogd/ulogd_SQLITE3.so"
#plugin="/usr/lib/ulogd/ulogd_PCAP.so"
[LOGEMU]
file="/var/log/ulogd/ulogd.syslogemu"
sync=1
[OPRINT]
file="/var/log/ulogd/ulogd.pktlog"
[MYSQL]
table=""
pass=""
user=""
db=""
host="localhost"
[PGSQL]
table="ulog"
schema="public"
pass="changeme"
user="postgres"
db="ulogd"
host="localhost"
[SQLITE3]
table="ulog"
db="/path/to/sqlite/db"
buffer=200
[PCAP]
file="/var/log/ulogd/ulogd.pcap"
sync=1
J'ai configuré ulogd pour ecrire dans un fichier plat
il y a aussi un article que j'ai traduit pour l'interfacer avec une base
de données Mysql
http://ftp.traduc.org/doc-vf/gazette-linux/html/2005/121/lg121-A.html
a+
____________________________________________________
Want to buy your Pack or Services from Mandriva?
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________