Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
IP_TABLES ERROR
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
arachn1d
Guru
Guru


Joined: 15 Apr 2004
Posts: 369
Location: /var/www/wtf-dude.com lynx wtf-dude.com

PostPosted: Mon Apr 19, 2004 5:36 am    Post subject: IP_TABLES ERROR Reply with quote

I can't get ip_tables to work with my system

keeps giving me errors
An error occured when checking your current IPtables configuration :

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.

This may indicate that your kernel does not support IPtables

with webmin and even by hand

I re-cnofigured the kernel to support it even added everything there but still no luck anyone help plz?
or can someone point me in the direction of another good firewall...?
Back to top
View user's profile Send private message
gava77
n00b
n00b


Joined: 12 Jan 2003
Posts: 6
Location: Groningen, The Netherlands

PostPosted: Mon Apr 19, 2004 8:55 am    Post subject: Reply with quote

Please can you post your dmesg? You and we) can see IF your kernel is loading IPTABLES. Furthermore you should:
Code:

# rc-update add iptables default


what states rc-status?
Code:

# rc-status
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Mon Apr 19, 2004 9:45 am    Post subject: Reply with quote

Try to compile kernel iptables support as modules, if it is not so already. You may also try re-emerging iptables.
_________________
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Back to top
View user's profile Send private message
nikolei
n00b
n00b


Joined: 15 Dec 2003
Posts: 37

PostPosted: Mon Apr 19, 2004 10:14 am    Post subject: Reply with quote

this error messages says, that you have forgotten activate
Networking Options --> Netfilter Configration --> Packet Filtering
in the kernel.

so activate it and compile the kernel. then it will work.
Back to top
View user's profile Send private message
arachn1d
Guru
Guru


Joined: 15 Apr 2004
Posts: 369
Location: /var/www/wtf-dude.com lynx wtf-dude.com

PostPosted: Mon Apr 19, 2004 7:01 pm    Post subject: Reply with quote

okay thanks im not at my server now but i will check it...

how do i show you mmy kernel config?

( sorry im noobie )


thx all for your help i appreciate it!
Back to top
View user's profile Send private message
arachn1d
Guru
Guru


Joined: 15 Apr 2004
Posts: 369
Location: /var/www/wtf-dude.com lynx wtf-dude.com

PostPosted: Tue Apr 20, 2004 5:18 am    Post subject: Reply with quote

everything in netfilter is *
Back to top
View user's profile Send private message
nikolei
n00b
n00b


Joined: 15 Dec 2003
Posts: 37

PostPosted: Tue Apr 20, 2004 9:59 am    Post subject: Reply with quote

then there might be three possibilieties:
(1) a missmatch between your version of iptables and the kernel
(2) restrictions to access kernel parameters (normally also kernel based!).
(3) a typical computerproblem like "it does not work, but there is no reason. but someday it will work and we do not know why."
Back to top
View user's profile Send private message
arachn1d
Guru
Guru


Joined: 15 Apr 2004
Posts: 369
Location: /var/www/wtf-dude.com lynx wtf-dude.com

PostPosted: Wed Apr 21, 2004 6:45 am    Post subject: Reply with quote

how would i fix 1 or 2?
Back to top
View user's profile Send private message
arachn1d
Guru
Guru


Joined: 15 Apr 2004
Posts: 369
Location: /var/www/wtf-dude.com lynx wtf-dude.com

PostPosted: Thu Apr 22, 2004 3:09 am    Post subject: Reply with quote

bumpy
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4983
Location: Gothenburg, Sweden

PostPosted: Thu Apr 22, 2004 8:31 am    Post subject: Reply with quote

If you compile your kernel by hand the config file is /usr/src/linux/.config. If you use genkernel it is in /etc/genkernel or something like that.

In make menuconfig (or genkernel --menuconfig), under Network Options, do you have [*] Network packet filtering (replaces ipchains)? Then, under IP: Netfilter Configuration ---> make everything [M] as Janne Pikkarainen suggested. Then follow the normal procedures for compiling the kernel as given in the handbook.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
arachn1d
Guru
Guru


Joined: 15 Apr 2004
Posts: 369
Location: /var/www/wtf-dude.com lynx wtf-dude.com

PostPosted: Fri Apr 23, 2004 6:51 am    Post subject: Reply with quote

yes i have that
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4983
Location: Gothenburg, Sweden

PostPosted: Fri Apr 23, 2004 8:17 am    Post subject: Reply with quote

Just to make sure the modules are there. What's the output of
Code:
ls -l /lib/modules/`uname -r`/kernel/net/ipv4/netfilter/ip_tables.*

And you didn't forget to mount /boot before copying the new kernel? You may also want to consult the security guide.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
arachn1d
Guru
Guru


Joined: 15 Apr 2004
Posts: 369
Location: /var/www/wtf-dude.com lynx wtf-dude.com

PostPosted: Sat Apr 24, 2004 4:50 pm    Post subject: Reply with quote

oolo i didnt mount anything..


do i have to?

i did that line and i got no such directory
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4983
Location: Gothenburg, Sweden

PostPosted: Sun Apr 25, 2004 4:14 pm    Post subject: Reply with quote

If you have a separate boot partition you have to mount it before you copy a new kernel to it. Otherwise it's as good as copying it to /dev/null, the kernel won't be were your boot loader is looking for it. If you still have everything compiled built in the kernel, you won't have the modules, and most probably not the directory.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
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