Description of problem:
Using --zone= with Firewalld Direct rule doesn't throw any error.
Version-Release number of selected component (if applicable):
All Firewalld version
Steps to Reproduce:
1.Add a direct rule with --zone= option.
# firewall-cmd --zone=public --permanent --direct --add-rule ipv4 nat OUTPUT 1 -p tcp --dport 8443 -j DNAT --to-port 9443
No error messages are given.
something like "--zone= is an invalid option with the firewalld direct rule."
This is a minor issue and there are no plans to fix this in RHEL-7. Moving to RHEL-8.
303f85fc35d2 ("fix(cli): add --zone is an invalid option with --direct")
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (firewalld bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.