From nobody Sat Oct 05 16:05:32 2024 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 4XLVcr5DD5z5YVpj for ; Sat, 05 Oct 2024 16:05: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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XLVcr2myHz4HFD for ; Sat, 5 Oct 2024 16:05: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=1728144332; 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=G0xqwjLWjB+gO6YDdpuzCSvy7/Gw/QEkWNlyxrvEPBo=; b=WRNlHGLlkcdWt1YG7KX9gBUz1mCLy/fYGDSDk42oNjSvb6ZpV9agr8+gWnsH9gODEa6GpY EKYkNNO3aAQRdrex2pmph91bne+f6bfegK1u7nxYq+Pk1nmLm6tEWz3Y4pBDu3NBN/PdfQ Htp7g4HCl3VD4Sap4oy+za6DWuGw4zMoYBfw/vhqTcFSV07QXj9n2cBpeoVzmu3wGT4yfk IXtAzGbCCEAmx51EUhRogikFYqvOKo22dzBHg+sQsVTxH71FRsyJFilklbxvonbyPsXRSj 9A3q9T8aPQvgJmjHa187391+g0to7o5gFceWGm4ALPaf69TjEvQCznasM2NDsw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728144332; a=rsa-sha256; cv=none; b=jgwThRhco8k9ggKX2B5yt6ctLphGpMUu/picPc2A8KrR1S0scuLse6rMrAK4hkDXW3p85Y G9d3ztSdX5mTSMQ3l6Rik9/YiONl+Ioh4TUpKD0SuG01jDVCXvFzjcV0CZG3LMZ81l4LIg UzFJiW6EzLDJbeLIcWWl7KvsV28oDrqLaugQ3Rzh3JWYshruhQDcu26FwqX6gvGGOPP/mH EFv1wgQR4cfMfqigi1SK8VtxnliMl/W9xzcvQ7XHGp+LyAOc18wC1BKSrGFlNATNFtkKf0 6w3piBSi5p2AmkELKLpUSId9f1d/6mv7BmD9VYk2be7+oYq3+tFdCzLy8onZxw== 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 4XLVcr2HPXzPmF for ; Sat, 5 Oct 2024 16:05: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 495G5WnQ086349 for ; Sat, 5 Oct 2024 16:05:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 495G5WMA086348 for bugs@FreeBSD.org; Sat, 5 Oct 2024 16:05:32 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 281871] [pf] "match out on $ext_if proto tcp scrub (min-ttl 128)" modify incoming packets too Date: Sat, 05 Oct 2024 16:05:32 +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.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vvd@FreeBSD.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=3D281871 Bug ID: 281871 Summary: [pf] "match out on $ext_if proto tcp scrub (min-ttl 128)" modify incoming packets too Product: Base System Version: 14.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: vvd@FreeBSD.org I have software gateway with FreeBSD 14.1-p5 amd64 with pf nat for hosts in local net. Steps for reproduce: 1. on gateway in /etc/pf.conf: `match out on $ext_if proto tcp scrub (min-ttl 128)` and `nat on $ext_if from to any -> $ext_ip` 2. on gateway (where $IP is IP address of a host in the internet - for exam= ple freebsd.org): `tcpdump -nv -i$ext_if host $IP` 3. on host in local network: `tcpdump -nv -i$if host $IP` 4. on host in local network: `telnet $IP $PORT` 5. on gateway: request: `$ext_ip > $IP` with ttl 128, response: `$IP > $ext_ip` with ttl 59 6. on host in local network: request: `$local_ip > $IP` with ttl 64, response: `$IP > $local_ip` with ttl 127 - here must be 58 --=20 You are receiving this mail because: You are the assignee for the bug.=