我们从供应商那里获得了一个自定义构建的 Linux 发行版,它没有启用 iptables。
root@xxxx:~# iptables -L
modprobe: FATAL: Module ip_tables not found.
iptables v1.4.21: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Run Code Online (Sandbox Code Playgroud)
我也尝试使用 modprobe 但没有找到,而且 find 命令也没有找到。
# modprobe ip_tables
modprobe: FATAL: Module ip_tables not found.
# find / -name "ip_tables*"
#
Run Code Online (Sandbox Code Playgroud)
是否可以编译netfilter和iptables并集成它?我尝试编译整个内核,但由于某些未知因素,某些功能无法正常工作。因此,我需要将它们构建为内核模块并将其与我们现有的自定义发行版集成。