From nobody Mon Jul 08 08:12:33 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 4WHcLB1LWdz5MrJ7 for ; Mon, 08 Jul 2024 08:12:34 +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 4WHcL96HrSz49NN for ; Mon, 8 Jul 2024 08:12:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720426353; a=rsa-sha256; cv=none; b=xyIy7eLZ0TXA1wSIsHtBFTZ/Hppasx4SmsB+NV6mBUKAdHXnIprw9vBMU+yCgXpCfJT1OL 4Vr4gPl1uzXPAOjdHRMc3gul0EZeXvgUEcFnvpWAPA130aXWJwwdBHSwNhwlw0fs0m1ttY m1f6Vst9ITu4z55yWraEu4h1I4h9omwUn79EN4Ku5qe8HAdOKTiHJAyMTaUn5Ribg4GZBf y4cueRFqdZ6dGbrxBnmJd5Cte+fWIjKGv+mtI2J+BM7omZ70eYmwpI3IzDu4zB/xXlzi4z l/DNNAk2nj/1tYby0QWu6P+/Zj6mm+cDdtLFFwuRMYvj3CJqj/FxxrQmTGPLhg== 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=1720426353; 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=bNXhpKtGvOBcW8iN6Y/2/m6ahQvY2spNL7fN3yNxWYs=; b=spQvaG59SgKXDMG8J+oq2iLrM18IhU0b7HkQAcxDXbwHGXDeMDlwG0CJQ6fqTQGyiMtqzn Z/zkvNVmpkn2k+8HUZgJ32LHhW5/bGsAXMuufYDnpZczOARt0a87GZFpnVThuF1WkXOW5G e974iDc9EYOps667fVnUSVNP8TWbZC0dLAHlMtVvxH2ugnV/K55q5XvBJYQgL8Glr5yHjh 37QfGRZGAV8WrwD9HmDfMugfRFqMI8DfBL5CSbLHx6/3PsIn+kAtDpHtT1xGdQDrlQQF6w R2YFNSXNPcEoavAkoxa6v1JFvTFqvwSTJS/U6EdjKpOiL8NWEa6xy7f5BhvQTg== 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 4WHcL95wQxzkFC for ; Mon, 8 Jul 2024 08:12:33 +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 4688CXap057120 for ; Mon, 8 Jul 2024 08:12:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4688CX8Q057119 for pf@FreeBSD.org; Mon, 8 Jul 2024 08:12:33 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, 08 Jul 2024 08:12:33 +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 #5 from Igor Ostapenko --- I've got port forwarding working with "rdr on enc0" pf rule using the "pf_if_enc.diff" patch and the following settings: sysctl net.inet.ipsec.filtertunnel=3D0 sysctl net.enc.in.ipsec_filter_mask=3D2 sysctl net.enc.out.ipsec_filter_mask=3D1 If you still have interest in the mentioned setup then it will be appreciat= ed to hear results of your testing. FYI: the patch was committed to 15-CURRENT. --=20 You are receiving this mail because: You are the assignee for the bug.=