分类: LINUX
2011-12-01 17:18:45
Hi, I just updated to linux kernel 2.1.22 and when trying to use iptables, I get the following answer: # iptables -L iptables v1.3.8: can't initialize iptables table `filter': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. I read on other forums that it could come from the /boot/config file. And it should be true, when I compare my file to old ones I see that lot of things aren't configured. Let's look at its Networking part: ============================================# # Networking # CONFIG_NET=y # # Networking options # CONFIG_PACKET=y # CONFIG_PACKET_MMAP is not set CONFIG_UNIX=y # CONFIG_NET_KEY is not set CONFIG_INET=y CONFIG_IP_MULTICAST=y # # added by seb on 08/13/07 # enables conntrack #CONFIG_NF_CONNTRACK_ENABLED=m # CONFIG_NF_CONNTRACK=m CONFIG_NF_CONNTRACK_IPV4=m # CONFIG_IP_ADVANCED_ROUTER is not set CONFIG_IP_FIB_HASH=y CONFIG_IP_PNP=y CONFIG_IP_PNP_DHCP=y # CONFIG_IP_PNP_BOOTP is not set # CONFIG_IP_PNP_RARP 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_SYN_COOKIES is not set # CONFIG_INET_AH is not set # CONFIG_INET_ESP is not set # CONFIG_INET_IPCOMP is not set # CONFIG_INET_XFRM_TUNNEL is not set CONFIG_INET_TUNNEL=y # CONFIG_INET_XFRM_MODE_TRANSPORT is not set # CONFIG_INET_XFRM_MODE_TUNNEL is not set # CONFIG_INET_XFRM_MODE_BEET is not set CONFIG_INET_DIAG=y CONFIG_INET_TCP_DIAG=y # CONFIG_TCP_CONG_ADVANCED is not set CONFIG_TCP_CONG_CUBIC=y CONFIG_DEFAULT_TCP_CONG="cubic" # CONFIG_TCP_MD5SIG is not set CONFIG_IPV6=y # CONFIG_IPV6_PRIVACY is not set # CONFIG_IPV6_ROUTER_PREF is not set # CONFIG_IPV6_OPTIMISTIC_DAD is not set # CONFIG_INET6_AH is not set # CONFIG_INET6_ESP is not set # CONFIG_INET6_IPCOMP is not set # CONFIG_IPV6_MIP6 is not set # CONFIG_INET6_XFRM_TUNNEL is not set # CONFIG_INET6_TUNNEL is not set # CONFIG_INET6_XFRM_MODE_TRANSPORT is not set # CONFIG_INET6_XFRM_MODE_TUNNEL is not set # CONFIG_INET6_XFRM_MODE_BEET is not set # CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set CONFIG_IPV6_SIT=y # CONFIG_IPV6_TUNNEL is not set # CONFIG_IPV6_MULTIPLE_TABLES is not set # CONFIG_NETWORK_SECMARK is not set # # CONFIG_NETFILTER is not set # netfilter configuration by seb: # CONFIG_NETFILTER_NETLINK=m CONFIG_NF_CT_NETLINK=m CONFIG_NF_CONNTRACK_EVENTS=y # CONFIG_IP_DCCP is not set # CONFIG_IP_SCTP is not set # CONFIG_TIPC is not set # CONFIG_ATM is not set # CONFIG_BRIDGE is not set # CONFIG_VLAN_8021Q is not set # CONFIG_DECNET is not set # CONFIG_LLC2 is not set # CONFIG_IPX is not set # CONFIG_ATALK is not set # CONFIG_X25 is not set # CONFIG_LAPB is not set # CONFIG_ECONET is not set # CONFIG_WAN_ROUTER is not set # # QoS and/or fair queueing # # CONFIG_NET_SCHED is not set # # Network testing # # CONFIG_NET_PKTGEN is not set # CONFIG_NET_TCPPROBE is not set # CONFIG_HAMRADIO is not set # CONFIG_IRDA is not set # CONFIG_BT is not set # CONFIG_AF_RXRPC is not set ================================================= hope you can help me, thanks Sebastien. | |
08-15-2007, 09:04 PM | # |
Member
Registered: Jul 2006
Location: Joinville - SC, Brazil
Distribution: Gentoo, LinuxMint
Posts: 276
Blog Entries: 1 Rep:
|
The problem I see is in "# CONFIG_NETFILTER is not set". Try to set this as module. If it still doesn't works, then try to set ALL the netfilter related stuff. |
08-16-2007, 10:06 AM | # | |
Member
Registered: Jul 2006
Location: Joinville - SC, Brazil
Distribution: Gentoo, LinuxMint
Posts: 276
Blog Entries: 1 Rep:
|
Ok, before any further, be sure you have loaded the following modules:
ip_tables ip_conntrack iptable_filter ipt_state use the command: #lsmod | grep ip If these modules aren't loaded, then use the following commands: modprobe ip_tables modprobe ip_conntrack modprobe iptable_filter modprobe ipt_state All the modules are loaded? Yes? If the answer is "yes", then just let us know it and I will think about other possibilities. If you don't, then you're gonna need to recompile your kernel with these modules. How are you doing to recompile it? Do you use the following commands to recompile it? make dep && make clean && make bzImage && make && make install && make modules && make modules_install If you don't, then what do you use? This website might be helpful too: Quote:
Last edited by sparc86; 08-16-2007 at 10:22 AM. | |
08-22-2007, 12:49 PM | # |
Member
Registered: Jul 2006
Location: Joinville - SC, Brazil
Distribution: Gentoo, LinuxMint
Posts: 276
Blog Entries: 1 Rep:
|
Actually, I have updated to kernel 2.6.22 a few days ago. Then I realized that there are two issues which everyone might find problems: 1. iptables/netfilter 2. SATA disks Both because the order of it's options have been changed into the menuconfig, therefore you have to pay attention for that. So, if anyone is using old config files to compile the new .22, have to pay attention for the iptables/netfilter and the SATA disk configurations. |
09-20-2007, 12:24 AM | # | |
Member
Registered: Jul 2006
Location: Joinville - SC, Brazil
Distribution: Gentoo, LinuxMint
Posts: 276
Blog Entries: 1 Rep:
|
Quote:
Networking ---> Networking options ---> Network packet filtering framework (Netfilter) ---> Core Netfilter Configuration ---> Now just set the modules you need for your netfilter box. That's it, I hope now it works to you. Anyway, please let us know what happened, if it worked or not. | |
09-20-2007, 03:34 PM | # | |
Member
Registered: Jul 2006
Location: Joinville - SC, Brazil
Distribution: Gentoo, LinuxMint
Posts: 276
Blog Entries: 1 Rep:
|
Quote:
Be sure you have loaded all the necessary modules. Eg: modprobe ip_tables modprobe ip_conntrack modprobe iptable_filter modprobe ipt_state If you did it, then try to load this firewall script again, it should works. If it still doesn't works, then you didn't add the correct modules into the menuconfig. | |
09-22-2007, 07:34 AM | # | |
Member
Registered: Jul 2006
Location: Joinville - SC, Brazil
Distribution: Gentoo, LinuxMint
Posts: 276
Blog Entries: 1 Rep:
|
Quote:
You're welcome! |