sidn-lxd-ansible-demo/roles/logging/templates/ulogd.conf.j2

29 lines
887 B
Django/Jinja

# {{ ansible_managed }}
#
# This is the configuration for ulogd2, which is used to log
# firewalling messages. Our ferm configuration uses this server
# as its log target.
#
# The logged firewalling messages are passed on to syslog,
# using facility LOCAL0. The syslog server will then decide what
# to do with the messages.
[global]
logfile="syslog"
loglevel=3
plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_inppkt_NFLOG.so"
plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_filter_IFINDEX.so"
plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_filter_IP2STR.so"
plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_filter_PRINTPKT.so"
plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_output_SYSLOG.so"
plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_raw2packet_BASE.so"
stack=nflog:NFLOG,base:BASE,ifindex:IFINDEX,ip2str:IP2STR,print:PRINTPKT,syslog:SYSLOG
[nflog]
group=1
[syslog]
facility=LOG_LOCAL0