From nobody Wed Jun 21 15:36:53 2023 X-Original-To: ipfw@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 4QmSKg10nkz4g72C for ; Wed, 21 Jun 2023 15:36:55 +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 4QmSKf6zZKz3y08 for ; Wed, 21 Jun 2023 15:36:54 +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=1687361815; 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=ElPpbXn3osMbzQdz+UsW1SnbymbxcZ/kymrlwOTYqCo=; b=jISrt3yxZpFWwiSNLaGkyrShrH5UNY1YPLapM0Cfl64VW6hxs508g1VKLF/pNI0lL/Fy2a IxOtlsUPPru0uCDw8qRCfX91USmAcgqNGHL3RVBogARa5aeVOTickh7+F3LhO8Bdg3U/vR VtbaAaI4vhYL3V9YZCHymhYeOHm3hy0NNXK0yz7gFA7zZY5G91/VqNkJKSVtXyRrtSnZPk HpvlT31JWe0wjORBiaJhxnD5e2aGJGb3HKifxaTA1PY9g4a1R5db62l+8Sar4HlCucMHhP Ol4iMYXJTwZ1CsEJ0hzCmjWlJXQdOAiCevOOXdaXTEjXSyfGcRlODQoQoOWzgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687361815; a=rsa-sha256; cv=none; b=MzSJ3KgpgPIUX1zq56ovyTCVM8emrZnEXGej5gMbSi+s6/xuBd0IU2BmENUcoNko66cgy9 ECLtwPoffjIPeTap+ThbLxHmqnyvL7ZjK88agNFE0CAmH/y4dt1ZP9/wuOEs6fYPkxEyQg c8M6EC6iipVCATBEBliIdF3xn+HrKbiAWhw+JMfpcN61xj4ICEcqmMB2H6Xy5fADC3L0ri btb+laoNZcGZWlPCNVkVJTn2WJFsR6Uskqw/KK0uBmsAgym/1apPfS9cENY+vDtTBNSZkr wdk5O4XPpTbeje255mJGOjChj5oKH7xFKjZajXl3rcOjZcXv0JjBP8aCz7DtGQ== 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 4QmSKf5xpqzmc4 for ; Wed, 21 Jun 2023 15:36:54 +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 35LFasJH080168 for ; Wed, 21 Jun 2023 15:36:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 35LFas09080167 for ipfw@FreeBSD.org; Wed, 21 Jun 2023 15:36:54 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: ipfw@FreeBSD.org Subject: [Bug 272094] pfilctl IPFW hook order not works with PF route-to Date: Wed, 21 Jun 2023 15:36:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: glebius@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: 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: IPFW Technical Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ipfw List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ipfw@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272094 --- Comment #5 from Gleb Smirnoff --- (In reply to Alfa from comment #3) > Sorry to bother but i am confused about PFILCTL tool, to make it clear Wh= at is this tool's main purpose? To change how firewalls are hooked into the network stack. Sorry for obvious answer :) A more practical answer: - Somebody may want to filter only on input, skipping any filtering on outp= ut. - There are some drivers that provide a NIC level hook. This allows to unho= ok firewalls from default path and hook them on the NIC only. First, these NIC level hooks allow to drop packets at a much lower cost. Second, you can bui= ld your firewall based on interfaces, very much like Cisco or Juniper do. - Although running a stack of firewalls (pf, ipfw, ipfilter) is not somethi= ng that is supported or recommended, some people do that and some configuratio= ns (apparently without route-to) work excellent. pfilctl allows to reconfigure= the stack. P.S. We probably should enable interface level hooks in general, for those drivers that don't support NIC level hooks. That won't provide a packet drop performance gain, but will allow to design router-style firewall with any N= ICs. --=20 You are receiving this mail because: You are on the CC list for the bug.=