From owner-freebsd-pf@freebsd.org Fri Jul 20 20:51:54 2018 Return-Path: Delivered-To: freebsd-pf@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 504ED105224C for ; Fri, 20 Jul 2018 20:51:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id DC4E18CD68 for ; Fri, 20 Jul 2018 20:51:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9AED3105224B; Fri, 20 Jul 2018 20:51:53 +0000 (UTC) Delivered-To: pf@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 86F5D1052249 for ; Fri, 20 Jul 2018 20:51:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 202DE8CD63 for ; Fri, 20 Jul 2018 20:51:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 7AF5C88B0 for ; Fri, 20 Jul 2018 20:51:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w6KKpq06028514 for ; Fri, 20 Jul 2018 20:51:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w6KKpqrt028513 for pf@FreeBSD.org; Fri, 20 Jul 2018 20:51:52 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: pf@FreeBSD.org Subject: [Bug 196314] pf nested inline anchors does not work Date: Fri, 20 Jul 2018 20:51:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.0-STABLE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mickey242@gmx.net X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2018 20:51:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D196314 mickey242@gmx.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mickey242@gmx.net --- Comment #7 from mickey242@gmx.net --- I am on releng 11.2 and am experiencing the same problem. Filter rules contained within nested inline anchors are ineffective. The following pf.co= nf that is similar in structure to the example shown in pf.conf(5) section ANC= HORS should allow ports time and daytime to be accessible, but only time port ca= n be reached: anchor "an1" { pass in quick proto tcp to port time anchor "an2" { pass in quick proto tcp to port daytime } } It works as expected as soon as you turn the inner anchor into a regular (non-inline) anchor and load it's contents either using pfctl or via load anchor "an2" from "file" I also tested whether it makes any difference when the outer anchor is a regular anchor, but it doesn't. Result is the same. The only place where ru= les contained within an inline anchor work as expected is when the inline ancho= r is directly attached to the main ruleset. --=20 You are receiving this mail because: You are the assignee for the bug.=