LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 09-26-2008, 12:29 AM   #1
linuxgentoo
LQ Newbie
 
Registered: Nov 2007
Location: Shanghai,China
Distribution: gentoo
Posts: 19
Blog Entries: 1

Rep: Reputation: 0
iptables: can't initialize iptables table `NAT'


my kernel version is 2.6.26
I cannot find which item in kernel config provide the NAT module

the following this netfilter config in my kernel


Code:
#
# IP: Netfilter Configuration
#
# CONFIG_IP_NF_QUEUE is not set
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP_NF_MATCH_RECENT=m
CONFIG_IP_NF_MATCH_ECN=m
CONFIG_IP_NF_MATCH_AH=m
CONFIG_IP_NF_MATCH_TTL=m
CONFIG_IP_NF_MATCH_ADDRTYPE=m
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=m
CONFIG_IP_NF_TARGET_LOG=m
CONFIG_IP_NF_TARGET_ULOG=m
CONFIG_IP_NF_MANGLE=m
CONFIG_IP_NF_TARGET_ECN=m
CONFIG_IP_NF_TARGET_TTL=m
CONFIG_IP_NF_RAW=m
CONFIG_IP_NF_ARPTABLES=m
CONFIG_IP_NF_ARPFILTER=m
CONFIG_IP_NF_ARP_MANGLE=m

thanks for your help
 
Old 09-26-2008, 11:27 AM   #2
verndog
Member
 
Registered: Oct 2007
Posts: 103

Rep: Reputation: 17
What does the ouput of your config file show
Code:
grep IPTABLES .config
Mine is not set, as shown below.
# CONFIG_IP_NF_IPTABLES is not set
 
Old 02-13-2009, 02:05 PM   #3
madyogi
LQ Newbie
 
Registered: Feb 2009
Location: Poland
Distribution: My own, Fedora, OpenSuse
Posts: 19

Rep: Reputation: 2
Still no go :(

I have exactly the same problem on my Linux Box. I've just compiled a 2.6.26 (previous one was 2.6.15). I need it because the wireless NIC compiles with it and doesn't want to build as 2.6.15 module.

Back to the point.
I already have:
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP6_NF_IPTABLES=m
defined as modules in a '.config' file but they seem not to build at all or are created under different names. ??? (hard to believe)

Well this is a list of modules that were created for 2.6.26:
arp_tables.ko ipt_ECN.ko ipt_ULOG.ko iptable_filter.ko
arptable_filter.ko ipt_LOG.ko ipt_ecn.ko iptable_mangle.ko
ip_tables.ko ipt_REJECT.ko ipt_ttl.ko

And here are those that were build with old 2.6.15:
arp_tables.ko ip_nat_tftp.ko ipt_ULOG.ko ipt_owner.ko
arptable_filter.ko ip_queue.ko ipt_ah.ko ipt_pkttype.ko
ip_conntrack.ko ip_tables.ko ipt_conntrack.ko ipt_state.ko
ip_conntrack_amanda.ko ipt_DSCP.ko ipt_dscp.ko ipt_tcpmss.ko
ip_conntrack_ftp.ko ipt_ECN.ko ipt_ecn.ko ipt_tos.ko
ip_conntrack_irc.ko ipt_LOG.ko ipt_esp.ko ipt_ttl.ko
ip_conntrack_tftp.ko ipt_MARK.ko ipt_helper.ko iptable_filter.ko
ip_nat.ko ipt_MASQUERADE.ko ipt_length.ko iptable_mangle.ko
ip_nat_amanda.ko ipt_REDIRECT.ko ipt_limit.ko iptable_nat.ko
ip_nat_ftp.ko ipt_REJECT.ko ipt_mac.ko
ip_nat_irc.ko ipt_TCPMSS.ko ipt_mark.ko
ip_nat_snmp_basic.ko ipt_TOS.ko ipt_multiport.ko

As you can see there are many many more...
I compiled the new kernel by placing the old .config file from previous build of 2.6.15 into the build directory and run make oldconfig..:

$ cd /usr/src/linux-2.6.26
$ make O=/root/linux-build mrproper
$ cp <olddist-build>.config /root/linux-build/.config
$ make O=/root/linux-build oldconfig
$ make O=/root/linux-build bzImage modules modules_install

I'm not a newbie in a kernels world but this one really confused me...
Can anyone help, please?
 
Old 01-17-2010, 10:15 AM   #4
madyogi
LQ Newbie
 
Registered: Feb 2009
Location: Poland
Distribution: My own, Fedora, OpenSuse
Posts: 19

Rep: Reputation: 2
Talking Solution.

Forgot with time that I made this post. Anyway the solution was to remove the '.config' and don't use the "make O=... oldconfig" but creating a default, clean config again and disabling unnecessary modules.
 
  


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
iptables v1.3.8: can't initialize iptables table `filter' sebastien.lorandel Linux - Networking 11 09-22-2007 06:34 AM
iptables: Using marks on NAT table bartmanxxi Linux - Networking 0 10-18-2006 05:00 PM
iptables help - nat table Tony/osIRIs Linux - Networking 7 03-05-2006 06:33 PM
Adding the NAT table into iptables logo Linux - Newbie 2 10-28-2004 01:58 AM
iptables how to show the nat table Breezer Linux - Security 1 12-13-2001 02:10 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration