Bug 557024 - iptables script starts despite disabling with chkconfig
Summary: iptables script starts despite disabling with chkconfig
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-20 06:45 UTC by Andrew McNabb
Modified: 2010-11-08 16:30 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-08 16:30:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andrew McNabb 2010-01-20 06:45:29 UTC
I ran "chkconfig iptables off" and "chkconfig --list iptables" shows that the service is disabled for all runlevels.  However, when I reboot, the system has tons of rules as shown with "iptables -L".  Running "service iptables stop" clears out the offending rules.  How are rules getting added to the tables?  Is some other script adding them or is /etc/init.d/iptables somehow getting run?  Thanks.

Comment 1 Andrew McNabb 2010-01-20 06:55:15 UTC
Hmm.  I can't tell for sure, but it looks like this might somehow be related to libvirtd.  Libvirtd seems to create a bunch of network devices, start up an instance of dnsmasq with the network 192.168.122.0/24, and add iptables rules, but only the first time it is started.  Is it a bug, then, that "service iptables stop" removes the rules created by libvirtd?  I admit I'm very confused and uninformed about the whole thing.

Comment 2 Michael Breuer 2010-02-04 19:51:07 UTC
Anything in boot.log, messages or dmesg? /etc/rc.d/rc.local?

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 3 Thomas Woerner 2010-06-01 13:39:43 UTC
These rules are added by libvirtd for guests by hand. Currently the rules are not persistent and therefore stopping the iptables service will remove them on stop.

Comment 4 Bug Zapper 2010-11-04 00:27:55 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Andrew McNabb 2010-11-04 20:16:10 UTC
It looks like these rules are still being added by libvirtd in Fedora 14.  Which is especially weird since I already have a bridge, so libvirtd doesn't need to create an interface at all.

Comment 6 Thomas Woerner 2010-11-05 08:31:58 UTC
THe rules are added by libvirt, there is nothing the iptables service can do for now. So maybe would be best to assign to libvirt.

Comment 7 Daniel Berrangé 2010-11-08 10:05:09 UTC
libvirt creates rules to setup NAT for the default virtual network on virbr0. These rules only allow outbound traffic, and explicitly block inbound traffic on virbr0. If you don't want the virtual network, then disable it  'virsh net-destroy default && virsh net-autostart --disable default'.

Comment 8 Andrew McNabb 2010-11-08 16:16:57 UTC
In the case that these rules are desired, then it would be incorrect for "service iptables stop" to delete the rules, right?  Unless they automatically get readded on "service iptables start".

Comment 9 Daniel Berrangé 2010-11-08 16:30:47 UTC
Unfortunately the iptables initscript provides no viable way to preserve custom iptables additions, This problem is discussed in bug 227011.  libvirtd will re-create its iptables rules upon restart/reload


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