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
smelialichu
n00b
n00b


Joined: 31 Jan 2004
Posts: 16

PostPosted: Sat Jan 31, 2004 9:26 pm    Post subject: Problems with iptables Reply with quote

I'm trying to set up shorewall so it will masquerade eth0 over ppp0, so this computer will act as the gateway to the internet for the other PC on the network.I first tried to emerge shorewall, but this failed compiling iptables. I found the problem in this forum and the solution was to upgrade kernel version, which I did to gentoo-sources 2.4.22-gentoo-r5. emerge shorewall then worked, compiling and installing shorewall, iptables and iproute. When I tried to start shorewall I get an error message that the module ip_tables could not be found. So I ran make menuconfig, enabled netfilter modules, compiled and installed them. But now when I try to start shorewall I get:

Code:
/lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ip_tables.o: /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ip_tables.o: unresolved symbol nf_unregister_sockopt
/lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ip_tables.o: /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ip_tables.o: unresolved symbol nf_register_sockopt
/lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed
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.


When I run depmod I get:
Code:
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/net/sk98lin/sk98lin.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/arp_tables.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/arptable_filter.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ip_conntrack.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ip_queue.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ip_tables.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_REJECT.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_stealth.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/iptable_filter.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/iptable_mangle.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/iptable_nat.o


I'm not sure how I can fix this now - I've searched for answers but haven't found any. I'm a bit of a gentoo newbie, so please be gentle(!) Thankyou in advance for your help.
Back to top
View user's profile Send private message
hifi
Apprentice
Apprentice


Joined: 17 Jul 2002
Posts: 184
Location: Graz

PostPosted: Sat Jan 31, 2004 9:52 pm    Post subject: Reply with quote

try reemerging iptables, I'm not sure if it helps
Back to top
View user's profile Send private message
Al Al Cool J
n00b
n00b


Joined: 01 Nov 2002
Posts: 25

PostPosted: Sat Jan 31, 2004 9:59 pm    Post subject: here's what I did Reply with quote

I had the exact same problem yesterday. After a lot of hunting I found the answer here:

https://forums.gentoo.org/viewtopic.php?t=104663

In short, I did the following:

Code:

cd /usr/src/linux
cp .config ..
make mrproper
cp ../.config .
make menuconfig


Then I made sure that my kernel config pretty much matched what was here: http://www.shorewall.net/kernel.htm

Then it's just a standard kernel re-compile

Code:

make dep && make clean bzImage modules modules_install
and so on...


And finally, I re-emerged iptables

I've done it on two systems, and it's worked like a charm (using vanilla-2.4.24 sources).
Back to top
View user's profile Send private message
smelialichu
n00b
n00b


Joined: 31 Jan 2004
Posts: 16

PostPosted: Sat Jan 31, 2004 10:34 pm    Post subject: Reply with quote

hifi: I should have mentioned - emerging iptables again was one of the first things I tried.

Al Al Cool J. I'll give that a go. Thanks
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