Artix Linux Forum

Artix Linux => System => Topic started by: ralsei on 12 July 2022, 16:16:51

Title: ip_tables missing
Post by: ralsei on 12 July 2022, 16:16:51
Hi,

I wanted to open a port with

Code: [Select]
sudo iptables -I INPUT -p tcp --dport 51413 -j ACCEPT

but I'm getting an error:

Code: [Select]
modprobe: FATAL: Module ip_tables not found in directory /lib/modules/5.18.7-zen1-1-zen
iptables v1.8.8 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

I've checked lsmod and ip_tables is indeed not there. Does Artix use some other firewall that I'm not aware of or will I need to recompile my kernel with iptables support?
Title: Re: ip_tables missing
Post by: Hitman on 12 July 2022, 16:39:53
it works for me, i have plain legacy iptables. Do you have nftables by any chance?

Do you have linux-zen-headers installed?
Title: Re: ip_tables missing
Post by: ralsei on 12 July 2022, 17:46:31
Yes, I have linux-zen-headers installed and it doesn't seem like I have nftables.
Title: Re: ip_tables missing
Post by: gripped on 12 July 2022, 18:10:28
Does Artix use some other firewall that I'm not aware of or will I need to recompile my kernel with iptables support?

iptables is in the kernel. That's not an Artix kernel unless the zen kernel has been added to Artix which I doubt ? So what Artix uses has no relevance. But Artix does have iptables in its kernel.

Are you sure your running zen kernel matches the modules you have installed? I'd be very surprised if the zen kernel did not have iptables.
Title: Re: ip_tables missing
Post by: Hitman on 12 July 2022, 18:33:30
it has, i'm running it right now and that command succeeded

i was trying to look if enabling gremlins and upgrading the kernel+dkms from there would do anything but i arrived to no conclusion. this probably has to do with the dkms bug in upstream Arch from a week or so ago but it was fixed and i had no issues like here.