View previous topic :: View next topic |
Author |
Message |
nathan_ekstrom n00b
Joined: 23 Jan 2003 Posts: 11
|
Posted: Fri Jan 24, 2003 6:56 am Post subject: ip_tables wont load... |
|
|
I have tried the stable kernel and the testing kernel. I've rebuilt each with several different configurations but no matter what I do whenever I "modprobe ip_tables" it gives me this "/lib/modules/2.4.19-gentoo-r10/kernel/net/ipv4/netfilter/ip_tables.o: unresolved symbol nf_unregister_sockopt
/lib/modules/2.4.19-gentoo-r10/kernel/net/ipv4/netfilter/ip_tables.o: unresolved symbol nf_register_sockopt
/lib/modules/2.4.19-gentoo-r10/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.19-gentoo-r10/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.19-gentoo-r10/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed"
if anyone has any sugestions please let me know, thanks. |
|
Back to top |
|
|
Sven Vermeulen Retired Dev
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Fri Jan 24, 2003 7:21 am Post subject: |
|
|
Make sure your System.map is copied to /boot/ with the correct postfix (f.i. if the kernel is called vmlinuz-2.4.20, then System.map-2.4.20). Also, recompile the whole kernel and use it, not only the modules. Take also note that you probably want several other kernelconfiguration options applied; not only CONFIG_IP_NF_IPTABLES, but also CONFIG_IP_NF_NAT if you want to use NAT, CONFIG_IP_NF_FILTER if you want to be able to filter the packets etc... |
|
Back to top |
|
|
zaftro n00b
Joined: 07 Jan 2003 Posts: 39 Location: Melbourne, Australia
|
Posted: Fri Jan 24, 2003 10:40 am Post subject: |
|
|
Hiya,
This previously happened to me aswell. To fix the problem I did a "make mrproper" before compiling the kernel, ofcouse I backed up the '.config' file first...
Code: | # cd /usr/src/linux
# cp .config /root/.config
# make mrproper
# cp /root/.config ./
# make dep
# make clean
# make bzImage
.
.
.
|
I hope that works for you. If not, have a look at these threads:
https://forums.gentoo.org/viewtopic.php?t=1008
https://forums.gentoo.org/viewtopic.php?t=3009
Goodluck,
zaftro |
|
Back to top |
|
|
nathan_ekstrom n00b
Joined: 23 Jan 2003 Posts: 11
|
Posted: Fri Jan 24, 2003 2:55 pm Post subject: Thanks for your help |
|
|
Thanks for the help guys. Also sorry for the repost of a question. I tried the quick search and looked through this forum quickly but I gueess I just missed them. But thanks again it works! |
|
Back to top |
|
|
axxackall l33t
Joined: 06 Nov 2002 Posts: 651 Location: Toronto, Ontario, 3rd Rock From Sun
|
Posted: Thu Feb 06, 2003 2:08 pm Post subject: |
|
|
Does anyone know any up-to-date document about iptables in Gentoo? "network-security" document seems a bit outdated and doesn't really help. Searching in forums returns dozens different advises, some of them inconsistent with each other. |
|
Back to top |
|
|
|