Click to See Complete Forum and Search --> : iptables dont work no more :(


pvc
09-18-2002, 08:22 AM
hi, i just had to restart my server for some reason a while ago, but now that i'm bringing it back up i cant get iptables to work anymore.

i'm using this machine as a gateway/router so iptables is quite importand.

the problem i have i that for iptables wont load the nat table,
it sais:

/etc/init.d/iptables status
Table: nat
iptables v1.2.5: can't initialize iptables table `nat': Module is wrong version
Perhaps iptables or your kernel needs to be upgraded.

now i have run some autoupdate stuff from my graphical shell (mandrake update)
so i think that might have something to do with it.. but i have no idea how or why or what, also i know basicaly nothing about iptables, though i tried starting the masquerading by using
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE,
but this gave the same error.


any one have any idea what i can do about this (except for reinstalling iptables or compiling a new kernel)
(it has worked before with the same kernel)

thanks in advance, Pieter.

jumpedintothefire
09-18-2002, 09:10 AM
disable ipchains.... Do you recall having to do this??
rmmod ipchains

then try the script again...

pvc
09-18-2002, 12:32 PM
never done that before, and if i do i get that ipchain wasnt laded in the first place :(

damn i should have know not to touch anything with a gui... :/


any other ideas maybe how i can " edit" or something this NAT-table, to get iptables to accept it again?

i tried downloading the newest version of iptables but when i do make i get a **** load of errors... :(

jumpedintothefire
09-18-2002, 06:49 PM
"autoupdate stuff " like a kernel maybe??

pvc
09-19-2002, 04:53 AM
i cant believe some gui autoupdater would update my kernel, i think i would have noticed that...

heck i'll prolly just go for a full reinstall this weekend ;(

Lorithar
09-20-2002, 01:02 AM
Actually the error indicates that the module(s) its trying to load don't agree with the version of iptables that is trying to load them. You might have iptables in both /usr/bin and /usr/local/bin. As a result there will be modules in /usr/lib/iptables and /usr/local/lib/iptables. This will result in this sort of conflict ... check that out.