Re: iptables-1.8.12 systemctl errors- BLFS 13.0

"rhubarbpieguy" ([email protected] via blfs-support Mailing List) <[email protected]> Mon, 13 Apr 2026 16:17:09 -0500
Newsgroups gmane.linux.lfs.beyond.support
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1776115043-1253-23592
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit


On 4/12/26 8:51 PM, Bruce Dubbs ([email protected] via blfs-support 
Mailing List) wrote:
> On 4/12/26 4:16 PM, rhubarbpieguy ([email protected] via 
> blfs-support Mailing List) wrote:
>>
>> I see the following systemctl iptables errors:
>>
>> × iptables.service - Load Iptables Rules
>>       Loaded: loaded (/usr/lib/systemd/system/iptables.service; 
>> enabled; preset: enabled)
>>       Active: failed (Result: exit-code) since Fri 2026-04-10 
>> 12:20:25 CDT; 11min ago
>>   Invocation: ba482abfd6a947f793bc2c161eca712a
>>      Process: 351 ExecStart=/etc/systemd/scripts/iptables 
>> (code=exited, status=3)
>>     Mem peak: 5.3M
>>          CPU: 35ms
>>
>> Apr 10 12:20:25 lfs iptables[373]: Perhaps iptables or your kernel 
>> needs to be upgraded.
>> Apr 10 12:20:25 lfs iptables[380]: modprobe: ERROR: could not insert 
>> 'ip_tables': Exec format error
>> Apr 10 12:20:25 lfs iptables[375]: iptables v1.8.12 (legacy): can't 
>> initialize iptables table `filter': Table does not exist (do you need 
>> to insmod?)
>> Apr 10 12:20:25 lfs iptables[375]: Perhaps iptables or your kernel 
>> needs to be upgraded.
>> Apr 10 12:20:25 lfs iptables[383]: modprobe: ERROR: could not insert 
>> 'ip_tables': Exec format error
>> Apr 10 12:20:25 lfs iptables[381]: iptables v1.8.12 (legacy): can't 
>> initialize iptables table `filter': Table does not exist (do you need 
>> to insmod?)
>> Apr 10 12:20:25 lfs iptables[381]: Perhaps iptables or your kernel 
>> needs to be upgraded.
>> Apr 10 12:20:25 lfs systemd[1]: iptables.service: Control process 
>> exited, code=exited, status=3/NOTIMPLEMENTED
>> Apr 10 12:20:25 lfs systemd[1]: iptables.service: Failed with result 
>> 'exit-code'.
>> Apr 10 12:20:25 lfs systemd[1]: Failed to start Load Iptables Rules.
>>
>> I compiled iptables-1.8.12 and built all kernel options (including 
>> legacy) shown in the documentation.  I'm using the Personal Firewall 
>> and see the /etc/systemd/scripts/ iptables script.
>
> Did you build the kernel options as modules or did you build them into 
> the kernel?
> You have two modprobe errors.  If you built modules, did you do the 
> kernel 'modules_install' command?  If you built the modules into the 
> kernel then you need to remove/comment out the modprobe commands in 
> the /etc/systemd/scripts/iptables file.
>
>   -- Bruce
>
>
>
I ran make modules_install and /lib/modules ... is populated.  I have 
the following lines in /etc/systemd/scripts/iptables:

#modprobe nf_conntrack
modprobe xt_LOG

My .config shows:

CONFIG_NET=y
CONFIG_NETFILTER=y
CONFIG_NETFILTER_ADVANCED=y
CONFIG_NF_CONNTRACK=y
CONFIG_NETFILTER_XTABLES=y
CONFIG_NETFILTER_XTABLES_LEGACY=y
CONFIG_NETFILTER_XT_TARGET_LOG=m
CONFIG_IP_NF_IPTABLES=y
CONFIG_IP_NF_NAT=m

And in addition to the errors shown with 'systemctl status 
iptables.service -l' I see unknown symbol errors with journalctl:

Apr 13 15:47:08 lfs iptables[357]: modprobe: ERROR: could not insert 
'ip_tables': Unknown symbol in module, or unknown parameter (see dmesg)
Apr 13 15:47:08 lfs iptables[359]: modprobe: ERROR: could not insert 
'ip_tables': Unknown symbol in module, or unknown parameter (see dmesg)
Apr 13 15:47:08 lfs iptables[361]: modprobe: ERROR: could not insert 
'ip_tables': Unknown symbol in module, or unknown parameter (see dmesg)
Apr 13 15:47:08 lfs iptables[363]: modprobe: ERROR: could not insert 
'ip_tables': Unknown symbol in module, or unknown parameter (see dmesg)
Apr 13 15:47:08 lfs iptables[365]: modprobe: ERROR: could not insert 
'ip_tables': Unknown symbol in module, or unknown parameter (see dmesg)
Apr 13 15:47:08 lfs iptables[367]: modprobe: ERROR: could not insert 
'ip_tables': Unknown symbol in module, or unknown parameter (see dmesg)
Apr 13 15:47:08 lfs iptables[369]: modprobe: ERROR: could not insert 
'ip_tables': Unknown symbol in module, or unknown parameter (see dmesg)
Apr 13 15:47:08 lfs iptables[371]: modprobe: ERROR: could not insert 
'ip_tables': Unknown symbol in module, or unknown parameter (see dmesg)
Apr 13 15:47:08 lfs iptables[373]: modprobe: ERROR: could not insert 
'ip_tables': Unknown symbol in module, or unknown parameter (see dmesg)
Apr 13 15:47:08 lfs iptables[379]: modprobe: ERROR: could not insert 
'ip_tables': Unknown symbol in module, or unknown parameter (see dmesg)
Apr 13 15:47:08 lfs iptables[382]: modprobe: ERROR: could not insert 
'ip_tables': Unknown symbol in module, or unknown parameter (see dmesg)

I should mention I believe iptables is working as I test with a 3rd 
party site and the test passes.


------------=_1776115043-1253-23592
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-support
Unsubscribe: See the above information page

------------=_1776115043-1253-23592--