LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-04-2004, 04:07 AM   #1
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Rep: Reputation: 30
kernel 2.6.1: iptables doesn't run..but module is loaded


I've baked my own new 2.6.1-kernel for my redhat9 and the most functions run well (like usb&rpm's...). But I've got the following problem with loading and acting iptables. I've compiled "iptables" as a modul in my kernel:
Code:
# IP: Netfilter Configuration
#
# CONFIG_IP_NF_CONNTRACK is not set
# CONFIG_IP_NF_QUEUE is not set
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP_NF_MATCH_LIMIT=m
CONFIG_IP_NF_MATCH_IPRANGE=m
CONFIG_IP_NF_MATCH_MAC=m
CONFIG_IP_NF_MATCH_PKTTYPE=m
CONFIG_IP_NF_MATCH_MARK=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_LENGTH=m
CONFIG_IP_NF_MATCH_TTL=m
CONFIG_IP_NF_MATCH_TCPMSS=m
CONFIG_IP_NF_MATCH_OWNER=m
CONFIG_IP_NF_MATCH_PHYSDEV=m
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=m
# CONFIG_IP_NF_MANGLE is not set
CONFIG_IP_NF_TARGET_LOG=m
CONFIG_IP_NF_TARGET_ULOG=m
CONFIG_IP_NF_TARGET_TCPMSS=m
CONFIG_IP_NF_ARPTABLES=y
CONFIG_IP_NF_ARPFILTER=y
CONFIG_IP_NF_ARP_MANGLE=y
# CONFIG_IP_NF_COMPAT_IPCHAINS is not set
# CONFIG_IP_NF_COMPAT_IPFWADM is not set

#
# DECnet: Netfilter Configuration
#
# CONFIG_DECNET_NF_GRABULATOR is not set

#
# Bridge: Netfilter Configuration
#
# CONFIG_BRIDGE_NF_EBTABLES is not set
CONFIG_XFRM=y
# CONFIG_XFRM_USER is not set
do you see.... i also can load the module:(?)---...hmmm:
Code:
[root@mobile_abc1 scripts]# modprobe iptables
FATAL: Module iptables not found.
[root@mobile_abc1 scripts]# modprobe ip_tables
[root@mobile_abc1 scripts]# lsmod
Module                  Size  Used by
ip_tables              20240  0
autofs                 15488  0
ds                     14720  0
pcmcia_core            63616  1 ds
ohci1394               34816  0
ieee1394               79244  1 ohci1394
parport_pc             27016  0
parport                42560  1 parport_pc
ide_scsi               14980  0
usbmouse                5760  0
usbkbd                  7424  0
hid                    64000  0
but anyhow, i can't use and act iptables:
Code:
[root@mobile_abc1 scripts]# ./MASTERCHAINS
Filterregeln des MASTERCHAINS werden übernommen...
iptables v1.2.7a: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.2.7a: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.2.7a: can't initialize ip--...usw, usw
but why? has got anyone of you an idea, why it isn't running...? the module is loaded as you see above by the command "lsmod"...
regards&thanks
pablo
 
Old 02-04-2004, 09:00 AM   #2
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
how do you deal with that problem iptables & kernel 2.6.1....?
 
Old 02-05-2004, 11:11 AM   #3
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
can't initialize iptables table `filter': Table does not exist

You also need to load the ip_filter module. Probably some other modules also, it depends on your rules and what you want to do with iptables.
 
Old 02-05-2004, 11:53 AM   #4
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
do you know a list on the i-net where all the different iptables-modules are listed..(clearly arranged)?
thanks&regards
pablo
 
Old 02-06-2004, 03:46 AM   #5
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
I meant to say you need to load iptable_filter module. Thats what I get for posting from a windows machine.

Some iptables Documentation.


An example iptables script. Shows common modules to load.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Truecrypt: Kernel module not loaded Synatic Linux - Software 4 01-21-2006 02:43 PM
the kernel module for tv support could not be loaded ylts SUSE / openSUSE 3 04-15-2005 08:14 AM
iptables state module not loaded error rnj Fedora 2 10-28-2004 11:33 PM
ToshUtils does not run on a Tecra 8000, even though module loaded / compiled SBing Linux - Laptop and Netbook 0 07-28-2004 03:51 PM
kernel: No module symbols loaded - kernel modules not enabled. Qucho Debian 9 05-26-2004 02:50 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration