From nobody Mon Aug 1 08:33:50 2022 X-Original-To: net@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 4LxBH22mGPz4XyG8 for ; Mon, 1 Aug 2022 08:33:50 +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 4LxBH20wR4z3VVT for ; Mon, 1 Aug 2022 08:33:50 +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 4LxBH175HNzRm5 for ; Mon, 1 Aug 2022 08:33:49 +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 2718Xnat025244 for ; Mon, 1 Aug 2022 08:33:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2718Xn9q025243 for net@FreeBSD.org; Mon, 1 Aug 2022 08:33:49 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: net@FreeBSD.org Subject: [Bug 237973] pf: implement egress keyword to simplify rules across different hardware Date: Mon, 01 Aug 2022 08:33:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: melifaro@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659342830; 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: in-reply-to:in-reply-to:references:references; bh=MnLkkMjMeDMcf5GArWOzMzYgr8hp7r3huHw2rhK9pxg=; b=V0a2cfWLggez3Lbg/F1j20FKVk+DbRzHXCTmM331mqlRoqFhU1eM/PfvdNMRo07oRqw/ZC kqKsmZ71E27oblG2maSbLrZgV784yWjjiESPNEDDndJT3Ul8hB3FdkpzpdMpMlL2Ipx3Gq qvpVLUKWDpGlE8uDUOd2jis6o42Q43s/49qzJmMFE3IW9pms9KuLfXdLN98WG/GOgkgRZj 8hS6NbYOJoVCWtI51QNj7af92YxZscRvXgAHNZTm43cRBzi0w8JCw4sLFHDJMVPEqTwJTz /UhPHFgEVi7xrqAEhBYebn5PmLCQV4pzpkBYoOj/N1v86IIghZvkmBOiC45/Lg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659342830; a=rsa-sha256; cv=none; b=CdLl5JtMDfYWW7UGtz6Q3G0ya+139EmBg2zCSPU2Gc1n/M7Xb9n5GZmEFcv6H65+y9SBCR Sp8gVJTEZ/9zFBUfz16IGHFrD/dKBIbf1p/TdXMAPrfhlHoSSM8uA8LNozl2aCp72I846N d0uTHIQX5F3UdjZmZuuRLVZAftaBC4rSEmXxRmqDlZ54D2VDuSRM8p0NI4IwJ9nm0/uvB6 0nO7db0FHBioo6rW0prFxYe3ThvtBAT2QxvTtUVmVE76oAZriOxzvVYgex9iaYZTRshAOI daQUjq/eD/JEaIbg3k0qHH5z3BWrjULEOV1xJX6PRRr49s8fdK81EV1s0RUayw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237973 --- Comment #14 from Alexander V. Chernikov --- (In reply to Goran Meki=C4=87 from comment #13) Depends on the implementation. The code in the mentioned repository ( https://github.com/mekanix/freebsd-src/commit/afeff25d15b5d16b6402b36de8d61= ee44d229c5b ) sets IFG_EGRESS based on the default route presence. I'm not familiar wit= h PF internals to say what is a clear way here - to maintain an additional inter= nal data structure with the list of interfaces with default route, or leverage = an already existing? machinery for interface groups. What I'm saying is that PF can instantiate subscription to any fib it desir= es and handle default default route changes from that hook. --=20 You are receiving this mail because: You are the assignee for the bug.=