Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi i am new in linux and working on a project where i am working on iptables.
i have installed iptables in system.when i am giving this cmmand "iptables --table nat --flush" its giving ""iptables v1.4.15: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)Perhaps iptables or your kernel needs to be upgraded." this error
so please help me
regards
lax
Last edited by lax.rawat07; 08-27-2012 at 05:23 AM.
as root?
what is the result of "modinfo iptable_nat"
I see that ip_conntrack is now nf_conntrack on my xubuntu system but in the info from iptable_nat it should be mentionned as dependency.
After the modprobe, check if the iptable_nat is loaded with lsmod | grep iptable_nat
What distro are you working on? which version of kernel (uname -a) Did you do an upgrade or is this a fresh install? (from cd?)
What you are probably missing is the support for iptables netfilter in your kernel.
Try to search your package-manager if any for a kernel that supports netfilter/iptables. Or you will have to compile your own kernel and do also the modules_install.
can i have to make changes in my kernel .config file or load the module
i have try both the option!!
anyone from networking domain will have the better idea .......
if modprob iptable_nat fails, it means there is no support in your kernel and the module is not installed on your system.
A quick google (http://meld.org/discussion/general-d...-montavista-40) learned me that for monta vista, you have to copy the nec. files from somewhere.
for compile of the kernel, you need the sources
then enter the directory with the kernel sources
make menuconfig (if it exists on monta vista)
go through the netfilter options and enable the options for iptables, I think somewhere in device drivers / networking support.
and then compile the kernel and modules with
make && make modules_install
make install => move files to places in boot etc.
regds.
Last edited by lievendp; 08-27-2012 at 08:43 AM.
Reason: completion info
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.