Install and configure ulogd the userspace logging daemon for netfilter/iptables related logging.
Note
See the full Salt Formulas installation and usage instructions.
Installs and configures ulogd
service.
You need to configure a stack inside sections
to make the "stack" use it inside /etc/ulogd.conf
.
For example, this will create a stack to log "iptables" connection tracking events.
ulog:
sections:
iptables:
stack:
- "base1:BASE"
- "ifi1:IFINDEX"
- "ip2str1:IP2STR"
- "print1:PRINTPKT"
config:
input01:
plugin: NFLOG
vars:
group: 30
output01:
plugin: LOGEMU
vars:
file: /var/log/iptables.log