Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-5795

firewalld timeout options does not work with policy

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • rhel-8.5.0
    • firewalld
    • None
    • Low
    • rhel-net-firewall
    • ssg_networking
    • 15
    • False
    • False
    • None
    • None
    • None
    • None
    • Bug Fix
    • Hide
      Cause (the user action or circumstances that trigger the bug):
      Consequence (what the user experience is when the bug occurs):
      Fix (what has changed to fix the bug; do not include overly technical details):
      Result (what happens now that the patch is applied):
      Show
      Cause (the user action or circumstances that trigger the bug): Consequence (what the user experience is when the bug occurs): Fix (what has changed to fix the bug; do not include overly technical details): Result (what happens now that the patch is applied):
    • Proposed
    • None
    • 57,005

      Description of problem:

      When adding a timeout to a service inside a policy, the timeout is not recognized. The service remains allowed until the firewall rules are reloaded or the system rebooted.

      Upstream Bug: https://github.com/firewalld/firewalld/issues/1381

      Version-Release number of selected component (if applicable):

      firewalld-0.9.3-7.el8.noarch

      How reproducible:

      Very

      Steps to Reproduce:
      1. Have a firewalld policy
      2. Add a service with a timeout to the policy
      3. Note that firewall-cmd accepts the command with no complaints/errors

      Actual results:

      The service is not removed from the policy unless the rules are reloaded

      [root@rhel8 ~]# firewall-cmd --policy any-to-external --add-service https --timeout 15s
      success

      [root@rhel8 ~]# date
      Thu Feb 24 09:12:47 EST 2022

      [root@rhel8 ~]# firewall-cmd --list-all-policies
      allow-host-ipv6 (active)
      priority: -15000
      target: CONTINUE
      ingress-zones: ANY
      egress-zones: HOST
      services:
      ports:
      protocols:
      masquerade: no
      forward-ports:
      source-ports:
      icmp-blocks:
      rich rules:
      rule family="ipv6" icmp-type name="neighbour-advertisement" accept
      rule family="ipv6" icmp-type name="neighbour-solicitation" accept
      rule family="ipv6" icmp-type name="router-advertisement" accept
      rule family="ipv6" icmp-type name="redirect" accept

      any-to-external
      priority: -1
      target: CONTINUE
      ingress-zones:
      egress-zones: ANY
      services: https
      ports:
      protocols:
      masquerade: no
      forward-ports:
      source-ports:
      icmp-blocks:
      rich rules:

      [root@rhel8 ~]# date
      Thu Feb 24 09:24:10 EST 2022

      [root@rhel8 ~]# firewall-cmd --list-all-policies
      allow-host-ipv6 (active)
      priority: -15000
      target: CONTINUE
      ingress-zones: ANY
      egress-zones: HOST
      services:
      ports:
      protocols:
      masquerade: no
      forward-ports:
      source-ports:
      icmp-blocks:
      rich rules:
      rule family="ipv6" icmp-type name="neighbour-advertisement" accept
      rule family="ipv6" icmp-type name="neighbour-solicitation" accept
      rule family="ipv6" icmp-type name="router-advertisement" accept
      rule family="ipv6" icmp-type name="redirect" accept

      any-to-external
      priority: -1
      target: CONTINUE
      ingress-zones:
      egress-zones: ANY
      services: https
      ports:
      protocols:
      masquerade: no
      forward-ports:
      source-ports:
      icmp-blocks:
      rich rules:

      Expected results:

      The service is removed from the policy after the timeout

      Additional info:

      If timeouts aren't allowed with policies, then the command should fail.

              egarver Eric Garver
              rhn-support-sferguso Sara Ferguson
              Eric Garver Eric Garver
              Tomas Dolezal Tomas Dolezal
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: