Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables in the kernel as opposed to being a module
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bryhhh
n00b
n00b


Joined: 01 Apr 2003
Posts: 73
Location: /etc/passwd

PostPosted: Wed Dec 17, 2003 4:14 pm    Post subject: iptables in the kernel as opposed to being a module Reply with quote

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
View user's profile Send private message
yottabit
Guru
Guru


Joined: 11 Nov 2002
Posts: 313
Location: Columbus, Ohio, US

PostPosted: Thu Feb 12, 2004 5:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
mgillespie
Apprentice
Apprentice


Joined: 16 Dec 2003
Posts: 170

PostPosted: Thu Feb 12, 2004 6:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Mon Mar 08, 2004 3:37 pm    Post subject: Reply with quote

so do i. i even can't insmod ip_tables.ko within my modularized 2.6.3 kernel. any ideas?
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Mon Mar 08, 2004 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Mon Mar 08, 2004 4:06 pm    Post subject: Reply with quote

i have had iptables in my kernel since the
2.6.0-test versions without any problems.
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Mon Mar 08, 2004 4:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Mon Mar 08, 2004 9:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum