Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Iptables help
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
ekinskofer
n00b
n00b


Joined: 07 May 2004
Posts: 59

PostPosted: Wed Oct 13, 2004 7:47 am    Post subject: Iptables help Reply with quote

hey guys,

I've tried to get iptables on my box now for a day or so and I'm having a hard time with it.

emerged iptables, recompiled and installed my kernal, set all the use flags correctly (or so I think) and I'm getting the following:

modprobe ip_tables
/lib/modules/2.4.26-gentoo-r9/kernel/net/ipv4/netfilter/ip_tables.o: /lib/modules/2.4.26-gentoo-r9/kernel/net/ipv4/netfilter/ip_tables.o: unresolved symbol nf_unregister_sockopt
/lib/modules/2.4.26-gentoo-r9/kernel/net/ipv4/netfilter/ip_tables.o: /lib/modules/2.4.26-gentoo-r9/kernel/net/ipv4/netfilter/ip_tables.o: unresolved symbol nf_register_sockopt
/lib/modules/2.4.26-gentoo-r9/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.26-gentoo-r9/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.26-gentoo-r9/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed

any thoughts? I'm new at linux so any help is great

thanks!
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Wed Oct 13, 2004 8:51 am    Post subject: Reply with quote

boot with the new kernel and do an emerge iptables again, this should fix it.


_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
ekinskofer
n00b
n00b


Joined: 07 May 2004
Posts: 59

PostPosted: Wed Oct 13, 2004 4:27 pm    Post subject: Reply with quote

hmm... I guess I tried everything but this.. I'll give this a go when I get home..

thanks!
Back to top
View user's profile Send private message
ekinskofer
n00b
n00b


Joined: 07 May 2004
Posts: 59

PostPosted: Thu Oct 14, 2004 5:58 am    Post subject: Reply with quote

still getting the same errors..

did a make clean, make dep, make bzImage, modules, modules install, copied new kernal to boot, rebooted, re-emerged iptables, modprobe ip_tables... same error messages as below..

what step am I missing?

thanks in advance.

E
Back to top
View user's profile Send private message
NiklasH
Apprentice
Apprentice


Joined: 30 Aug 2002
Posts: 211
Location: On top of something

PostPosted: Thu Oct 14, 2004 8:11 am    Post subject: Reply with quote

iptables is started via /etc/init.d/iptables {start|stop|restart}. You shouldn't normally have to modprobe.
Does that work? Also, just in case: have you compiled in netfilter (which is iptables' real name) support in your kernel?
_________________
Banana Republic
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Thu Oct 14, 2004 8:46 am    Post subject: Reply with quote

Do you have netfilter support activated on you new kernel config?


_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Thu Oct 14, 2004 9:50 am    Post subject: Reply with quote

ekinskofer wrote:
still getting the same errors..

did a make clean, make dep, make bzImage, modules, modules install, copied new kernal to boot, rebooted, re-emerged iptables, modprobe ip_tables... same error messages as below..

what step am I missing?

thanks in advance.

E


Sorry, but I have to ask.

Did you `mount /boot` before you copied your new kernel to /boot?
_________________
http://get.a.clue.de
Back to top
View user's profile Send private message
ekinskofer
n00b
n00b


Joined: 07 May 2004
Posts: 59

PostPosted: Sat Oct 16, 2004 6:37 am    Post subject: Reply with quote

hey guys,

I'm still having a problem here..

checked my kernel setup and I've toggled pretty much everything under the netfilter section. Except:

Amanda protocol support
userspace queing
nat of local connections
ipchains 2.2 style
ipfwadm

also if I go to /etc/init.d/iptables start, gives me:

* Not starting iptables. First create some rules then run
* /etc/init.d/iptables save

so even if I try to at the command line do something simple like iptables -F I get the previous errors..

regarding the mount /boot.. I'm pretty sure that this is done when I compile the new kernel, copy to /boot and then reboot.. correct?

thanks for all the help guys.. hungry to start playing with this.. just gotta get past this hurdle.

cheers.
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Sat Oct 16, 2004 6:55 am    Post subject: Reply with quote

splooge wrote:
Sorry, but I have to ask.

Did you `mount /boot` before you copied your new kernel to /boot?


You need to do this before copying the kernel over.
_________________
http://get.a.clue.de
Back to top
View user's profile Send private message
Spockmeat
n00b
n00b


Joined: 05 Sep 2004
Posts: 39

PostPosted: Sat Oct 16, 2004 6:58 am    Post subject: Reply with quote

well, if you just do a :
/etc/init.d/iptables save
/etc/init.d/iptables start


it will save a blank file for you, and start up iptables with that blank file, so then you should be able to simply add rules using
/sbin/iptables

chack the man for the specifics of the rules commands. :)
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