Skip to contentSkip to conversation

Updated to kernel 2.4.19 and now ipchains and iptables are broke.

DISCUSSION Marc-Christian Petersen 2 participants 3 messages Sep 26, 2002

lore
Share & tools
lore
#0 lore raw

Hi Nathan,

Quoted 7 lines

This is surely the greenest of green questions (sorry), but I finally got my kernel re-compiled the way I want it using the 2.4.19 sources from kernel.org. It loads, seems to be working fine, except ipchains and iptables... ipchains insists that it is incompatible with my kernel, and iptables isn't sure what's going on but it thinks maybe something (. Well fine. I downloaded the latest versions of ipchains/tables from rpmfind and upgraded, same thing.

"Incompatible with this kernel" for ipchains seems so that you have compiled Netfilter stuff into your kernel.

"itself or the kernel needs upgrading" for iptables seems so that you either haven't compiled netfilter as module(s) or static into the kernel and forgot something in the kernel config.

Quoted 3 lines

I haven't been able to find any actual solutions off google for this... a few people mention the same problem but no fixes. Can someone point this rookie in the right direction to fix my packet filters? :-)

Check your kernel config. "make menuconfig" or "xconfig" and goto:

Networking options --->
IP: Netfilter Configuration --->

and look if you did it properly.

Signature · 8 lines
Kind regards
        Marc-Christian Petersen

http://sourceforge.net/projects/wolk

PGP/GnuPG Key: 1024D/569DE2E3DB441A16
Fingerprint: 3469 0CF8 CA7E 0042 7824 080A 569D E2E3 DB44 1A16
Key available at www.keyserver.net. Encrypted e-mail preferred.
#1 lore raw

I saw the config option for netfilter that said if you use this it won't use ipchains, so I said no to that...

The section of my .config file from make config (yeah I'm a glutton for punishment):

# 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=y
# CONFIG_IP_MULTIPLE_TABLES is not set
# CONFIG_IP_ROUTE_MULTIPATH is not set
# CONFIG_IP_ROUTE_TOS is not set
CONFIG_IP_ROUTE_VERBOSE=y
# CONFIG_IP_ROUTE_LARGE_TABLES is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
CONFIG_NET_IPGRE=y
# CONFIG_NET_IPGRE_BROADCAST is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_ARPD is not set
# CONFIG_INET_ECN is not set
CONFIG_SYN_COOKIES=y
CONFIG_IPV6=y
# CONFIG_KHTTPD is not set
# CONFIG_ATM is not set
# CONFIG_VLAN_8021Q is not set

----- Original Message -----
From: "Marc-Christian Petersen" <[email protected]>
To: <[email protected]>
Cc: "Nathan" <[email protected]>
Sent: Thursday, September 26, 2002 11:02 AM
Subject: Re: Updated to kernel 2.4.19 and now ipchains and iptables are broke.

Hi Nathan,

Quoted 1 line

This is surely the greenest of green questions (sorry), but I finally got

my

Quoted 6 lines

kernel re-compiled the way I want it using the 2.4.19 sources from kernel.org. It loads, seems to be working fine, except ipchains and iptables... ipchains insists that it is incompatible with my kernel, and iptables isn't sure what's going on but it thinks maybe something (. Well fine. I downloaded the latest versions of ipchains/tables from rpmfind and upgraded, same thing.

"Incompatible with this kernel" for ipchains seems so that you have compiled Netfilter stuff into your kernel.

"itself or the kernel needs upgrading" for iptables seems so that you either haven't compiled netfilter as module(s) or static into the kernel and forgot something in the kernel config.

Quoted 3 lines

I haven't been able to find any actual solutions off google for this... a few people mention the same problem but no fixes. Can someone point this rookie in the right direction to fix my packet filters? :-)

Check your kernel config. "make menuconfig" or "xconfig" and goto:

Networking options --->
IP: Netfilter Configuration --->

and look if you did it properly.

--
Kind regards
Marc-Christian Petersen

http://sourceforge.net/projects/wolk

PGP/GnuPG Key: 1024D/569DE2E3DB441A16
Fingerprint: 3469 0CF8 CA7E 0042 7824 080A 569D E2E3 DB44 1A16 Key available at www.keyserver.net. Encrypted e-mail preferred.

#2 lore raw

On Thursday 26 September 2002 19:11, Nathan wrote:

Hi Nathan,

Quoted 2 lines

I saw the config option for netfilter that said if you use this it won't use ipchains, so I said no to that...

Yep, that's true if you build Netfilter into your kernel, not as Module(s). Build both, Netfilter + stuff and ipchains as modules and you are happy.

So you are able to use both (not at the same time for sure.
Just "modprobe ipchains" and use ipchains.
If you want to play with Netfilter, just "rmmod ipchains; modprobe ip_tables" and you can use iptables.

Signature · 8 lines
Kind regards
        Marc-Christian Petersen

http://sourceforge.net/projects/wolk

PGP/GnuPG Key: 1024D/569DE2E3DB441A16
Fingerprint: 3469 0CF8 CA7E 0042 7824 080A 569D E2E3 DB44 1A16
Key available at www.keyserver.net. Encrypted e-mail preferred.