Results 1 to 6 of 6
I'm using debian etch and compile new kernels from kernel.org from time to time. Problem is that every now and then, like the new 2.6.20, I lose the ability to ...
- 02-08-2007 #1Just Joined!
- Join Date
- Jun 2006
- Posts
- 50
Self compiled kernel + iptables/ipmasq problem
I'm using debian etch and compile new kernels from kernel.org from time to time. Problem is that every now and then, like the new 2.6.20, I lose the ability to share my internet connection. ipmasq and iptables suddenly stop working right and start saying there's a problem with iptables nat.
I use this combo because it's configured and installed and works to the extent of my needs with nothing more than apt-get install ipmasq iptables. I don't even have debconf questions.
If there's a less touchy alternative, or if someone could please tell me what is causing the kernel updates to have problems I'd appreciate it.
fwiw I believe this issue also happens on occasion with kernel upgrades from apt-get, but I've not upgraded my kernel that way in awhile so can't recall.
- 02-08-2007 #2Linux User
- Join Date
- Feb 2006
- Posts
- 484
post the error message and chech your kernel configuration file
- 02-08-2007 #3Just Joined!
- Join Date
- Jun 2006
- Posts
- 50
Yeah, sorry. Meant to post the message and forgot. Here it is:
Originally Posted by iwanabeguru
As for my kernel's config. Nothing in there that isn't in the old config. Except of course the things that don't exist for the older version. I started out by doing make oldconfig in fact. Then I used make menuconfig to explore the options. Mostly I leave everything default except to disable experimental drivers for a couple of NICs that I don't have and have never heard of, and to compile it specifically for k6/k6II/k6III.Code:iptables v1.3.6: can't initialize iptables table `nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. iptables: No chain/target/match by that name
- 02-09-2007 #4Linux User
- Join Date
- Feb 2006
- Posts
- 484
try insert the nat module
modprobe iptable_nat
and check your /lib/modules/`uname -r`/kernel/net/ipv4/netfilter directories for the modules.
I experienced in some time when i compiled kernel , the modules not compiled and not installed.
before compile a kernel run make mrproper
another experience : i compiled a 2.6.16.14 kernel and the module for filter table was lacking.
- 02-09-2007 #5Just Joined!
- Join Date
- Jun 2006
- Posts
- 50
many thanks. I will try that later then. I'd tried using insmod, but since the error didn't suggest what the name of the module was, and I couldn't find the name by anything I could think of I figured it must have not been a kernel module issue.
Originally Posted by iwanabeguru
- 02-12-2007 #6Just Joined!
- Join Date
- Jun 2006
- Posts
- 50
Well. tested adding the iptables_nat module.
there's no such thing. Can't find it anywhere in the .config of the kernels that can do ipmasq+iptables and I can't find it anywhere in the one that can't. insmod iptables or insmode iptables_nat both give the error that there is no such module.


Reply With Quote
