Bug 1843398

Summary: Rich rule with a MAC address doesnt work
Product: [Fedora] Fedora Reporter: Alessio <alciregi>
Component: firewalldAssignee: Eric Garver <egarver>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 32CC: egarver, psutter
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: firewalld-0.8.3-1.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-03 01:19:00 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:
Attachments:
Description Flags
firewall-cmd --reload errors none

Description Alessio 2020-06-03 08:42:44 UTC
Created attachment 1694736 [details]
firewall-cmd --reload errors

Let's assume a rule like this:

firewall-cmd --zone=FedoraWorkstation --permanent --add-rich-rule='rule source mac="11:22:33:44:55:66" reject'

success

But reloading with firewall-cmd --reload lead to a series of errors as per the attached file, starting with

Error: COMMAND_FAILED: 'python-nftables' failed: internal:0:0-0: Error: Could not process rule: No such file or directory


The same steps on Fedora 31 seem to work.

sudo firewall-cmd --zone=FedoraWorkstation --list-rich-rules
rule source mac="11:22:33:44:55:66" drop

Comment 1 Alessio 2020-06-05 16:26:48 UTC
In addition, inserting that rule, firewalld is unable to restart.
The only way to solve the issue is manually editing the zone file in /etc/firewalls/zones

Comment 2 Eric Garver 2020-06-09 12:34:06 UTC
This has been fixed upstream.

  e255e7357358 ("fix(rich): source mac with nftables backend")

Comment 3 Fedora Update System 2020-07-01 20:14:31 UTC
FEDORA-2020-8eaabfad8b has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-8eaabfad8b

Comment 4 Fedora Update System 2020-07-02 01:16:06 UTC
FEDORA-2020-8eaabfad8b has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-8eaabfad8b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-8eaabfad8b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2020-07-03 01:19:00 UTC
FEDORA-2020-8eaabfad8b has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.