Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
netfilter broken witn 2.6.16 kernel?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Thu Mar 23, 2006 3:00 pm    Post subject: netfilter broken witn 2.6.16 kernel? Reply with quote

I just built gentoo-sources-2.6.16 with the latest suspend2 patch applied. When I booted I got an error when iptables was started:
Quote:
module ip_tables not found
I fired-up make xconfig and looked under
Quote:
IP: netfilter configuration
and most of the options had disappeared! Anyone else seen this?
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
radfoj
Guru
Guru


Joined: 31 Dec 2004
Posts: 490
Location: Tísek, Czech Republic

PostPosted: Thu Mar 23, 2006 3:21 pm    Post subject: Reply with quote

Hi,

go to "Core Netfilter Configuration" and enable there "Netfilter Xtables Support" (its required for iptables support). There were some changes in 2.6.16 I guess, postmerge info about it would be nice.
Back to top
View user's profile Send private message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Thu Mar 23, 2006 3:39 pm    Post subject: Reply with quote

OK, that fixed the problem, thanks! The explanatory text for Netlink could be a bit clearer, like "You really need this"...
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
DerRalf
n00b
n00b


Joined: 13 Dec 2003
Posts: 34
Location: Bay Area, CA

PostPosted: Wed Mar 29, 2006 1:33 am    Post subject: Reply with quote

Thanks, this is good to know. I ran into the same problem.
Back to top
View user's profile Send private message
luche21
n00b
n00b


Joined: 18 Aug 2005
Posts: 20
Location: Milwaukee, WI

PostPosted: Sat Apr 01, 2006 1:37 am    Post subject: 2.6.16-gentoo-r1 ip_tables module not found Reply with quote

k, i'm seeing the same thing here... i've compiled in everything i see available, directly to the kernel... i don't load modules... i've got:
Network packet filtering
Network packet filtering debugging
Netfilter Xtables support
conntrack
Connection tracking
IP tables support

all compiled into the kernel...

dmesg shows on boot:
euclid linux # dmesg | grep tables
TCP: Hash tables configured (established 131072 bind 65536)
ip_tables: (C) 2000-2006 Netfilter Core Team


now i emerged iptables fine i've got an iptables list of chains already... so i can use iptables-restore, then... nothing... still gets this

euclid linux # iptables-restore /etc/iptables
FATAL: Module ip_tables not found.
iptables-restore v1.3.5: iptables-restore: unable to initializetable 'filter'

Error occurred at line: 3
Try `iptables-restore -h' or 'iptables-restore --help' for more information.


also, when trying to list the available chains (which should be none currently)
euclid linux # iptables -L
FATAL: Module ip_tables not found.
iptables v1.3.5: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.



ideas anyone?... haven't found anything besides this post about the 2.6.16 kernel and iptables... and haven't come across anything on netfilter.org yet...
someone help please!
Back to top
View user's profile Send private message
pumpichank
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jul 2005
Posts: 81

PostPosted: Mon Apr 24, 2006 6:56 pm    Post subject: Reply with quote

I had very similar problems, but if you're diligent with genkernel, you can eventually get all the appropriate modules enabled so that your old iptables configs will work again. There's no magic other than just trial and error.
Back to top
View user's profile Send private message
rishi
n00b
n00b


Joined: 11 Sep 2005
Posts: 56
Location: Australia

PostPosted: Tue Apr 25, 2006 11:48 pm    Post subject: Reply with quote

Hi there,

This one got me too!

I notice there are now heaps of new options in the kernel config relating to iptables...

Which ones do I need to set to get full / proper iptables functionality like before? :?:

I've looked through all the new options and there are many I don't understand.

Thanks!
_________________
--
Rishi
Melbourne, Australia.
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Wed Apr 26, 2006 10:31 am    Post subject: Reply with quote

This is how my .config looks like:
Quote:
CONFIG_NETFILTER=y
CONFIG_NETFILTER_XTABLES=m
CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m
CONFIG_NETFILTER_XT_TARGET_CONNMARK=m
CONFIG_NETFILTER_XT_TARGET_MARK=m
CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m
CONFIG_NETFILTER_XT_TARGET_NOTRACK=m
CONFIG_NETFILTER_XT_MATCH_COMMENT=m
CONFIG_NETFILTER_XT_MATCH_CONNBYTES=m
CONFIG_NETFILTER_XT_MATCH_CONNMARK=m
CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
CONFIG_NETFILTER_XT_MATCH_DCCP=m
CONFIG_NETFILTER_XT_MATCH_HELPER=m
CONFIG_NETFILTER_XT_MATCH_LENGTH=m
CONFIG_NETFILTER_XT_MATCH_LIMIT=m
CONFIG_NETFILTER_XT_MATCH_MAC=m
CONFIG_NETFILTER_XT_MATCH_MARK=m
CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m
CONFIG_NETFILTER_XT_MATCH_REALM=m
CONFIG_NETFILTER_XT_MATCH_SCTP=m
CONFIG_NETFILTER_XT_MATCH_STATE=m
CONFIG_NETFILTER_XT_MATCH_STRING=m
CONFIG_NETFILTER_XT_MATCH_TCPMSS=m

CONFIG_IP_NF_CONNTRACK=m
CONFIG_IP_NF_CT_ACCT=y
CONFIG_IP_NF_CONNTRACK_MARK=y
CONFIG_IP_NF_CONNTRACK_EVENTS=y
CONFIG_IP_NF_CT_PROTO_SCTP=m
CONFIG_IP_NF_FTP=m
CONFIG_IP_NF_IRC=m
CONFIG_IP_NF_NETBIOS_NS=m
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP_NF_MATCH_IPRANGE=m
CONFIG_IP_NF_MATCH_MULTIPORT=m
CONFIG_IP_NF_MATCH_TOS=m
CONFIG_IP_NF_MATCH_RECENT=m
CONFIG_IP_NF_MATCH_ECN=m
CONFIG_IP_NF_MATCH_DSCP=m
CONFIG_IP_NF_MATCH_AH_ESP=m
CONFIG_IP_NF_MATCH_TTL=m
CONFIG_IP_NF_MATCH_OWNER=m
CONFIG_IP_NF_MATCH_ADDRTYPE=m
CONFIG_IP_NF_MATCH_HASHLIMIT=m
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=m
CONFIG_IP_NF_TARGET_LOG=m
CONFIG_IP_NF_TARGET_ULOG=m
CONFIG_IP_NF_TARGET_TCPMSS=m
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_NAT_NEEDED=y
CONFIG_IP_NF_TARGET_MASQUERADE=m
CONFIG_IP_NF_TARGET_REDIRECT=m
CONFIG_IP_NF_TARGET_NETMAP=m
CONFIG_IP_NF_TARGET_SAME=m
CONFIG_IP_NF_NAT_SNMP_BASIC=m
CONFIG_IP_NF_NAT_IRC=m
CONFIG_IP_NF_NAT_FTP=m
CONFIG_IP_NF_MANGLE=m
CONFIG_IP_NF_TARGET_TOS=m
CONFIG_IP_NF_TARGET_ECN=m
CONFIG_IP_NF_TARGET_DSCP=m
CONFIG_IP_NF_TARGET_TTL=m
CONFIG_IP_NF_TARGET_CLUSTERIP=m
CONFIG_IP_NF_RAW=m
I'm sure a lot of the modules are not needed but hey you wanted a working example ;-)

HTH
swimmer
Back to top
View user's profile Send private message
dj_farid
l33t
l33t


Joined: 14 Jun 2004
Posts: 613

PostPosted: Thu Jun 15, 2006 11:32 am    Post subject: Reply with quote

I've upgraded my kernel from some four months old kernel to the vanilla-sources-2.6.19. I had a working iptables config with the old kernel.
After installing the new kernel, I had my first reboot of the server for four months...

I am having the same problem as this thread describes. So I rebooted with the old kernel and got iptables working.

I don't have module support compiled into my kernel. Everything is compiled in.
Does anyone figure out, what is need needed in the new kernels to get netfilter working with the old iptables configs?


PS.
After the reboot I get "Connection refused" when I try to ssh into the server. Don't know why yet.
The monitor that I have for the server is a TFT that works for only 6 minutes before the picture either goes black or scrambled :(
Instead of dragging my 19" monitor in to the small closet with a lot of junk on the other side of my apartment, I am hoping to get the new kernel working within 6 minutes with your help :)
Back to top
View user's profile Send private message
AndiZed
n00b
n00b


Joined: 28 May 2005
Posts: 23
Location: Franconia / Germany

PostPosted: Fri Jun 16, 2006 11:48 am    Post subject: Reply with quote

i had similar problems with iptables and the 2.6.16 kernel.

i finally got it working again by using the following settings. maybe you wont need all these options, but i was too lazy to find out which i dont really need :-):

-> Networking -> Networking Options -> Network Packet Filtering -> Core Netfilter Configuration
[*] .. Everything except "Netfilter netlink interface"

-> Networking -> Networking Options -> Network Packet Filtering -> IP: Netfilter Configuration
[*] Connection tracking (required for masq/NAT)
[*] IP tables support (required for filtering/masq/NAT) and all Sub-Options!
Back to top
View user's profile Send private message
dj_farid
l33t
l33t


Joined: 14 Jun 2004
Posts: 613

PostPosted: Fri Jun 16, 2006 2:18 pm    Post subject: Reply with quote

Thanks AndiZed, that did the trick!
Back to top
View user's profile Send private message
rizzurant
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2006
Posts: 83
Location: Indonesia

PostPosted: Wed Aug 09, 2006 12:15 am    Post subject: Reply with quote

OMG,
severeal times i change kernel, but netfilter dont want to start
i use 2.6.16-gentoo-r3

let me try before :mrgreen:
Back to top
View user's profile Send private message
donjames
Apprentice
Apprentice


Joined: 19 Dec 2004
Posts: 251
Location: 32°9'50" N 94°50'54" W

PostPosted: Wed Oct 18, 2006 4:45 am    Post subject: iptables not working with nat Reply with quote

Hi Andized,

I tried what you suggested with the kernel configuration.

Now nat works.

Thanks for the help.

Sincerely,

Don James
Henderson, TX USA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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