LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   iptable module missing after kernel upgrade. (https://www.linuxquestions.org/questions/linux-newbie-8/iptable-module-missing-after-kernel-upgrade-4175491889/)

srijivdimri 01-20-2014 06:54 AM

iptable module missing after kernel upgrade.
 
Hi Experts,

I recently upgraded the kernel version on my RedHat Server.
make menuconfig, selected the iptable module.
make module_install

Rebooted the server and it came up with the new module

# uname -a
Linux flexcolo 3.12.8 #2 SMP Mon Jan 20 16:05:45 IST 2014 x86_64 x86_64 x86_64 GNU/Linux

Now somehow I am not able run the iptable nat module as it comes up with the below error:-

# iptables -t nat -L
FATAL: Module ip_tables not found.
iptables v1.4.7: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded
.

ip table filter work just fine
iptables -t filter -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere 172.28.124.0/24
ACCEPT all -- anywhere 192.168.210.0/30
ACCEPT all -- anywhere 192.168.0.0/26

When I do lsmod | grep ip

]# lsmod | grep ip
ipmi_si 47206 1
nf_conntrack_ipv4 10417 4
nf_defrag_ipv4 1646 1 nf_conntrack_ipv4
nf_conntrack 89933 3 nf_conntrack_ftp,nf_conntrack_ipv4,xt_state
iptable_filter 1698 1
iptable_mangle 1775 0


I dont see ip_table or iptable_nat module here.

please let know if I need to install them and from where can I download them.

unSpawn 01-20-2014 04:26 PM

Quote:

Originally Posted by srijivdimri (Post 5101385)
I dont see ip_table or iptable_nat module here.

It should be at /lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/iptable_nat.ko


Quote:

Originally Posted by srijivdimri (Post 5101385)
please let know if I need to install them and from where can I download them.

Its in the kernel source tree so rebuild your kernel but choose the right options. In fact if you do not have compelling reasons to (patch? and) build your own kernel you probably shouldn't do that and this is one of the reason why.

srijivdimri 01-21-2014 07:17 AM

Hi,

Thanks for looking into this. I completely overlooked the 'IP NAT' module section under:-

Networking Support -- > Networking Options --> Network Packet Filtering Framework --> IP: Netfilter Configuration.--> IPV4 NAT

I added it and re-compiled the kernel. Restarted the server and everything working fine now.

Appreciate all your help.


All times are GMT -5. The time now is 04:35 PM.