Bug 1096993 - Firewalld: Error: COMMAND_FAILED: '/sbin/iptables -D INPUT_ZONES -t filter -i wlp4s0 -g IN_public' failed: iptables: No chain/target/match by that name.
Summary: Firewalld: Error: COMMAND_FAILED: '/sbin/iptables -D INPUT_ZONES -t filter -i...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: firewalld
Version: 20
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-12 22:27 UTC by Robin Mattheussen
Modified: 2015-06-29 20:35 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-06-29 20:35:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Output for debugging as requested (150.00 KB, application/x-tar)
2014-05-14 19:34 UTC, Robin Mattheussen
no flags Details
output of iptables cmd (4.74 KB, text/plain)
2014-05-31 19:15 UTC, Gerald Cox
no flags Details
output of firewall cmd (146 bytes, text/plain)
2014-05-31 19:16 UTC, Gerald Cox
no flags Details
firewalld.log (53.36 KB, text/plain)
2014-05-31 19:17 UTC, Gerald Cox
no flags Details
from /firewalld/zones (400 bytes, text/xml)
2014-05-31 19:18 UTC, Gerald Cox
no flags Details
from /firewalld/zones (441 bytes, text/xml)
2014-05-31 19:19 UTC, Gerald Cox
no flags Details

Description Robin Mattheussen 2014-05-12 22:27:19 UTC
Description of problem:
-----------------------

When attempting to change the default zone through either the graphical Firewall console (firewall-config) or the command line (firewall-cmd --set-default-zone=home), the following error gets thrown in both the gui and terminal:

Error: COMMAND_FAILED: '/sbin/iptables -D INPUT_ZONES -t filter -i wlp4s0 -g IN_public' failed: iptables: No chain/target/match by that name.


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
firewalld.noarch-0.3.9.3-1.fc20


How reproducible:
-----------------
Always


Steps to Reproduce:
-------------------

Change default zone in firewall-config
OR
firewall-cmd --set-default-zone=home

Comment 1 Jiri Popelka 2014-05-13 08:29:57 UTC
I have no idea what can be the culprit so I need to see a lot more info:

1) add 'FIREWALLD_ARGS=--debug=2' into /etc/sysconfig/firewalld
2) # > /var/log/firewalld
3) # systemctl restart firewalld
4) attach output of the following command
   # firewall-cmd --list-all-zones | egrep -A8 'active|default'
5) attach output of the following command
   # iptables-save
6) # firewall-cmd --set-default-zone=home
7) attach any file you find in /etc/firewalld/zones/
8) attach /var/log/firewalld

thanks

Comment 2 Robin Mattheussen 2014-05-14 19:34:04 UTC
Created attachment 895589 [details]
Output for debugging as requested

Comment 3 Robin Mattheussen 2014-05-14 19:38:25 UTC
I should note that I performed the --set-default-zone command now without any issues while I was collecting the command outputs. I experienced this issue multiple times yesterday though, which was after several reboots.

Comment 4 Jiri Popelka 2014-05-15 09:12:22 UTC
OK, if you happen to reproduce it again, try to collect the info once more. Thanks

Comment 5 Gerald Cox 2014-05-31 19:13:45 UTC
Hello, I'm having a similar problem, although I trying to block two subnets which keep hammering fail2ban.  I've attached the info you requestd above.  Let me know if you need any additional information. Thanks!

Comment 6 Gerald Cox 2014-05-31 19:15:22 UTC
Created attachment 901103 [details]
output of iptables cmd

Comment 7 Gerald Cox 2014-05-31 19:16:12 UTC
Created attachment 901104 [details]
output of firewall cmd

Comment 8 Gerald Cox 2014-05-31 19:17:41 UTC
Created attachment 901105 [details]
firewalld.log

Comment 9 Gerald Cox 2014-05-31 19:18:46 UTC
Created attachment 901106 [details]
from /firewalld/zones

Comment 10 Gerald Cox 2014-05-31 19:19:25 UTC
Created attachment 901113 [details]
from /firewalld/zones

Comment 11 Gerald Cox 2014-06-01 02:25:58 UTC
Additional information, I was trying to apply the rule to the "Trusted" zone... as a test I found I was able to apply the rule to the "Home" zone and it appears to be working.  The problem that I am having now is that I have some applications which I had configured to use UPNP, and from what I gather that is not supported by firewalld.  Use of the "Trusted" zone avoided the UPNP issue.

Comment 12 Jiri Popelka 2014-06-18 15:50:18 UTC
Sorry for the delay Gerald,

your firewalld.log shows:

'/sbin/iptables -t filter -A ACCEPT_log -s 61.174.51.0/24 -p tcp -m conntrack --ctstate NEW -j LOG --log-level warning' failed: iptables: No chain/target/match by that name.

because it tries to add a rule into nonexistent ACCEPT_log chain.

I tried to use your zones (especially the 'trusted' which seems to cause the problem) here and the rule is correctly added into IN_trusted_log:

/sbin/iptables -t filter -A IN_trusted_log -s 61.174.51.0/24 -p tcp -m conntrack --ctstate NEW -j LOG --log-level warning

What firewalld version do you use ?
Can you try firewalld-0.3.10 ? (0.3.10 is currently moving from updates-testing into stable)

Comment 13 Fedora End Of Life 2015-05-29 11:49:51 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. 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 EOL if it remains open with a Fedora  'version'
of '20'.

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.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 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, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

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.

Comment 14 Fedora End Of Life 2015-06-29 20:35:37 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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