Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with iptables!
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
cod3gen
n00b
n00b


Joined: 21 May 2002
Posts: 4
Location: Oslo

PostPosted: Tue May 21, 2002 6:46 pm    Post subject: Problems with iptables! Reply with quote

I've got a problem with IPtables. I want to set up my home network for sharing internet connection. I've read this HOWTO: http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO and compiled my kernel straight after that howto...(tried with modules and compiled into the kernel) but still get confused because:
- I still can't load the module ip_tables. And got the same error message even if I've compiled ip tables into the kernel (using iptables-1.2.6a).

In the boot progress (well actually in the deafult progress after the boot) and when I'm trying modprobe ip_tables I get this message:

Code:
# modprobe ip_tables
/lib/modules/2.4.19-gentoo-r4/kernel/net/ipv4/netfilter/ip_tables.o: unresolved symbol nf_unregister_sockopt
/lib/modules/2.4.19-gentoo-r4/kernel/net/ipv4/netfilter/ip_tables.o: unresolved symbol nf_register_sockopt
/lib/modules/2.4.19-gentoo-r4/kernel/net/ipv4/netfilter/ip_tables.o: insmod
/lib/modules/2.4.19-gentoo-r4/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.19-gentoo-r4/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed


(I'm using a rc.firewall-2.4-stronger script that comes with the HOWTO above with the only modification setting the iptables right path).

Someone got any idea on any possible solution for this?
Back to top
View user's profile Send private message
shakti
Guru
Guru


Joined: 15 May 2002
Posts: 358
Location: omnipresent

PostPosted: Wed May 22, 2002 8:21 pm    Post subject: Reply with quote

same error here...searching for answers :?:
_________________
Using Gentoo since 2002.
Back to top
View user's profile Send private message
Snoopy
Guest





PostPosted: Sun May 26, 2002 2:47 am    Post subject: Reply with quote

Does IP-Masq need iptables? Ok read the how to and I see it does. Reading the how to there are alot of deps to the kernel. Have you checked to make sure you have all of the options selected for the kernel that need to be (compiled into the kernel that is). Second, it talks about patching the kernel with iptables, not sure if the is needed but it caught my eye. Might need a kernel upgrade. Is the version of iptables you have the newest version? I don't really know a solution but trying to give possible areas to look at. I will be setting up iptables myslef soon and would like to see you get this resloved incase I run into a similar situation.
Back to top
marks
Guest





PostPosted: Sun May 26, 2002 4:52 pm    Post subject: do not compile ipchains and ipfwadm modules Reply with quote

When compiling the kernel, make sure you do not compile the ipchains and ipfwadm modules; they are just there for backwards compatibility.

As I found out, even if you do not compile ipchains and ipfwadm directly into the kernel, they cause all sorts of frustrating errors when compiled as modules. When you omit them, you should be able to 'modprobe ip_tables'.

Mark Spanbroek
Back to top
Mr_Chicken
n00b
n00b


Joined: 26 Aug 2002
Posts: 6
Location: Wa, USA

PostPosted: Fri Nov 08, 2002 7:29 am    Post subject: Reply with quote

I get the same errors, but taking out ipchains and ipfwadm didn't help. I'm using 2.4.19-gentoo-r7, but I believe the same thing happens with r9. Did this fix the problem for the original poster?
Back to top
View user's profile Send private message
noise
n00b
n00b


Joined: 07 Nov 2002
Posts: 35

PostPosted: Fri Nov 08, 2002 10:03 am    Post subject: Reply with quote

i'm having the same error (used vanilla)

i did it like this but dont know if that does the same thing :)

rc-update add iptables boot
and the boot sequence is bringing iptables up with no errors

well i'm new to this and trying to figure out how it's working.. i would like to see how this is gonna end for yall...
please replay if u get it resolved...
Back to top
View user's profile Send private message
securiteaze
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 77
Location: Tulsa,Oklahoma

PostPosted: Fri Nov 08, 2002 5:03 pm    Post subject: Reply with quote

What kernel compiling procedure are you using? :?:
Try this (assuming you use grub)
Code:
mount /boot
cd /usr/src/linux
make mrproper
make menuconfig
make dep
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/
cp System.map /boot/

If that doesn't work, what is the output of
Code:
lsmod
or
Code:
grep CONFIG_IP_NF /usr/src/linux/.config

_________________
Blah..
Back to top
View user's profile Send private message
mterlouw
n00b
n00b


Joined: 17 Feb 2004
Posts: 32

PostPosted: Sun Jun 13, 2004 1:18 am    Post subject: Reply with quote

I'm having the same problem. I found this but I think my System.map is fine. I'm going to try re-emerging vanilla-sources and start over.

Ok, the ip_tables will load now. I think the make mrproper command does the trick.
Back to top
View user's profile Send private message
Velcro
n00b
n00b


Joined: 09 May 2004
Posts: 9

PostPosted: Sun Jun 13, 2004 6:04 am    Post subject: Reply with quote

Hmmm, kernel 2.4.19 seems a little old, I have linux 2.4.25-r3, istalled from "gentoo-sources". Have you updated your world recently?
If so have a look in /var/cache/edb/world and check that sys-kernel/gentoo-sources is in there so your kernel sources does get updated.
Hope this helps.
Cheers, Martin
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