Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
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
li1_getoo
l33t
l33t


Joined: 20 Oct 2002
Posts: 661
Location: Queens , NY

PostPosted: Sat Jan 04, 2003 6:00 am    Post subject: iptables Reply with quote

can somebody help me please on setting up my ip tables
i am gona post my networking option and please tell me which ones i have to chose
i did read , asked on #gentoo and while 'make menuconfig ' used 'shift + ?' i guess i am blind
this is what i have so far
Code:
#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
# CONFIG_NETLINK_DEV is not set
# CONFIG_NETFILTER is not set
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_ARPD is not set
# CONFIG_INET_ECN is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_IPV6 is not set
# CONFIG_KHTTPD is not set
# CONFIG_ATM is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set


if possible to post urs would be a lot more help then u think
p.s. /usr/src/linux/.config
thank u very very much
Back to top
View user's profile Send private message
chemical
n00b
n00b


Joined: 10 Apr 2002
Posts: 29
Location: San Diego, CA

PostPosted: Sat Jan 04, 2003 6:48 am    Post subject: Reply with quote

set CONFIG_NETFILTER
Back to top
View user's profile Send private message
li1_getoo
l33t
l33t


Joined: 20 Oct 2002
Posts: 661
Location: Queens , NY

PostPosted: Mon Jan 06, 2003 5:02 am    Post subject: Reply with quote

k i fugured it out and loaded a whole lot of modules but when i run
Code:
iptables -L
/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
iptables v1.2.7a: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.


i just wanna know if thats normal , i run
iptables -L right after i compiled the kernel
Back to top
View user's profile Send private message
keratos68
Guru
Guru


Joined: 27 Dec 2002
Posts: 561
Location: Blackpool, Lancashire, UK.

PostPosted: Tue Jan 07, 2003 9:58 am    Post subject: Reply with quote

Sounds like the kernel space driver interface code is not present in your kernel, so the object modules cannot communicate with the kernel.

You need to make sure that:
/usr/src/linux is symlinked to /usr/src/linux-2.XXXXXX (whatever)
You rebuilt the kernel?
You copied the new kernel to your /boot device?
You updated GRUB or LILO? - in the case of LILO, you MUST rerun lilo.

If you did all this, then rebuild the kernel viz:

Code:
cd /usr/src/linux
cp .config /var/tmp/.config
make mrproper
cp /var/tmp/.config .
make dep
make bzImage && make modules && make modules_install


Incidentally, I would enable (as modules) ALL the NETFILTER options with the exception of Experimental ones. This allows full flexibility with iptables because all the modules will be available however only a subset will be loaded into kernel space, depending upon your iptables definitions.
_________________
Someone told me that "..they only ever made one mistake...."

...and that's when they said they were wrong!!
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