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.
Bug 1164605 - Unable to create service that matches OSPF packets
Summary: Unable to create service that matches OSPF packets
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: firewalld
Version: 7.0
Hardware: noarch
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Thomas Woerner
QA Contact: Tomas Dolezal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-17 00:57 UTC by Kyle Brantley
Modified: 2015-11-19 12:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: The ipv6header match was used to specify protocol matches for IPv6. Consequence: It was not possible to use for example the ospf protocol because of this. Fix: A simple protocol match is used instead of ipv6header. Result: All supported protocols of the system (see /etc/protcols) can be used now for protocol matches in services and also in rich rules
Clone Of:
Environment:
Last Closed: 2015-11-19 12:59:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1065565 0 medium CLOSED Unable to permit OSPF for IPv6 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2015:2422 0 normal SHIPPED_LIVE firewalld bug fix and enhancement update 2015-11-19 11:22:52 UTC

Internal Links: 1065565

Description Kyle Brantley 2014-11-17 00:57:35 UTC
Description of problem:
Creating a new service that matches OSPF packets calls ip6tables in a way that results in an error, resulting in no matching rules being inserted into the system.

Version-Release number of selected component (if applicable):
# rpm -qa | egrep 'firewalld|iptables|kernel-3'
kernel-3.10.0-123.9.3.el7.x86_64
iptables-1.4.21-13.el7.x86_64
firewalld-0.3.9-7.el7.noarch


How reproducible:
Always.

Steps to Reproduce:
1. Create a new service for OSPF by defining /etc/firewalld/services/ospf.xml:

<?xml version="1.0" encoding="utf-8"?>
<service>
  <short>OSPF</short>
  <description>OSPF is a link state based routing protocol.</description>
  <port protocol="ospf" port=""/>
</service>


2. firewall-cmd --reload
3. firewall-cmd --add-service=ospf


Actual results:
# firewall-cmd --add-service=ospf
Error: COMMAND_FAILED: '/sbin/ip6tables -A IN_public_allow -t filter -m ipv6header --header ospf -m conntrack --ctstate NEW -j ACCEPT' failed: ip6tables v1.4.21: unknown header `89' specified
Try `ip6tables -h' or 'ip6tables --help' for more information.


Expected results:
Rules insert into iptables/ip6tables (as appropriate) that match OSPF packets.

Additional info:

Also reported as an issue under F20 as bug 1065565.

Comment 2 Jiri Popelka 2014-11-18 09:17:42 UTC
Workaround:

firewall-cmd --add-rich-rule='rule protocol value="ospf" accept'

Comment 3 Jiri Popelka 2014-12-04 14:27:23 UTC
Upstream commit, works on RHEL7 too (verified):
https://git.fedorahosted.org/cgit/firewalld.git/commit/?id=5e0b34d6492109e5039cb367a97a1a4564a1c545

Comment 7 errata-xmlrpc 2015-11-19 12:59:40 UTC
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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2422.html


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