From nobody Fri Jan 27 15:55:50 2023 X-Original-To: pf@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 4P3McQ48DSz3b3yL for ; Fri, 27 Jan 2023 15:55: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 4P3McQ2ZWjz3j8W for ; Fri, 27 Jan 2023 15:55:50 +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=1674834950; 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=Wu1pTtCdkoYj3aeLvG+sjaPQ86hTLXlXV4TqSgHkqko=; b=PFFED4WxTGTmMzKuaz3TOCmHtg8KwiC8+f6Rt4lVSW6Hio/wkurtKfJViqsI3Wxq8BuuNE WVeMs7ZcvX3VyJ5kClyNq2XSeBFWB1BWN9V4rAGz6Mc5y/LSMZAbfmfLRCKHmhRS0YnAv/ eEykaxeQ6AtmJnMTfwhPeiAQPWMHst4DOWmtqRIxyd83z/xE4CGtXj5tBnCp2g6IaXS/up k6gADb5mIbTQTQyBP9C0vO8AacJ20jqtwsAIuVD9rQl2ns03J2RiGRTjk8SyWI6Y2E9qKU cRwgqZj8N96UYe80qusZtvCsjM8VThAZwK/z0uDqxxHnxor/Ib6hHrFB+9jklw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674834950; a=rsa-sha256; cv=none; b=gFW+ffZK3cvz511LtPpKDNEx6FSxAZCMuhytGuccP5kbq+IpQ7tk0RhWLY4BIJ0U+qUFL/ lmfQCu+oP+UH1dCmuKvR9KjDJS5HjTAAZmQQ0DObQ7S5306/6N5v4FVQE/qL1AJxXf6eHc y8mMaNToZNYzsBu1ZFu4eg1rDJK15yj5AwI/cJU/SL5nWb/dFglJ881r2sW4vygT7mqS5L 3PmjJLYlxu+kAEU/K2gX9nAj4IUxSXVyeybz1SILXQsUnClRX9XsPamqKLto8hG9jIzlAo J3/0LA2akKjU5YL3kISJmO8VPkvU7JT7WxzAoCwP2LRiFfmQmNpgrEE5HK0NPw== 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 4P3McQ1YlgzFXc for ; Fri, 27 Jan 2023 15:55:50 +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 30RFtosW083603 for ; Fri, 27 Jan 2023 15:55:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30RFtoJO083602 for pf@FreeBSD.org; Fri, 27 Jan 2023 15:55:50 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: pf@FreeBSD.org Subject: [Bug 268717] [pf] [ipnat] rdr rules don't work for traffic originating at localhost Date: Fri, 27 Jan 2023 15:55: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: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dfr@rabson.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@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: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pf@freebsd.org X-BeenThere: freebsd-pf@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268717 --- Comment #21 from dfr@rabson.org --- I don't think its a feature - if we are not supporting rdr rules where the initial source address is local, then the rule shouldn't match at all.=20 As it is, for both pf and ipnat, the 'outgoing' rule matches, rewriting the destination address and port and creating state but reply packets never mat= ch that state because the firewall does not see the reply packet 'leaving' the network to be delivered to local tcp/udp/whatever. --=20 You are receiving this mail because: You are the assignee for the bug.=