D
D
Dimarik2012-08-29 10:24:42
linux
Dimarik, 2012-08-29 10:24:42

Not applying iptables rules after ubuntu server update?

Yesterday I updated ubuntu server 10.04 -> 12.04
The update went well, everything worked, except for one thing - the iptables rules are not applied.
Those. Conclusion:
iptables -L
there is never a single rule. There are no error messages when trying to add a rule.
After the reboot, the first time I try to view the rule, I get an error:

iptables v1.4.12: can`t initialize iptables table 'filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

Subtracted what it can be if ip_tables is built as a module and can help:
modprobe -f ip_tables
But then I get a whack that the format of the ip_tables.ko module is not known.
Actually task: to
fix iptables. Or another way to pass the Internet through this computer - it acts as a gateway.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
@
@greynix, 2012-08-29
_

iptables -L is most likely not being run as root, try sudo iptables -L

A
Alukardd, 2012-08-29
@Alukardd

Try simply reinstalling the iptables and iptables-persistent packages.

S
Sergey78, 2012-08-29
@Sergey78

Message about "can`t initialize iptables table 'filter'" only on the first attempt to add a rule?
On a booted system, can you add a rule from the console?
How do you start the rules at startup, through an if-up script?

A
Andrey Burov, 2012-08-29
@BuriK666

modprobe iptable_filter

C
charon, 2012-08-29
@charon

sudo /sbin/service iptables status
?

R
RouR, 2013-10-25
@RouR

Check uname -r and /boot/ for the correct version
. I had the same error because I was booting from an old kernel

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question