Re: Iptables can't locate its modules
On Tue, Dec 16, 2003 at 09:43:06AM +0000, Anthony Campbell wrote:
> I'm trying to set up iptables using kernel 2.4.23. I've installed
> iptables and iptables-dev from testing and I've enabled CONFIG_NETFILTER
> but all attempts to execute the iptables commands produces:
> root:~:# iptables -F
> modprobe: Can't locate module ip_tables
> iptables v1.2.9: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
> Perhaps iptables or your kernel needs to be upgraded.
> Google produces various references to this problem but no solutions that
> I can see. Should I have included other things in the kernel? Any simple
> documentation for this?
> Or is it perhaps overkill for a standalone machine, albeit one that is
> constantly connected to the met?
No, you need it. I would compile iptables and associated sub-options as
modules, rather than straight into the kernel. That was you don't need
to recompile if you decide to use different iptables features.
And use this to generate your script. http://morizot.net/firewall/gen/
It's the way forward.
Please don't CC me. Also _please_ read the following before posting:
Documentation - http://www.debian.org/doc/
FAQ - http://www.debian.org/doc/FAQ/
Install manual (i386) - http://www.debian.org/releases/stable/i386/install