Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

francois's avatar

iptables issue

I'm trying to use shorewall or UFW on Homestead. It don't want tot start :

Searching the issue, I get this result :

sudo iptables -L
modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not
open moddep file '/lib/modules/3.13.0-27-generic/modules.dep.bin'
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.

I think one of the possible cause is :

sudo lsmod
Module Size Used by
psmouse 102222 0
floppy 69418 0

No modules are loaded with the kernel, and all iptables modules are not in.

sudo ufw status
[sudo] password for forge:
ERROR: problem running iptables: modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.13.0-27-generic/modules.dep.bin'
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.

Thanks

0 likes
2 replies
francois's avatar

I was on a fresh install, but destroy and install a new once solved my issues.

EmanAbuBaker's avatar

I have the same problem how can I solve it without remove and reinstall the kernel

Please or to participate in this conversation.