diff options
author | Pierre Chifflier <chifflier@inl.fr> | 2010-10-20 13:44:51 +0200 |
---|---|---|
committer | Eric Leblond <eric@inl.fr> | 2010-10-23 11:48:06 +0200 |
commit | 5cb6996e4c6c501065e0f7bcf37dfc5d7559b4a7 (patch) | |
tree | 08d0bf189e1e1f52d6dd8916841a3617372ab75c /ulogd.conf.in | |
parent | 58e654e1deda9d230dfb1d64bec773233a19ef84 (diff) |
Add new input plugin UNIXSOCK
This input plugins creates a unix socket which can be used to log packets.
Scripts or applications can connect to the socket (only one client allowed
per socket) and send data in a Key-Length-Value format (including the
payload).
Signed-off-by: Pierre Chifflier <chifflier@edenwall.com>
Diffstat (limited to 'ulogd.conf.in')
-rw-r--r-- | ulogd.conf.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ulogd.conf.in b/ulogd.conf.in index cda5bb9..634e37f 100644 --- a/ulogd.conf.in +++ b/ulogd.conf.in @@ -27,6 +27,7 @@ loglevel=1 plugin="@libdir@/ulogd/ulogd_inppkt_NFLOG.so" #plugin="@libdir@/ulogd/ulogd_inppkt_ULOG.so" +#plugin="@libdir@/ulogd/ulogd_inppkt_UNIXSOCK.so" plugin="@libdir@/ulogd/ulogd_inpflow_NFCT.so" plugin="@libdir@/ulogd/ulogd_filter_IFINDEX.so" plugin="@libdir@/ulogd/ulogd_filter_IP2STR.so" @@ -82,6 +83,9 @@ plugin="@libdir@/ulogd/ulogd_raw2packet_BASE.so" # this is a stack for logging packets to syslog after a collect via NFLOG #stack=log3:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,sys1:SYSLOG +# this is a stack for logging packets to syslog after a collect via NuFW +#stack=nuauth1:UNIXSOCK,base1:BASE,ip2str1:IP2STR,print1:PRINTPKT,sys1:SYSLOG + # this is a stack for flow-based logging to MySQL #stack=ct1:NFCT,ip2bin1:IP2BIN,mysql2:MYSQL @@ -145,6 +149,9 @@ numeric_label=1 # you can label the log info based on the packet verdict nlgroup=1 #numeric_label=0 # optional argument +[nuauth1] +socket_path="/tmp/nuauth_ulogd2.sock" + [emu1] file="/var/log/ulogd_syslogemu.log" sync=1 |