Skip to content

aabouzaid/ulog-formula

Repository files navigation

ulog

Install and configure ulogd the userspace logging daemon for netfilter/iptables related logging.

Available states

Installs and configures ulogd service.

Configuration

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