Hi, I’m new to Fedora and was wondering how to capture logs from nftables. I’ve used nftables on Ubuntu and could capture logs with ulog2, but ulog2 is not available on Fedora so I’m at a loss for what to do.
I can’t find anything with journalctl -k
, I’ve tried to install rsyslog but can’t find anything in the standard logs it produces either.
Part of the ruleset I’ve used, which worked fine on Ubuntu looks like this:
table inet filter {
chain input {
type filter hook input priority filter; policy drop;
iifname "lo" accept
ct state established,related accept
(...)
tcp dport 22 ct state new accept
ct state invalid log group 0 drop
log group 0 drop
with anything not matching a pass
rule getting logged. Do I need to change the group in the rules, or is there something I need to change in syslog to capture this?
Thanks