RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 857291 - systemctl disable iptables.service and /etc/sysconfig/iptables don't work
Summary: systemctl disable iptables.service and /etc/sysconfig/iptables don't work
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: iptables
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: ---
Assignee: Thomas Woerner
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-14 03:19 UTC by Xiaowei Li
Modified: 2023-09-14 01:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-09 11:26:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Xiaowei Li 2012-09-14 03:19:44 UTC
Description of problem:


Version-Release number of selected component (if applicable):
iptables-1.4.14-3.el7.x86_64
kernel-3.5.0-0.24.el7.x86_64

How reproducible:


Steps to Reproduce:
# iptables -F
>>> now i can ssh to the host >>
# iptables-save > /etc/sysconfig/iptables
# chkconfig iptables off
Note: Forwarding request to 'systemctl disable iptables.service'.
# init 6
  
Actual results:
after OS reboots, fail to ssh to the host

Expected results:
after OS reboots, can ssh to the host

Additional info:
# cat /etc/sysconfig/iptables
# Generated by iptables-save v1.4.14 on Thu Sep 13 23:16:51 2012
*nat
:PREROUTING ACCEPT [1269:179418]
:INPUT ACCEPT [26:3611]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT_direct - [0:0]
:POSTROUTING_ZONES - [0:0]
:POSTROUTING_direct - [0:0]
:PREROUTING_ZONES - [0:0]
:PREROUTING_direct - [0:0]
-A PREROUTING -j PREROUTING_direct
-A PREROUTING -j PREROUTING_ZONES
-A OUTPUT -j OUTPUT_direct
-A POSTROUTING -j POSTROUTING_direct
-A POSTROUTING -j POSTROUTING_ZONES
COMMIT
# Completed on Thu Sep 13 23:16:51 2012
# Generated by iptables-save v1.4.14 on Thu Sep 13 23:16:51 2012
*mangle
:PREROUTING ACCEPT [1396:191799]
:INPUT ACCEPT [1288:184188]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [72:8689]
:POSTROUTING ACCEPT [72:8689]
:FORWARD_direct - [0:0]
:INPUT_direct - [0:0]
:OUTPUT_direct - [0:0]
:POSTROUTING_direct - [0:0]
:PREROUTING_ZONES - [0:0]
:PREROUTING_direct - [0:0]
-A PREROUTING -j PREROUTING_direct
-A PREROUTING -j PREROUTING_ZONES
-A INPUT -j INPUT_direct
-A FORWARD -j FORWARD_direct
-A OUTPUT -j OUTPUT_direct
-A POSTROUTING -j POSTROUTING_direct
COMMIT
# Completed on Thu Sep 13 23:16:51 2012
# Generated by iptables-save v1.4.14 on Thu Sep 13 23:16:51 2012
*filter
:INPUT ACCEPT [73:5605]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [36:3616]
:FORWARD_ZONES - [0:0]
:FORWARD_direct - [0:0]
:INPUT_ZONES - [0:0]
:INPUT_direct - [0:0]
:OUTPUT_direct - [0:0]
COMMIT
# Completed on Thu Sep 13 23:16:51 2012

Comment 1 Thomas Woerner 2012-09-14 11:30:00 UTC
firewalld is the standard firewall solution with Fedora-18 and RHEL-7. Is the firewalld service active in your system? The firewall configuration is not complete. ssh is allowed in the default firewall zone, but the rules for this zone are not there and the network interface is not part of that zone.

Have you modified the firewalld configuration?

Comment 2 Xiaowei Li 2012-09-17 02:43:26 UTC
(In reply to comment #1)
> firewalld is the standard firewall solution with Fedora-18 and RHEL-7. Is
> the firewalld service active in your system? The firewall configuration is
> not complete. ssh is allowed in the default firewall zone, but the rules for
> this zone are not there and the network interface is not part of that zone.
> 
> Have you modified the firewalld configuration?

firewalld was not running and i didn't modify the firewalld configuration.

firewalld-0.2.7-1.el7.noarch

[root@el7 zones]# systemctl status firewalld
firewalld.service - firewalld - dynamic firewall daemon
	  Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
	  Active: inactive (dead) since Sun, 16 Sep 2012 22:27:54 -0400; 14min ago
	 Process: 1583 ExecStart=/usr/sbin/firewalld --nofork $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
	  CGroup: name=systemd:/system/firewalld.service

Sep 16 22:27:54 el7 firewalld[1583]: 2012-09-16 22:27:54 ERROR: Failed to load zone file '/usr/...ml':
Sep 16 22:27:54 el7 firewalld[1583]: 2012-09-16 22:27:54 ERROR: Failed to load zone file '/usr/...ml':
Sep 16 22:27:54 el7 firewalld[1583]: 2012-09-16 22:27:54 ERROR: Failed to load zone file '/usr/...ml':
Sep 16 22:27:54 el7 firewalld[1583]: 2012-09-16 22:27:54 ERROR: Failed to load zone file '/usr/...ml':
Sep 16 22:27:54 el7 firewalld[1583]: 2012-09-16 22:27:54 ERROR: Failed to load zone file '/usr/...ml':
Sep 16 22:27:54 el7 firewalld[1583]: 2012-09-16 22:27:54 ERROR: Failed to load zone file '/usr/...ml':
Sep 16 22:27:54 el7 firewalld[1583]: 2012-09-16 22:27:54 ERROR: Failed to load zone file '/usr/...ml':
Sep 16 22:27:54 el7 firewalld[1583]: 2012-09-16 22:27:54 ERROR: Failed to load zone file '/usr/...ml':
Sep 16 22:27:54 el7 firewalld[1583]: 2012-09-16 22:27:54 FATAL ERROR: No zones found.
Sep 16 22:27:54 el7 firewalld[1583]: 2012-09-16 22:27:54 ERROR: Raising SystemExit in run_server

Comment 5 Thomas Woerner 2014-01-09 11:26:24 UTC
I can not verify this. It is working for me.

Closing as NOT A BUG.

Comment 6 Thomas Woerner 2014-01-09 11:50:28 UTC
Additionally firewalld is used as the default firewall solution in RHEL-7. The ip*tables services are not active, therefore you can not disable or stop them.

The firewalld bug mentioned above has already been fixed.

Comment 7 Red Hat Bugzilla 2023-09-14 01:37:25 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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