Skip to content

Implement NFLOG logging target support #18

@markuslf

Description

@markuslf

The GUI already offers a LOG vs NFLOG radio button in the iptables/nftables platform settings dialogs, along with NFLOG-specific parameters (cprange, queue threshold, netlink group). However, the compiler currently hardcodes use_ulog=0 and always generates LOG rules.

What needs to happen:

  • The compiler should honour the use_NFLOG option and generate -j NFLOG (iptables) / log group X (nftables) rules instead of -j LOG / log when enabled.
  • The NFLOG parameters (nflog_cprange, nflog_qthreshold, nflog_nlgroup) should be passed through to the generated rules.

Background:
NFLOG is the modern netfilter logging target. It sends packets via netlink to a userspace daemon (ulogd2, rsyslog with imjournal/imnflog, or syslog-ng) rather than logging directly to the kernel ring buffer. This is more flexible (log to files, databases, pcap, multiple groups) but requires additional setup on the target host.

The deprecated ULOG target has been removed from the GUI and codebase — only LOG and NFLOG remain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerFirewall policy compilerenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions