Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 17675 - ipchains init script should detect the kernel version
ipchains init script should detect the kernel version
Status: CLOSED DUPLICATE of bug 22612
Product: Red Hat Linux
Classification: Retired
Component: ipchains (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Nalin Dahyabhai
Depends On:
  Show dependency treegraph
Reported: 2000-09-19 03:58 EDT by Pekka Savola
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-01-08 16:45:28 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
kernel 2.4 compatibility for ipchains script (318 bytes, patch)
2000-10-10 03:52 EDT, Pekka Savola
no flags Details | Diff

  None (edit)
Description Pekka Savola 2000-09-19 03:58:26 EDT
RH 7.0 Final.

If you're using /etc/rc.d/init.d/ipchains, and upgrade to 2.4 kernel (e.g.
the preview one), the script
will start to complain loudly about the availability of proper firewalling
in the kernel.

If there is an easy way, the script should
 - Detect if 2.4 kernel is being used
 - (or, if easy) detect if proper firewalliing has been configured in
Comment 1 Nalin Dahyabhai 2000-09-19 12:39:58 EDT
Newer versions of the script check to make sure that you've at least got 2.2
installed.  Since the firewalling capabilities in 2.4 are implemented using
iptables, we'll have to figure out how to best deal with the transition.
Comment 2 Pekka Savola 2000-09-19 13:09:09 EDT
Well, it's not exactly graceful, but running 'ipchains -L -n' should always 
work without most of the side-effects (prints out ipchains: Incompatible 
with this kernel, for example).
Comment 3 Pekka Savola 2000-10-10 03:51:04 EDT
I thought about this a little.  iptables-save and -restore are broken right now,
and they're not
exactly very clean for transitioning.

The easiest way is to enable ipchains.o module which emulates ipchains if
init.d/ipchains is started.

A patch attached.
Comment 4 Pekka Savola 2000-10-10 03:52:18 EDT
Created attachment 3966 [details]
kernel 2.4 compatibility for ipchains script
Comment 5 Pekka Savola 2001-01-08 16:44:22 EST
iptables-{save,restore} should work in iptables-1.2.0.
Comment 6 Pekka Savola 2001-01-08 16:57:03 EST
gt@esi.ac.at's fix is better.

But notice that there's still save/restore issue to deal with, with regular iptables.

*** This bug has been marked as a duplicate of 22612 ***

Note You need to log in before you can comment on or make changes to this bug.