Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UFW: Missing kernel modules
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
juliedeville
n00b
n00b


Joined: 14 Oct 2024
Posts: 44

PostPosted: Sun Feb 23, 2025 6:05 pm    Post subject: UFW: Missing kernel modules Reply with quote

I am trying to setup UFW, and I am getting some errors when I try to enable it. I enabled all of the necessary kernel modules from the wiki pages for iptables and ufw, but still no luck.

Code:
ERROR: problem running ufw-init
Warning: Extension limit revision 0 not supported, missing kernel module?
iptables-restore: line 75 failed
Warning: Extension limit revision 0 not supported, missing kernel module?
iptables-restore: line 55 failed

Problem running '/etc/ufw/before.rules'
Problem running '/etc/ufw/user.rules'
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3953

PostPosted: Sun Feb 23, 2025 6:47 pm    Post subject: Reply with quote

See if you have
Code:

CONFIG_NFT_LIMIT=m
and
CONFIG_NFT_CONNLIMIT=m



in your kernel .config.Apparently you did not enable all of the needed kernel functionality for iptables.
_________________
:)
Back to top
View user's profile Send private message
juliedeville
n00b
n00b


Joined: 14 Oct 2024
Posts: 44

PostPosted: Sun Feb 23, 2025 8:10 pm    Post subject: Reply with quote

Thank you for your reply. Those were not enabled, but enabling them did not fix the issue. Also I meant to specify that only to my knowledge have I enabled all of the modules on the wiki pages, and some were marked as deprecated.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3953

PostPosted: Sun Feb 23, 2025 8:49 pm    Post subject: Reply with quote

Quote:

but enabling them did not fix the issue

You should
Code:

make menuconfig(find the symbols and enable them,then save the file)->make->make modules_install->make install->reboot

_________________
:)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54920
Location: 56N 3W

PostPosted: Sun Feb 23, 2025 9:03 pm    Post subject: Reply with quote

juliedeville,

What does
Code:
uname -a
show?
Are you running the kernel you think you are?

Code:
$ uname -a
Linux neddy_static 6.13.0-gentoo #1 SMP PREEMPT_DYNAMIC Sat Jan 25 10:37:52 GMT 2025 x86_64 AMD Ryzen 9 5950X 16-Core Processor AuthenticAMD GNU/Linux

The time and date, Sat Jan 25 10:37:52 GMT 2025 are the build time and date of the running kernel.
Yours should be nowish, if you have just done a kernel update and reboot. Does it look right.?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2209

PostPosted: Mon Feb 24, 2025 9:20 am    Post subject: Reply with quote

I find UFW module requirements a bit of a quagmire. The ebuild has several checks, though I'm not sure they're right. I haven't read the wiki items recently, so I won't comment, but AFAIR remember both those and the ebuild were insufficient. UFW supplies its own checker:
Code:
/usr/share/ufw/check-requirements
that might tell a more complete story, though I wouldn't put money on it!
_________________
Greybeard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum