Bug 986770

Summary: "service iptables stop" flushes rules but "service iptables start" does not reload them
Product: [Fedora] Fedora Reporter: Murray McAllister <mmcallis>
Component: iptablesAssignee: Thomas Woerner <twoerner>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jpopelka, mmcallis, psabata, twoerner, vdanen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-23 09:53:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Murray McAllister 2013-07-22 03:58:33 UTC
Description of problem:
On up-to-date Fedora 19, service iptables stop flushes rules (as shown with iptables -L) but service iptables start does not reload them. No errors are printed to the console.

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


How reproducible:


Steps to Reproduce:
1. iptables -L
2. service iptables stop
3. service iptables start

Actual results:
rules not reloaded

Expected results:
rules reloaded. If I am not suppose to be using service (due systemd) or iptables (due firewalld), could some error message or pointer to the docs be shown when attempting to use service and iptables?

Additional info:

Comment 1 Thomas Woerner 2013-07-22 11:21:16 UTC
Which firewall system are you using?

The default since Fedora 18 is firewalld. For information on firewalld, please have a look at

https://fedoraproject.org/wiki/FirewallD

If you want to use your own static firewall rules with the iptables and ip6tables services, install iptables-services and disable firewalld and enable iptables and ip6tables:

yum install iptables-services
systemctl mask firewalld.service
systemctl enable iptables.service
systemctl enable ip6tables.service

Use /etc/sysconfig/iptables and /etc/sysconfig/ip6tables for your static firewall rules. These will be loaded with service iptables start and service ip6tables start.

Note: The package iptables and iptables-services do not provide firewall rules for use with the services. The services are available for compatibility and people that want to use their own firewall rules. You can install and use system-config-firewall to create rules with the services though.

After creating rules for use with the services stop firewalld and start the iptables and ip6tables services:

 systemctl stop firewalld.service
 systemctl start iptables.service
 systemctl start ip6tables.service

Comment 2 Murray McAllister 2013-07-23 02:52:55 UTC
(In reply to Thomas Woerner from comment #1)
> Which firewall system are you using?

Sorry, seems this is all just user error (coming from RHEL 5) :(

Using the commands you provided I find I am using firewalld. The iptables services are not active, and I have no /etc/sysconfig/iptables files.

Thanks for the quick reply and pointers to information!

Comment 3 Murray McAllister 2013-07-23 02:54:16 UTC
(Also, I am not using custom rules, just whatever is used with the default install.)

Comment 4 Thomas Woerner 2013-07-23 09:53:42 UTC
Closing as NOT A BUG due to comment 2