From nobody Tue Nov 19 14:36:58 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xt6Wt2CCYz5f5kb for ; Tue, 19 Nov 2024 14:36:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xt6Wt05tbz44cT for ; Tue, 19 Nov 2024 14:36:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732027018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oY/B4fA4GcrILSMljbDirzrBpe+vkt8DtL0yByq7mDw=; b=jCnH4YP1vwGlkJnAsp74vittB+2+D1UujdIf6/ZgUfgAmTsA78z6jdtth91R44sEgWELwp CeaQnZ66TdXFfhN68ez1TisTIE1vdh/+nsGLsy/jaT+C0nXfk51/fGPNF6PGZtZexK0O4v Ae7Qz26UE2brAmctthykFCKBY+SFJIV9Z2He9DMNfW7SCropO9hsnYdzDsEN9GWpgbeae/ ZxDRUMUlOdbwHK0rxYOasVMLGD1OUViLPGex/OUlgNKeFA4um+lC7e2wWMB/nAVRSfvhep oxnho3wPdn0jetssBQfE6GFeNZ1UC9raUijjZzddenxm1ZttGn2LxBsxraBmLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732027018; a=rsa-sha256; cv=none; b=hvudSLjQ3WsgitMKRLNMZ/K61YdavGNZv+Z+Nb/R/UoGCx1qKwUZ7dAZiNE6XOMDKRUzUf craQkQwNvOJenBW61fhPFyQk62FqxM/JDl2zZ+Sm0ANnHOhcGegBjcNUUexXmWnwFmhl5A YhRV13hhOzOl/jHG7Eko+ztkoIl0aCEd5AYIVHR5kRUlEuRY1a5SXDjxvonkWvKCvMpf6Q tUFVwJTnWe6mKIZgUddGfPR4CWS1BqnnzzJ5BBoRmWs2OXpK9Wq05aRHesSdxEKyJicCe1 KqeshwMos+DiAe+QZfhwnXyv75dEb+MlvlS9H253itAjqfxPsXydPiSBNubr0A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Xt6Ws6jfGzDkJ for ; Tue, 19 Nov 2024 14:36:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4AJEavpV075661 for ; Tue, 19 Nov 2024 14:36:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4AJEavYq075660 for bugs@FreeBSD.org; Tue, 19 Nov 2024 14:36:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 282863] pf(4): Cannot add multiple filtering rules with IP address range Date: Tue, 19 Nov 2024 14:36:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sergey.koupreyenko@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282863 Bug ID: 282863 Summary: pf(4): Cannot add multiple filtering rules with IP address range Product: Base System Version: 14.2-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: sergey.koupreyenko@gmail.com How to reproduce: 1) Use the pf.conf file below set skip on lo0 set block-policy drop set loginterface pflog0 set ruleset-optimization none block in on net16 pass out on net16 pass in quick on net16 inet from 10.41.2.130 to any no state pass in quick on net16 inet from 10.41.2.128 - 10.41.2.191 to any no state pass in quick on net16 inet from 10.1.0.128 - 10.1.0.145 to any no state pass in quick on net16 inet from 10.42.1.128 - 10.42.1.145 to any no state pass in quick on net16 inet from 192.168.78.254 to any no state pass in quick on net16 inet from 10.41.2.128/26 to any no state pass in quick on net16 inet from 10.1.0.0/16 to any no state pass in quick on net16 inet from 10.1.1.0/24 to any no state 2) Enter the command (pf(4) service is enabled) pfctl -vvv -F all -f /path/to/pf.conf No ALTQ support in kernel ALTQ related functions disabled Ethernet rules cleared rules cleared nat cleared 1 tables deleted. 0 states cleared source tracking entries cleared pf: statistics cleared pf: interface flags reset Loaded 762 passive OS fingerprints table persist { 10.41.2.130 } set skip on { lo0 } set block-policy drop set loginterface pflog0 @0 block drop in on net16 all @1 pass out on net16 all flags S/SA keep state @2 pass in quick on net16 inet from 10.41.2.130 to any no state @3 pass in quick on net16 inet from 10.41.2.128 - 10.41.2.191 to any no sta= te @4 pass in quick on net16 inet from 10.1.0.128 - 10.1.0.145 to any no state= -- rule was already present @5 pass in quick on net16 inet from 10.42.1.128 - 10.42.1.145 to any no sta= te -- rule was already present @6 pass in quick on net16 inet from 192.168.78.254 to any no state @7 pass in quick on net16 inet from 10.41.2.128/26 to any no state @8 pass in quick on net16 inet from 10.1.0.0/16 to any no state @9 pass in quick on net16 inet from 10.1.1.0/24 to any no state Rules @4 and @5 is marked as "rule was already present". Why? 3) Show the result pfctl -s rules block drop in on net16 all pass out on net16 all flags S/SA keep state pass in quick on net16 inet from 10.41.2.130 to any no state pass in quick on net16 inet from 10.41.2.128 - 10.41.2.191 to any no state pass in quick on net16 inet from 192.168.78.254 to any no state pass in quick on net16 inet from 10.41.2.128/26 to any no state pass in quick on net16 inet from 10.1.0.0/16 to any no state pass in quick on net16 inet from 10.1.1.0/24 to any no state --=20 You are receiving this mail because: You are the assignee for the bug.=