From nobody Wed Jun 21 15:36:53 2023 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 4QmSKf0rVLz4g76j for ; Wed, 21 Jun 2023 15:36:54 +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 4QmSKd4c4fz3xfd for ; Wed, 21 Jun 2023 15:36:53 +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=1687361813; 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=o0E3TOG1FqlJGd82/3Wynj5xRToYKKhPVXzfjnS+Iyc=; b=x6wq2WGvoQ9Iyxe+ADLMkEiA+5Ecsp3e53JnuOLRNA5NHt6tfP52foX1zQ5ZSLxe3LNSs4 V7ejR6D44tlvQOxLlJVgoBmYc5ylpiDG3vxoRt2Y6PudOXta65H5W2YfzCI8uQNLyRjSqo 9F/+ghk9gR7ZDTufm2trACxog+v7U3X/3sQpM7W3T7W4IaiHeV8IcX9xW7yd0B77lPT7sg Tu0eqzLo4RaIlYw+rXFHPAUiqf6R9T0dGKQOH1KYRMEmZoem94umJheYTjVhlny/FUCiW8 x8IpkqIHaOEkHWqZPT5R7dMDjFhthN70suypotzXOkFDVm2ep4Cya4FthkcHfg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687361813; a=rsa-sha256; cv=none; b=JR5LZDkK20VvjUlOvpsAAgna91cSaDQn3rxVyY5TF7wQ1nfxH9iWGJiwugK+bXDIRK7QTB W3EaGfyk1PTqAP21nbjglHtbfCLBgAZwEJEKRAVRyI1Mldm/o83KOLcS2MeifTUKfBx2NV QyfrFCppKZv7ybVK4eeYtGb+0StBnyrVBRQV8Kx/W3rDp5QbPIVBIwMw3m29aQThQIPJpt E5bz5YVdv0dY1+7NCJvn5CcGnuOv5/3jj2fJ2aGRD6h6wOXwkuhPE0XmsR5mK1rxVS5daS 1j2NsK21kdEo2m9J5WH9xKniqCKIk2ss6MHlSKut0cL/T4VCRQHvIJYV2i+fXg== 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 4QmSKd3bDPzmnF for ; Wed, 21 Jun 2023 15:36:53 +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 35LFarQm080133 for ; Wed, 21 Jun 2023 15:36:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 35LFarRY080132 for net@FreeBSD.org; Wed, 21 Jun 2023 15:36:53 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 272094] pfilctl IPFW hook order not works with PF route-to Date: Wed, 21 Jun 2023 15:36:53 +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: 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: 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 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 the assignee for the bug.=