How to redirect iptables log to another file on 13.2?

I’m switching to OpenSUSE after many years using Debian. More or less I have everything set as I want, but one thing that still I haven’t been able to do is redirect iptables log to a custom log file, for example /var/log/iptables.

I know that using YaST firewall, it’s going to be logged to /var/log/firewall, but I’m using plain iptables with my script, so how can I do this? Because there is no rsyslog as in Debian.

There is. And syslog-ng, and syslogd.
It’s just not installed by default, as systemd provides a log (the “journal”) anyway.

Just install rsyslog (and reboot to start it), and systemd will pass all log messages to it. If you install it, you’ll get a conflict with systemd-logger, just choose to uninstall that. This is only needed for compatibility when no syslog daemon is installed.

The default rsyslog config contains a rule to log to /var/log/firewall, it’s not SuSEfirewall or YaST that does that… (SuSEfirewall is just a helper script to setup iptables anyway)

ok done,

ty