From nobody Tue Apr 15 19:20:42 2025 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 4ZcYsR3yK1z5tfkB for ; Tue, 15 Apr 2025 19:20: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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZcYsQ0zYrz3Npf for ; Tue, 15 Apr 2025 19:20:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744744842; 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=7sY6o98td0yC5RFitQS+alw8JuAGCBFvOSzsf3YXCVQ=; b=HukjMDsSpA6Ma3wCdQcaCK5OLVEhDD6au3lB0nswXmoh4ZMIcINmb5hEWaLUu8ipVhtXSS UYQKezXDs0KeSa3YJEBohGYOTT6Xl7t4KoQN7NLzl/akvRqX/hOq7DT0+aoha4cVJP+qrM 7UjN1pU4jhgGbX4w4u5wnRvORDvrzFdElBlKfYp2pNkkbzYRbI3wsG0vY5SuY2n7mO572F YGciwp7FXvDPJO6i3C+TsFwdJsBszrp99+UBHbr15oF7SFTiTro2wgTFHJsb9/jbPXNDDi j5WmSnEjcBdH6eaXDL/bFcQ7+RhfCiC1ngwwN5VqxdfaY+yAsApdoaX6vewc/A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744744842; a=rsa-sha256; cv=none; b=rK6GKPesPHRc6mlK7iZCLY4wjGrxUvAQd1wqlXhLq7YK8IKBPH24XFW7bYTThVHsRl/JjK 8ZBK7hPKLpmqrktAjlntRJVCRacxJU/MDmVz36WfpUXBds5lof/OQD/1W5JVNy8yGDnXWR a063LipTI4Gy15nDVvvNR4VcJgJwvfbJC08omPoN+hEvUmbM5FRhK+TCZrWX05V1eJM+s0 WRibwZBfO+kQrh9M7nxdkKJq5F1TQKf2fBEgt1JVNcOlXQrGFWAI/2LDcUzZETVK95C02L yECYWJJgjKab0NEEX0sCO+ZXVblbodxSH4O+ds/S3gZIf9Zk0FLibJqkNE9JJg== 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=1744744842; 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=7sY6o98td0yC5RFitQS+alw8JuAGCBFvOSzsf3YXCVQ=; b=FtyMfjCZdIIBNfColMQT5ncySWAkBdJJ+YPgdjKa1io5TOrpay0cNIzDpx8HzAzoTXqXrN B1pQBpeWq8/mrSGLNera4/dunPL3qjNVZHXFgTl5dXrlppJakPtpxHu30l/5fTIRCAAPdo IqAg2b7Cpi6JFaBoPmNwYYIVh6jHA8t7q20GfhvQLATX8OwvrZ7Jdw2cF1VP6swItLETOG /cPqqV1zPOKFU1U0DSn26xP+CX4ApgwlD+Z1mco/An410nj9pN0LbjcCK7XkD1Kdt62OhO S2Tvl3FkRgzTH6tTq0CBdqPQsyMt5ORVDt3xvaEa2xgvGpuYL4CcN8i77VbeGg== 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 4ZcYsQ0HKwzmv7 for ; Tue, 15 Apr 2025 19:20:42 +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 53FJKfjS018938 for ; Tue, 15 Apr 2025 19:20:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 53FJKf6n018937 for bugs@FreeBSD.org; Tue, 15 Apr 2025 19:20:41 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 286122] ipfw in-kernel nat log not working as expected Date: Tue, 15 Apr 2025 19:20:42 +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: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: darren.henderson@gmail.com 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D286122 Bug ID: 286122 Summary: ipfw in-kernel nat log not working as expected Product: Base System Version: 14.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: darren.henderson@gmail.com Using ipfw with in-kernel nat gives unexpected results when trying to look = at the nat log. Invoke nat - "ipfw nat 1 config log if igc0 same_ports unreg_only". We will also do a second one "ipfw nat2 config log if igc1" We let things run for a while and then try to look at the log - "ipfw nat 1 show log" we get: ipfw: unknown redir mode ipfw nat 1 config if igc0 log same_ports unreg_only Now if we try "ipfw nat show log" we get the expected results. nat 1: icmp=3D2, udp=3D16, tcp=3D260, sctp=3D0, pptp=3D0, proto=3D1, frag_i= d=3D0 frag_ptr=3D0 / tot=3D279 Now "ipfw nat show config", "ipfw nat 1 show config" and "ipfw nat 2 show config" all work as expected, without specifying which nat it shows the con= fig for both. If you specify 1 or 2 it shows the correct config. I would expect "ipfw nat show log", "ipfw nat 1 show log" and "ipfw nat 2 s= how log" to work in the same fashion. Without the specific nat specified show s= tats for all instances or show the result for the indicated instance. Hardly an earth shattering issue but it would be nice if it were consistent. --=20 You are receiving this mail because: You are the assignee for the bug.=