View previous topic :: View next topic |
Author |
Message |
mxs Tux's lil' helper

Joined: 30 Jun 2004 Posts: 81
|
Posted: Thu Apr 14, 2005 10:17 pm Post subject: Iptables and firestarter |
|
|
Hey there
Reacently I have emerged the iptables and the firestarter. Nothing there, but how do I get the firestarter to "talk" with the iptables? when I fire up the the firestarter I get this line
FATAL: Module ip_tables not found
I have tried to remerge firestarter with the use flag USE="iptables" but it dosent help. What could be wrong? I think that my kernel is updated, but Im not sure. Maybe thats why I get the error? How do I tjeck that?
Hope someone will help me!!
Martin Slot _________________ Slot\
"All your base are belong to us" |
|
Back to top |
|
 |
geniux Veteran


Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Thu Apr 14, 2005 10:51 pm Post subject: |
|
|
Try:
assuming that ip-tables are built as a module _________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
 |
mxs Tux's lil' helper

Joined: 30 Jun 2004 Posts: 81
|
Posted: Fri Apr 15, 2005 5:24 am Post subject: |
|
|
Hey
I havent built it as a module! Should I do that? _________________ Slot\
"All your base are belong to us" |
|
Back to top |
|
 |
geniux Veteran


Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Fri Apr 15, 2005 10:24 am Post subject: |
|
|
Have a look in your modules dir:
Code: |
find /lib/modules/<kernel version>/ -type f -iname '*.ko'
('*.o' if your kernel is a 2.4 version)
|
The module would be ip_tables.
If it's not there build it as a module _________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
 |
mxs Tux's lil' helper

Joined: 30 Jun 2004 Posts: 81
|
Posted: Sat Apr 16, 2005 11:25 am Post subject: |
|
|
I get a hole bunch of data printed to the screen, how do I stop it from just printing so I get a little a time? _________________ Slot\
"All your base are belong to us" |
|
Back to top |
|
 |
mxs Tux's lil' helper

Joined: 30 Jun 2004 Posts: 81
|
Posted: Sat Apr 16, 2005 11:31 am Post subject: |
|
|
if I seach in that lib. you gave me after words like "iptables" , "ip*" and so, I dont get anything that suggest that I have iptables installed as a module in my kernel. If I emerge iptables and try to insmod it, it doesnt work Is there any other way to write a module to the kernel? _________________ Slot\
"All your base are belong to us" |
|
Back to top |
|
 |
geniux Veteran


Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Sat Apr 16, 2005 12:23 pm Post subject: |
|
|
Try:
Code: |
cd /usr/src/linux
make net/ipv4/netfilter/ip_tables.o
modules-update
|
This should have built the module, now try:
_________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
 |
mxs Tux's lil' helper

Joined: 30 Jun 2004 Posts: 81
|
Posted: Sat Apr 16, 2005 3:09 pm Post subject: |
|
|
Hey
I have tried that, but when I do the make, I just get a lot for errors:
opts')
net/ipv4/netfilter/ip_tables.c:1717: error: unknown field `set_optmin' specified in initializer
net/ipv4/netfilter/ip_tables.c:1717: warning: excess elements in struct initiali zer
net/ipv4/netfilter/ip_tables.c:1717: warning: (near initialization for `ipt_sock opts')
net/ipv4/netfilter/ip_tables.c:1718: error: unknown field `set_optmax' specified in initializer
net/ipv4/netfilter/ip_tables.c:1718: warning: excess elements in struct initiali zer
net/ipv4/netfilter/ip_tables.c:1718: warning: (near initialization for `ipt_sock opts')
net/ipv4/netfilter/ip_tables.c:1719: error: unknown field `set' specified in ini tializer
net/ipv4/netfilter/ip_tables.c:1719: warning: excess elements in struct initiali zer
net/ipv4/netfilter/ip_tables.c:1719: warning: (near initialization for `ipt_sock opts')
net/ipv4/netfilter/ip_tables.c:1720: error: unknown field `get_optmin' specified in initializer
net/ipv4/netfilter/ip_tables.c:1720: warning: excess elements in struct initiali zer
net/ipv4/netfilter/ip_tables.c:1720: warning: (near initialization for `ipt_sock opts')
net/ipv4/netfilter/ip_tables.c:1721: error: unknown field `get_optmax' specified in initializer
net/ipv4/netfilter/ip_tables.c:1721: warning: excess elements in struct initiali zer
net/ipv4/netfilter/ip_tables.c:1721: warning: (near initialization for `ipt_sock opts')
net/ipv4/netfilter/ip_tables.c:1722: error: unknown field `get' specified in ini tializer
net/ipv4/netfilter/ip_tables.c:1722: warning: excess elements in struct initiali zer
net/ipv4/netfilter/ip_tables.c:1722: warning: (near initialization for `ipt_sock opts')
net/ipv4/netfilter/ip_tables.c: In function `init':
net/ipv4/netfilter/ip_tables.c:1844: warning: implicit declaration of function ` nf_register_sockopt'
net/ipv4/netfilter/ip_tables.c:1861: warning: implicit declaration of function ` nf_unregister_sockopt'
net/ipv4/netfilter/ip_tables.c: At top level:
net/ipv4/netfilter/ip_tables.c:1715: error: storage size of `ipt_sockopts' isn't known
make[1]: *** [net/ipv4/netfilter/ip_tables.o] Error 1
make: *** [net/ipv4/netfilter/ip_tables.o] Error 2
bash-2.05b# modules-update
bash-2.05b# modprobe ip_tables
FATAL: Module ip_tables not found.
Why, I cant say. Im not that into Gentoo yet. _________________ Slot\
"All your base are belong to us" |
|
Back to top |
|
 |
Riftwing Apprentice


Joined: 06 Oct 2002 Posts: 293
|
Posted: Sat Apr 16, 2005 9:53 pm Post subject: |
|
|
Just make menuconfig and make everything in netfilter modularized. Exit, make modules, make modules_install. _________________ Good, bad, I'm the guy with the gun. - Ash, Army of Darkness |
|
Back to top |
|
 |
mxs Tux's lil' helper

Joined: 30 Jun 2004 Posts: 81
|
Posted: Sun Apr 17, 2005 11:33 am Post subject: |
|
|
Oh can I do that when i have been using genkernel? _________________ Slot\
"All your base are belong to us" |
|
Back to top |
|
 |
mxs Tux's lil' helper

Joined: 30 Jun 2004 Posts: 81
|
Posted: Sun Apr 17, 2005 11:42 am Post subject: |
|
|
Im stupid. Just made a genkernel --menuconfig all . But I have never been doing this before. Where should I look? Im trying  _________________ Slot\
"All your base are belong to us" |
|
Back to top |
|
 |
|