Bug 63792 - /etc/init.d/ipchains stop should rmmod ipchains
Summary: /etc/init.d/ipchains stop should rmmod ipchains
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ipchains
Version: 7.2
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Mike A. Harris
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2002-04-18 19:35 UTC by Need Real Name
Modified: 2007-04-18 16:42 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2002-05-08 23:41:34 UTC

Attachments (Terms of Use)

Description Need Real Name 2002-04-18 19:35:57 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.9-31 i686)

Description of problem:
When you do a /etc/init.d/ipchiains stop it leaves the ipchains module still
running.  So if you stop ipchains and try to start iptables, iptables will not
start because iptables rc script does an lsmod and exits if it sees the ipchains
modules still running.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. /etc/init.d/ipchains stop
2.  lsmod | grep ipchains

Actual Results:  ipchains was still running.

Expected Results:  ipchains should not have shown up in a lsmod.

Additional info:

Try running /etc/init.d/iptables start after
/etc/init.d/ipchains stop and you will see
that iptables will not start up will the ipchains modules is still loaded.

Comment 1 Mike A. Harris 2002-04-19 09:30:08 UTC
Sounds reasonable.  The iptables script should probably do the same
with iptables modules.

Comment 2 kenneth_porter 2002-05-08 23:41:29 UTC
Will rmmod remove dependent modules?

I'm thinking of the connection-tracking suite. It 
would also be nice if there were an /etc/sysconfig file to control which tracking modules were 

Comment 3 Mike A. Harris 2002-05-22 10:07:16 UTC
I've added an rmmod to the ipchains script at the end of the "stop"
section.  It's currently untested so I don't know how well it works,
but that should turn up in beta testing.

If anyone would like it done in iptables' initscript also, file a separate
request against iptables.

ipchains 1.3.10-14

Comment 4 kenneth_porter 2002-05-23 01:44:13 UTC
FYI, iptables bug has been entered as bug 65389.

Comment 5 James Manning 2002-05-23 16:47:50 UTC
probably better done as modprobe -r instead of rmmod in case there's a set of
dependent modules that would also be best removed later on

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