Answer the question
In order to leave comments, you need to log in
Error when trying to work with iptables or ufw. How to set up a firewall in this case?
Installed iptables
sudo apt-get install iptables
Further ufw
sudo apt-get install ufw
Well and further that I do not try to make, for example iptables -L , pours errors. What is this nonsense and how to fix it? How do you set up a firewall in such a situation?
[email protected]:~sudo ufw status
ERROR: problem running iptables: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.9.0-12-amd64/modules.dep.bin'
modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.9.0-12-amd64
iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
[email protected]:~# iptables -L
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.9.0-12-amd64/modules.dep.bin'
modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.9.0-12-amd64
iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question