Hello,
I have kernel 3.8.13.30-1-ARCH.
I am trying to run iptables -nvL but I get the message.
$this->bbcode_second_pass_code('', '
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.
')
So far after an many internet searches I have found out that this file /proc/net/ip_tables_names is empty.
I have also run lsmod.
$this->bbcode_second_pass_code('', '
# lsmod
Module Size Used by
smsc95xx 20985 0
usbnet 21989 1 smsc95xx
gpio_keys 7296 0
ip_tables 11800 0
x_tables 16638 1 ip_tables
ipv6 301199 20
')
Here is an strace iptables -nvL.
$this->bbcode_second_pass_code('', '
# strace iptables -nvL
execve("/usr/bin/iptables", ["iptables", "-nvL"], [/* 17 vars */]) = 0
brk(0) = 0x84000
uname({sysname="Linux", nodename="u2", ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fdc000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=27706, ...}) = 0
mmap2(NULL, 27706, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb6fd5000
close(3) = 0
open("/usr/lib/libip4tc.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\220\20\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=22412, ...}) = 0
mmap2(NULL, 86544, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb6f98000
mprotect(0xb6f9d000, 61440, PROT_NONE) = 0
mmap2(0xb6fac000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0xb6fac000
')
I have also run these commands. They did not help.
$this->bbcode_second_pass_code('', '
modprobe ip_tables
modprobe ip_conntrack
modprobe iptable_filter
modprobe ipt_state
')