Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionBrian J. Murrell
2016-07-02 01:30:22 UTC
+++ This bug was initially created as a clone of Bug #1163428 +++
This problem exists in RHEL 7.2 also.
Steps to Reproduce:
1.firewall-cmd --add-rich-rule='rule family="ipv4" source address="172.31.255.0/24" destination address="172.16.4.0/24" log prefix="ConFusionGW" level="info" reject type="icmp-admin-prohibited"'
Actual results:
Error: INVALID_RULE: destination action
Additional info:
freenode_#fedora-server [Tuesday 04 of November 2014]
<danofsatx> twoerner: ping - running into some problems with firewalld rich rules. The rules in this zone file are being rejected, and I can't see why: http://ur1.ca/iou53
<danofsatx> oh, here's the journal output, too: http://ur1.ca/iou8x
<twoerner> danofsatx: you are using source and destination address at the same time - Jiri added a change for this some time ago - need to check it again
<danofsatx> oh, ok - I don't need the source, since it's on the interface. Let me take that out.
<danofsatx> nope. :( ERROR: INVALID_RULE: no element, no source
<jpopelka> it's failing because there's a destination but no element (service, port, etc.). I don't understand why the condition is there however (I touched it some time ago, yes, but haven't changed its meaning)
<twoerner> danofsatx: ok.. I remmeber now.. this check is in there for a long time..
<danofsatx> is the element required if I move the rule to the other interface as a source rule instead of a destination rule?
<twoerner> danofsatx: there is no port or protocol - if you add an element with port or protocol, then it will work
<danofsatx> can I define protocol as basic as IP?
<twoerner> danofsatx: <rule family="ipv4"><source address="172.31.255.0/24"/><destination address="172.16.4.0/24"/><protocol value="tcp"/><reject type="icmp-host-prohibited"/></rule>
<twoerner> danofsatx: just add "<protocol value="tcp"/>" for example
<twoerner> danofsatx: "<protocol value="all"/>" is not supported though
<danofsatx> according to man page, anything out of /etc/protocols will work. ip is protocol 0
<twoerner> danofsatx: yes, protocol 0 is working
<danofsatx> I was simply trying to define a blacklist. I have this rule currently in effect, but it is not working.
<twoerner> danofsatx: please open a bug.. it should be working without this
--- Additional comment from Fedora End Of Life on 2015-11-04 10:48:29 EST ---
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. 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 '21'.
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 21 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.
--- Additional comment from Fedora End Of Life on 2015-12-01 23:56:43 EST ---
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 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.
--- Additional comment from Thomas Woerner on 2016-05-19 11:00:01 EDT ---
Fixed upstream:
https://github.com/t-woerner/firewalld/commit/221d810557deb62e0c402bfadf2f965ebdab70f1