From nobody Tue Sep 19 07:34:46 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 4RqYMp3gMMz4tXmt for ; Tue, 19 Sep 2023 07:34:46 +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 4RqYMp249Bz3GHW for ; Tue, 19 Sep 2023 07:34:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695108886; a=rsa-sha256; cv=none; b=MjBM1h7v7wOdRnnZgGybtKhLu/yqHWLMh2HzyGpqNGTXJNZ380r+lOeEFLxIXROc7Wos77 e9W+YG/O6IGwYsxZ7TGP3a5KPFk/BEiNIEdQN1fjcahKjfaX5PAUa5c1cQJ5n33MTu5iD9 VijbiHaynJ9oiuTSsR0B37bfgyK37wJq0orS64WweTpu/yfGIHkNQ0+H6CrZp6YOIYs8PE K0pM5SZ1UUXZ9UjPWR/Cp/VwPmuq8v+lNF+FNUWi1jcIh/NpJwSwL6U1v/vKDfnX8qW0z6 JLiJCqMmhmZPUeyECLAGTZVGOof5H2QNM1K2vuuMZHuuBUsP0GW9jQaYw7pJbQ== 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=1695108886; 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=IHycaRpnMq6xz8SBtzj6jOMa5JjnLeUcXLuurLVYaXE=; b=puLFR/0mFlnWu0T9/RxKTLJt2lWqKalwnHKTYrpUfp6KIz92IsiPLoXWo8+yQ/y4+X/QfL fxSZvKBq3byTkkjajkiaxHmOL5f8Cjmmf9nkb+WWghnK53PZqaCraSWG/XIUctQaho2o3n wq6Tx8Zq4alqcZVr+mL82R8yXykTR/Smqf+Fr53c0H+SYFVJ6q9ZsWJ6wZ07IIqu4KzJNn 3uszeMNCjQNtYDXFNqmpoF+n9PBvp3O9T4YrAL0LEvDoYKSal+HmfizBWDkzxC8GMLdzUQ 3wpTAes6E3IgglYjjxmEs+mcWF/T7zv8XKXBx0SD6u65bqUJTtFRiBo4cc0lhQ== 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 4RqYMp14Jcz14W6 for ; Tue, 19 Sep 2023 07:34:46 +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 38J7Yk8M097312 for ; Tue, 19 Sep 2023 07:34:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38J7YkXB097311 for pf@FreeBSD.org; Tue, 19 Sep 2023 07:34:46 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 273924] pf Logging Issue: Missing NAT and RDR Translation Details in pflog Date: Tue, 19 Sep 2023 07:34:46 +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: 14.0-CURRENT X-Bugzilla-Keywords: feature X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: franco@opnsense.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273924 Franco Fichtner changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |franco@opnsense.org --- Comment #2 from Franco Fichtner --- pflog simply logs matching packages causing a rule to trigger and does not = emit rule metadata, because the reference to the rule is in the pflog header. Since https://cgit.freebsd.org/src/commit/sys/netpfil/pf?id=3D8e496ea1df1f00ea783= 2eb41754dbbb56dd244c8 the nat rules are logged separately from the filter rule and that's pre-rewrite. The filter rule log will match post-write. It gives you an ide= a of how the address was rewritten, but only if you compare the two packet heade= rs. Cheers, Franco --=20 You are receiving this mail because: You are the assignee for the bug.=