Bug 849573 - Strange behaviour of iptables-save
Strange behaviour of iptables-save
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: iptables (Show other bugs)
Unspecified Unspecified
unspecified Severity low
: rc
: ---
Assigned To: iptables-maint-list
Depends On: 849572
  Show dependency treegraph
Reported: 2012-08-20 04:41 EDT by David Spurek
Modified: 2015-03-02 00:27 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 849572
Last Closed: 2012-08-20 07:06:28 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Spurek 2012-08-20 04:41:48 EDT
+++ This bug was initially created as a clone of Bug #849572 +++

Description of problem:
Strange behaviour of iptables-save. After service iptables stop command iptables-save print nothing to ouput. Then I run iptables -L and now iptables-save output three lines. I think that iptables -L is read only operation and this not may effect for iptables-save. 

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

How reproducible:

Steps to Reproduce:
1.service iptables stop
3.iptables -L
Actual results:
first iptables-save prints nothing

second iptables-save prints:
iptables-save# Generated by iptables-save v1.3.5 on Mon Aug 20 04:09:43 2012
:INPUT ACCEPT [22:1432]
:OUTPUT ACCEPT [16:2896]
# Completed on Mon Aug 20 04:09:43 2012

Expected results:
same behaviour of both iptables-save commands 

Additional info:
Comment 1 Thomas Woerner 2012-08-20 07:06:28 EDT

iptables-save dumps all IPv4 iptables rules. After service iptables stop, all netfilter firewall mudules are unloaded. Using "iptables -L" loads the base firewall modules if they are not loaded already, this results in the standard accept policy rules.

This is expected behaviour.

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