From nobody Wed Mar 02 13:25:41 2022 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 2661D19E70F7 for ; Wed, 2 Mar 2022 13:25:42 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K7vxx4wGWz4xhQ for ; Wed, 2 Mar 2022 13:25:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 858BF23D7C for ; Wed, 2 Mar 2022 13:25:41 +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 222DPfS3041987 for ; Wed, 2 Mar 2022 13:25:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 222DPfYw041986 for bugs@FreeBSD.org; Wed, 2 Mar 2022 13:25:41 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 262295] [pf] Tables and anchors Date: Wed, 02 Mar 2022 13:25:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: security X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: matteo@FreeBSD.org 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 keywords bug_severity priority component assigned_to reporter cc 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646227541; 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=Yvukhu7Q7X29b0enkH6jxFeYJgtLOcoE7TTX0YNX4uY=; b=gy7JtvezUFEu+7WiVVwstAz7HHgofg5SSvHALBNhEf2MetvkCZQFzdW4KNtqpwUNLO3RJC x64h/xn8d2vGqVTjzAFaiY5gxfX+oPZK2nACgY0qd64h3cfA0HJwBAJNXLtR/Q/jep3Vss A33s58XJrjggfZhzBDnLITQ7X45m/JZkkGfwu+lbfF0fERnFFro4wCkMDTWNPqHOmOi2PR pzVbE1xqnU1Ov2GfgIrumxu266iwUi8BgR3SdtR2tLS4G69qvfNUjB2klbnJDypwc26TiG fIuesAMM2BpZJv0YBGHzyPbPtFrGStEoz21dQlQOI31YvXK7JDfuFih+XIwtBQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646227541; a=rsa-sha256; cv=none; b=AuocjL4bgSPLQC88bAFDH2Pwavf9jo544KSX1UBeZrLu9pfgd/OY8vRtytZJdcwpXPKTOQ e3wXnPFKnAZ8F7IEL9M2BDHMdEqKHE7OiwaB0VWI/zyWPLdzrQX6MVDRqYCb0KZRKiuRp7 897HMbyxDz69B3hb6FfIVZ1o0DK/pFroSBoS7bE0l44DMSrJl77QK//yEMhY7mGPj8c6JT Bvi9FpQg4I+AFHN01gV2w92UzfcWh0Z1Cq7vqKmnYvJEzh3RQNw/5Ihhtuqh50v09EStoH cjXawBLqMpG0eWZ2kWNcuZHISnL016yApWPlq5ImoqAsuwQL6lfiL0DQfF0V7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262295 Bug ID: 262295 Summary: [pf] Tables and anchors Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Keywords: security Severity: Affects Some People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: matteo@FreeBSD.org CC: kp@freebsd.org I would like to have a pf.conf similar to the following: table persist block log quick from ... more rules anchor "external" on $interface { ... more rules pass in proto tcp from any to ($interface) port ${tcp_services} keep state \ (max-src-conn 10, max-src-conn-rate 1/4, \ overload flush global) ... more rules } ...more anchor/rules If I try the above, when I load the rules I get: pfctl: warning: namespace collision with global table. I then tried the following in pf.conf: ... some rules anchor "external" on $interface { table persist block log quick from ... more rules pass in proto tcp from any to ($interface) port ${tcp_services} keep state \ (max-src-conn 10, max-src-conn-rate 1/4, \ overload flush global) ... more rules } ... more rules And I got "syntax error" on the line where "table persist" is = and on the line where the closing bracket of the anchor "external is. It is unclear to whether I am making a mistake, or whether the first and/or= the second should actually work (and I would prefer at least the first to work,= if possible). (This issue maybe, but perhaps not, related to #183198. This forum post (https://forums.freebsd.org/threads/inline-anchor-table-fail.61116/) also s= hows something similar to what I am experiencing) --=20 You are receiving this mail because: You are the assignee for the bug.=