iptables on 2.6
I have kernel2.6.0 running on redhat 9
My .config file in /usr/src/linux-2.6.0 shows
and I also have the necessary netfilter files under
However when I run the following commands
#modprobe iptable_filter or
#insmod iptable_filter or
I get the message
"FATAL: Module iptable_filter not found."
Does this mean that my iptable module is not compiled with the kernel? if so then why do i get the corresponding entries in my .config file?
Am i missing something?
#lsmod does not show me any modules as being listed
any reply is appreciated
Do you have "modules-init-tools" installed?
Also, check in /lib/modules/2.6.0/kernel/net/ipv4/netfilter if it's there. If it isn't, you probably did something wrong while installing the modules.
yes I have module-init-tools installed and the below dir is present as well.
In the above dir I also have iptable_filter.ko,iptable_net.ko and another modules present.
When I try to do a modprobe <any-module-name> I get the message saying
FATAL: <module> not found
Is there something wrong with my modprobe configuration??
modprobe --version shows
module-init-tools version 0.9.13
I dont know whats going on...
yeah I ran
and it did not give me any error messages either.
i hope thats the correct way to run depmod.
If you are currently running 2.6.0, then you don't need to specify that. On the other hand, it doesn't hurt either.
Do you have /lib/modules/2.6.0/modules.dep and /etc/modprobe.conf?
If you cd to /lib/modules/2.6.0/kernel/net/ipv4/netfilter and manually run "insmod iptable_filter.ko", does that work?
yes I have /lib/modules/2.6.0/modules.dep and /etc/modprobe.conf?
When i go to the lib/modules/2.6.0/kernel/net/ipv4/netfilter and manually run "insmod iptable_filter.ko" it comes back saying
"Error inserting 'iptable_filter.ko': -1 Unknown symbol in module"
I try to add any module using insmod and it comes back saying
"Error inserting 'modules-name': -1 Unknown symbol in module"
I should have realized that... Sorry for wasting your time. What I meant was that you should "insmod ip_tables.ko". Did you try that one? I believe it should work. If it doesn't, check what symbols it is complaining on with "dmesg | tail".
cool....insmod ip_tables.ko worked jus fine....
now do I need to run insmod iptable_filter.ko and stuff?
thanks for your help.