View previous topic :: View next topic |
Author |
Message |
bryhhh n00b
Joined: 01 Apr 2003 Posts: 73 Location: /etc/passwd
|
Posted: Wed Dec 17, 2003 4:14 pm Post subject: iptables in the kernel as opposed to being a module |
|
|
I've compiled iptables directly into my kernel, and seem to be able to start the service without problem.
Code: | bash-2.05b# /etc/init.d/iptables start
* Loading iptables state and starting firewall...
* Restoring iptables ruleset [ ok ] |
But when I try and do anything with the userland program for iptables I get an error
Code: | bash-2.05b# /sbin/iptables -L
modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded. |
Why does it look for a module when I've compiled it into the kernel itself?
Code: | bash-2.05b# /etc/init.d/iptables status
* status: started
bash-2.05b# /etc/init.d/iptables stop
* Stopping firewall...
cat: /proc/net/ip_tables_names: No such file or directory [ ok ] |
|
|
Back to top |
|
|
yottabit Guru
Joined: 11 Nov 2002 Posts: 313 Location: Columbus, Ohio, US
|
Posted: Thu Feb 12, 2004 5:21 pm Post subject: |
|
|
Having the same issue. I've search a bit on the forums, but the solution is usually just to build as a module. I don't personally think that's a solution, but I guess I'll try that for now.
Seems as though 'iptables' doesn't look for the code unless it's modularized...
Anyone else? _________________ Play The Hitchhiker's Guide to the Galaxy! |
|
Back to top |
|
|
mgillespie Apprentice
Joined: 16 Dec 2003 Posts: 170
|
Posted: Thu Feb 12, 2004 6:58 pm Post subject: |
|
|
got the same problem.
No wonder Linux has a bad name when you can do legitimate things like compiling iptables in the kernel, and get stupid error messages... |
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Mon Mar 08, 2004 3:37 pm Post subject: |
|
|
so do i. i even can't insmod ip_tables.ko within my modularized 2.6.3 kernel. any ideas? |
|
Back to top |
|
|
nevynxxx Veteran
Joined: 12 Nov 2003 Posts: 1123 Location: Manchester - UK
|
Posted: Mon Mar 08, 2004 3:48 pm Post subject: |
|
|
I'm quite sure I have iptables compiled in and working. I have had the errors you reported above. i solved them by going through all the networking subsystems and enabling anything iptable related. I'm using 2.6 kernels, and my config is here. _________________ My Public Key
Wanted: Instructor in the art of Bowyery |
|
Back to top |
|
|
neenee Veteran
Joined: 20 Jul 2003 Posts: 1786
|
Posted: Mon Mar 08, 2004 4:06 pm Post subject: |
|
|
i have had iptables in my kernel since the
2.6.0-test versions without any problems. |
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Mon Mar 08, 2004 4:57 pm Post subject: |
|
|
nevynxxx wrote: | I'm quite sure I have iptables compiled in and working. I have had the errors you reported above. i solved them by going through all the networking subsystems and enabling anything iptable related. I'm using 2.6 kernels, and my config is here. |
thanks a lot. i used your file and checked few things out. i didn't really compare your config with my config line by line but you pointed me out into the right direction. i deactivated some entries and activated others. it works now! |
|
Back to top |
|
|
nevynxxx Veteran
Joined: 12 Nov 2003 Posts: 1123 Location: Manchester - UK
|
Posted: Mon Mar 08, 2004 9:35 pm Post subject: |
|
|
Glad I could help.
Anthony
p.s. For anyone in the future, I can't say that config will always be there, if you need it pm me. _________________ My Public Key
Wanted: Instructor in the art of Bowyery |
|
Back to top |
|
|
|