我无法启用 IP 表日志记录

我无法启用 IP 表日志记录
uname -a
Linux test 5.10.0-17-cloud-amd64 #1 SMP Debian 5.10.136-1 (2022-08-13) x86_64 GNU/Linux

# Install module
modprobe ipt_LOG

# Confirm the file _is_ there
cat /proc/sys/net/netfilter/nf_log/2
NONE

# Errors when trying to change this setting
echo ipt_LOG >/proc/sys/net/netfilter/nf_log/2
bash: echo: write error: No such file or directory

sysctl net.netfilter.nf_log.2=nf_log_ipv4
sysctl: setting key "net.netfilter.nf_log.2": No such file or directory

我在网上没有看到有关此错误的任何信息。我​​看到的所有内容似乎都表明这应该可以正常工作。

答案1

刚刚解决了这个问题。需要安装另一个模块:

modprobe nf_log_ipv4

相关内容