From nobody Tue Jan 24 08:50:31 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 4P1LK44qg1z30wMZ for ; Tue, 24 Jan 2023 08:50:32 +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 4P1LK418LLz3PnF for ; Tue, 24 Jan 2023 08:50:32 +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=1674550232; 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=qwbubJtmykSm4pTEpBAGZTrYQazqmOah0lJ/VMmEMzs=; b=HFyuzZIXywgliSZzR/oP1e9tj5kfJrWQ722tq7mCqE2jsSkOUR81UGflwrvMYbHwakJz3s K+cjJ5AyyAakFCF07CA7zttxtLbCkutX59H9WmHhkkjdwavOKLhHVQr/tLjMuw9H4xNfDD Ts1/D00tWppHern+TREF52HjrbPairFNdhZHTM1P0ozXZS4KgGBsvshHuYhnsp+/dO8XGX yxgkO6mCNALGcl912ZJfemB42Xr3q/pM93vBkLHYKdUYlwgABu0NruEFVUBgGnDQEuM4AG Zhxu042j91t/ERmwN8Xlm2NgH16VU+roVT5UyAQ0oFjMOCFoaqpWh06xqYXgnw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674550232; a=rsa-sha256; cv=none; b=eJdzSLmO80npftuVqLoulZWjn2CyYXMGOBFUVonzfGn1DRyWKy8JRgVA5ggFpL8VcZwWJn 2A7STpH6nQEmqGzHNrmFTVCvpFJPd5LNvO6pa5PzIS6x9fnwoQ/JIhiCnv2lZqCdffqGcJ zC58itHzPkbEgHF7tFdVS1huYs4lEda27Vp2tqXLZ/hSEsGht50tlGshnnHeC1FyoNjBzd s8j5QpVnG+NmClD6eUJYH7ullv6yw0Qq6+cxl1MvgreXVxPIaunyKjqO9j744I1m8dsTTn fQy2lY4wE3nAnPI6GuqLm3RsMCqQTdqRsjhdBh6DaYo7B+aTrIr4EwkxdvJFJQ== 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 4P1LK40FXFz134y for ; Tue, 24 Jan 2023 08:50:32 +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 30O8oVJT025004 for ; Tue, 24 Jan 2023 08:50:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30O8oV4S025003 for pf@FreeBSD.org; Tue, 24 Jan 2023 08:50:31 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] rdr rules don't work for traffic originating at localhost Date: Tue, 24 Jan 2023 08:50:31 +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: kp@freebsd.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 #13 from Kristof Provost --- Oh. Wait. The setup in comment #1 tries to use 'rdr' to redirect an outbound packet. = But the pf.conf man page says: "Then either the rdr rules are evaluated on an inbound packet or the nat rules on an outbound packet." So I don't think that's expected to work. You should be able (and indeed, i= n my test script I can) make this work using 'nat' rather than 'rdr'. --=20 You are receiving this mail because: You are the assignee for the bug.=