LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-20-2014, 07:54 AM   #1
srijivdimri
Member
 
Registered: Jun 2013
Location: India.
Posts: 35

Rep: Reputation: Disabled
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.
 
Old 01-20-2014, 05:26 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Quote:
Originally Posted by srijivdimri View Post
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 View Post
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.
 
1 members found this post helpful.
Old 01-21-2014, 08:17 AM   #3
srijivdimri
Member
 
Registered: Jun 2013
Location: India.
Posts: 35

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] HELP - 14.1 upgrade from 14.0 with slackpkg kernel-module links to wrong kernel? bamunds Slackware 4 12-05-2013 08:22 PM
Missing Kernel Module? 2Pacalypse Linux - General 2 04-08-2008 05:48 AM
Missing 'module-info-2.6.12.2' after kernel compile. mr_mccabe Linux - General 1 07-14-2005 03:46 PM
Kernel RPM missing module podge_mcgee Red Hat 2 05-08-2004 06:16 AM
Iptable - upgrade for kernel 2.4.10 RH Smithpl Linux - Networking 4 11-16-2001 08:51 AM


All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration