From nobody Thu Sep 7 16:10:43 2023 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 4RhPNg2Ywmz4sQmN for ; Thu, 7 Sep 2023 16:10:43 +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 4RhPNg1HZsz3RDL for ; Thu, 7 Sep 2023 16:10:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694103043; a=rsa-sha256; cv=none; b=tSrzc3ByfniVl2itFvLzMKUxj//uoYaXSKgScSL7oUwVc0YJlgIhES1h9oRgImntAdMTET oNj9qjtarpP2E1Rld0y0B5QNMmeNpBWLXfw6OakyTkn9q6c+szXiBiOqi3NBA5HhO1w3dV 6Ld/ATTFgi9skftVoCOkamGSXmUoc0cpLmdgxz2QngJ0UCFC7yLYdTw7UsrlUZH2Zb/Ts/ tNmlFLY/itSLH5d8k1WwH8QcEsPz8stMUAzkmoZUFLNa0AlOGpiYntWXHBoy1l4ZPgUG5k 9p9cWMSNLst/KsLwUNJqgYxHuqRM11h+QKDEqtsuEjfirE5hW1iyMHN5Ohc6vw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694103043; 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=43IgQYteTEz8goNtYTLthsGjE7hPkKqEW8q3roRyJU4=; b=hhZeHMCZjiDUmFdSPD+Kp1Yel8p6Q6KnU6cziEAJlLaPXm6dX6sNLOd8WDtaImstZCf8Cg jvlvt/fTheQMS+LthtZd8FNfL+tTqTD8+VFzVFk9gnnVExl+TXAeLrmKrMeaJw5pfAKiq/ tijgb3cDCthSpKeT9zG0MLf/tuTKa07JaQVOzg6QCkbUHlA9A8D6Jl7YTf4Du86aQer9HY u0uUh+kLsr31ljVZGTeMn7BKpwlf//lIC5Uz/oH6aZn8U3cuWh7DRDjp1TLu6gj0yuKymW 3wg5RULXUQod3l0cntWwwvXtnZRuHJAHTZZZczsTxh2d7AAEY4mKE2Ylr9RGTA== 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 4RhPNg0LmPz15V3 for ; Thu, 7 Sep 2023 16:10:43 +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 387GAgGY093607 for ; Thu, 7 Sep 2023 16:10:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 387GAg58093606 for bugs@FreeBSD.org; Thu, 7 Sep 2023 16:10:42 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 273618] [pf] Port redirects for packets received on loopback have bad checksums Date: Thu, 07 Sep 2023 16:10:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dfr@rabson.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 bug_severity priority component assigned_to reporter 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273618 Bug ID: 273618 Summary: [pf] Port redirects for packets received on loopback have bad checksums Product: Base System Version: 13.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dfr@rabson.org Normally packets received on loopback bypass the tcp checksum calculation s= ince the packet is expected to not leave the host. The packet header is marked as having a good checksum in looutput() even though the th_csum field (for tcp packets) just contains the pseudo header partial sum. If the packet's destination address is re-written to an address which route= s it to some other host, the packet will be delivered with a bad checksum and discarded by the target's tcp stack. I can work around this with 'ifconfig = lo0 -txcsum' but it would be better if there was a way for pf to detect this situation and repair the checksum. --=20 You are receiving this mail because: You are the assignee for the bug.=