From nobody Mon Jun 24 17:12:40 2024 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 4W7Dzr6QpWz5PGsL for ; Mon, 24 Jun 2024 17:12:40 +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 4W7Dzr5MxLz4THX for ; Mon, 24 Jun 2024 17:12:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719249160; a=rsa-sha256; cv=none; b=V9LmeWH5CcWrDX3RpnAM4cg07kQ87OqUV9n1W1apSyEBjX7QxrNulnQ82qKYCI2pQzwW6f BjTOG21SLl5s8dYUIWbHVxoa24wQeHpX3OL7lvusZwJ/g4B9CNSeuy/Zz/ezqm8/3sN5wP J4RFdcxVc81uvEoU3yFr2UfvbYI3vqiM9lQEVla+7HxdorvgbbP4ePK5wAyK1PiYwk2F+O gP2oEdbH6eqHx2K4h7IUb1+z2DvScfmun5uQktx6Qdx85hPKmLfS82are8rASqMJjN04Qq RCXwj9iJb+M0E4cFpzCsp1qJnKWIpsoE7EJTWT803U3DDlU9+OvkaU0EEnMH+A== 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=1719249160; 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=D21KCxed3OHYT1kX/vw+NRtlHBdlyoSVYIMNPW1ED2E=; b=pzCsuJD8FkpO4x5Q1oSIdnUjAImg55s5uNOPC7Q5XZ1xTAbggZ7F94Mwmtyk6ru1Ws3kFI HSC1JmS96yRF8JfNLXwmLG+6TvWEhivE5FF/lbge/2QVbUsoABVF4jKEVpqJFiu2WGF9d/ jfcGqZqQtt5sVaiOno6J537OwQU1y0ueZKoXoNICo4j3EgLyfCBdSIihkKvLZtUkgLn4um 0RqK87L6clH/NJQROq19uKwOqWc+NtKDewFyFbW+Iv7N+RBS4XWoZfzGjcV4ECR1PrTqbq 1N3MKO6evUtWn7b44H1MTRPnKbP6AwQpR902waUGtAs6SvypUXcla38IJNxOJA== 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 4W7Dzr4wKNzRCB for ; Mon, 24 Jun 2024 17:12:40 +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 45OHCe0V092927 for ; Mon, 24 Jun 2024 17:12:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45OHCefS092926 for pf@FreeBSD.org; Mon, 24 Jun 2024 17:12:40 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 273198] [14.0 CURRENT] PF recognizes encrypted IPSec traffic as coming from WAN. | NAT with IPsec Phase 2 Networks Date: Mon, 24 Jun 2024 17:12:40 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: igor.ostapenko@pm.me 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: X-BeenThere: freebsd-pf@freebsd.org Sender: owner-freebsd-pf@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273198 --- Comment #2 from Igor Ostapenko --- (In reply to cArleone from comment #1) I've applied the initial analysis of the case. I've managed to test it using jails and vnet. From my testing both if_enc and pf work as expected, i.e. I= can catch ESP or the payload on enc0. If you want you may run the same test on = your system to verify that basic behavior work fine: - fetch the test file as /usr/tests/sys/netpfil/pf/ipsec - # echo "atf_test_program{name=3D"ipsec", is_exclusive=3Dtrue}" >> /usr/tests/sys/netpfil/pf/Kyuafile - # kyua test -k /usr/tests/sys/netpfil/pf/Kyuafile ipsec I believe the test does not cover your case completely. If more details and sequence of actions/manipulations over the IPsec traffic are provided, then probably I will have higher chances to reproduce the issue. CURRENT 5dbf886104b45fea255987ee2ae4828b8d002ffe was used for the testing. --=20 You are receiving this mail because: You are the assignee for the bug.=