View previous topic :: View next topic |
Author |
Message |
juliedeville n00b

Joined: 14 Oct 2024 Posts: 44
|
Posted: Sun Feb 23, 2025 6:05 pm Post subject: UFW: Missing kernel modules |
|
|
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 |
|
 |
alamahant Advocate

Joined: 23 Mar 2019 Posts: 3953
|
Posted: Sun Feb 23, 2025 6:47 pm Post subject: |
|
|
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 |
|
 |
juliedeville n00b

Joined: 14 Oct 2024 Posts: 44
|
Posted: Sun Feb 23, 2025 8:10 pm Post subject: |
|
|
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 |
|
 |
alamahant Advocate

Joined: 23 Mar 2019 Posts: 3953
|
Posted: Sun Feb 23, 2025 8:49 pm Post subject: |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 54921 Location: 56N 3W
|
Posted: Sun Feb 23, 2025 9:03 pm Post subject: |
|
|
juliedeville,
What does 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 |
|
 |
Goverp Advocate


Joined: 07 Mar 2007 Posts: 2209
|
Posted: Mon Feb 24, 2025 9:20 am Post subject: |
|
|
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 |
|
 |
|