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

RFE: Sets with quota elements are possible from the packet path in RHEL9 but impossible from the older nft that ships with RHEL9

    • nftables-1.0.9-1.el9
    • TestOnly
    • sst_networking_core
    • ssg_networking
    • 7
    • Dev ack
    • False
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      Sets with quota elements are possible from the packet path in RHEL9 but impossible from the older nft that ships with RHEL9

      Version-Release number of selected component (if applicable):
      nftables-1.0.4-10.el9_1.x86_64

      How reproducible:
      Always

      Steps to Reproduce:
      1. Use nft -f to load the following

      ROOT rhel9 ~% cat /etc/sysconfig/nftables
      table ip filter {
              set outbound_quota {
                      type ipv4_addr
                      size 65535
                      flags dynamic
                      elements = { 10.0.0.44 quota over 200 mbytes }
              }
      }
      

      Actual results:

      ROOT rhel9 ~% nft -f /etc/sysconfig/nftables
      /etc/sysconfig/nftables:6:40-44: Error: syntax error, unexpected quota, expecting comma or '}'
                      elements = { 10.0.0.44 quota over 200 mbytes }
                                             ^^^^^
      

      Expected results:
      The element should load with nft $?=0

      Additional info:
      Loading the same element is possible in RHEL9 via the packet path

              chain OUTPUT {
                      type filter hook output priority filter; policy accept;
                      add @outbound_quota { ip saddr quota over 200 mbytes } drop
              }
      

      When I build and install nftables-1.0.7-1.fc39.src.rpm from Fedora rawhide, the problem goes away and the element with a quota loads successfully via nft -f.

            psutter@redhat.com Phil Sutter
            jira-bugzilla-migration RH Bugzilla Integration
            Phil Sutter Phil Sutter
            Tomas Dolezal Tomas Dolezal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: