Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4775808pxu; Thu, 10 Dec 2020 05:20:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4W94+qsu9RaqTuKFTr0mSFoa8+8uoc66gS9E6hBAepWaL115KMIIgvvtFcf/y90EAcjcG X-Received: by 2002:a50:9b58:: with SMTP id a24mr6599459edj.22.1607606434921; Thu, 10 Dec 2020 05:20:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607606434; cv=none; d=google.com; s=arc-20160816; b=XIG2z3OjNJzB1h9zPt7QF1ZeGzNw3ucADCyeUfCKYvtusm/2kEnFeqJLFf5G2wvJ6p ocKZL0Bmc4C/PONhNMz87FngXAOZYhhg+1XgvOMgcGdj2UW1x4Dk9rL2GUHFNYYXvXUr 6iRgIwIfmVVPd9nqiV7vXUOLkWxtzl0zmtede2pmkq5Cs0htPxZbAbUV7njMcLu4wZjy 3E1IsEZO6vH0R6DKCmRNTnJjmEN/ZeiFtFG+islR0szyl4n0hS0Vuv+Yy+13Q2wZ8//Y cNg0smcCF98z+WOR2DaGHXlav97dmdyGKFdf3lS0TkOfHXawJA3EcuQE66hGaTPr5ICW Gkhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:reply-to:dkim-signature; bh=uXFug7L9qWCZxkMjBVSkRdbtuecpl57hP8ucDW6WLRw=; b=dpZCwBCAbq9qjvZP4WViE7d7gxdd8+3zOGgwTkqXdYoYrNY0J7YUoVo/hB++kRK+C8 LR8Q9Gcn13TzRT0gN4BphEI7p2kaASuhYPKTW8dqTG4tM+2/CXymz7WgyyoQQhDtJBsx 7UmfmAz5RGgwbXfVY4/at+wBwQY39bUaUrJAUCWtTGwDGLW65SYROZkSZbyUZjuqD0x3 v4pbNADqrrh9gMgg25nQ0l8lZZgtmHONXeJfL9FlFvVudytrsyQUqrhroXF0wM2WHVOx hfZXvNzX0t1yV6J8J1VsLOdDVPvOV+xGgFG4oddjvIH4bknvsBxUqwtCtxVG3Uzrf+DO Wn7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@6wind.com header.s=google header.b=czMNCueT; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ly25si2447144ejb.326.2020.12.10.05.19.58; Thu, 10 Dec 2020 05:20:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@6wind.com header.s=google header.b=czMNCueT; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388981AbgLJNT3 (ORCPT + 99 others); Thu, 10 Dec 2020 08:19:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387624AbgLJNT3 (ORCPT ); Thu, 10 Dec 2020 08:19:29 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8B58C0613D6 for ; Thu, 10 Dec 2020 05:18:48 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id q75so5272328wme.2 for ; Thu, 10 Dec 2020 05:18:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=reply-to:subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=uXFug7L9qWCZxkMjBVSkRdbtuecpl57hP8ucDW6WLRw=; b=czMNCueTFJ6lOtxXb5uP18KKU/snef1yz02FUwB+fKTJs+t3laonmdZFiqIzIsM778 SYUurxVYpxyPS0talHxRGm/8bhUajMXmfVrpmkviq8Mw57M5hEyt0vIJy9q5RJa3owPz HjThABHN8WpX50daeK4GAiQbS+mTjBX+skdw3ZAQGFxdW8/6UchEnVrgnYBWlyj2coPk z6LJWTuaEDlr3u0RjFoL2VT/MrG8F7KkcIKEOeKmTHlsvDvdJj/cfBU+6Y/0aHYXjLrB UG/+q06Oaw/BkLAANTHC1uosV8Zt7MsEEmxUk3D3yWCIbsUsHign3gJ/YtJH5Y1P+ovc RPsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=uXFug7L9qWCZxkMjBVSkRdbtuecpl57hP8ucDW6WLRw=; b=Ysp0+LEb/D6peSO+44rC2oHdEKCKEZc4qSTrrA1D0DrdVnfMuU+PXQUqQrNwH/vk/q fg+Q2JBOsyMvppjQXLoe1jr86BeR8cioNBR3XuyHkjY5W/Q2cUDGwaUIvQhB0Bs4lwcA nyNNV0LlJniWoHRptCRoRZVm/Ej3lbEyatEQRTyJ0ouINH40u4pfiPU27D7izjaBHRit owCNE9q6/xZzgq9kNwSaJpzeoCLA7HZsr0ZjQuTYZyudcuyfiIDlBy3Q6kbUciRyampA Tk58zLfAdCH2W8tCQXV54IdyeAonaNnufVyNyV0EXuDyqx10nAs6xhoKAWOJjO4GfbvI 83Hg== X-Gm-Message-State: AOAM533xzKqEXnupKkR2+vUUULmy7KfRP7AWfU6GLofBFnKiKM8yRyfA CuMdTAs5+x7AZHLc36CbIdFOLw== X-Received: by 2002:a05:600c:40ca:: with SMTP id m10mr8111055wmh.54.1607606327369; Thu, 10 Dec 2020 05:18:47 -0800 (PST) Received: from ?IPv6:2a01:e0a:410:bb00:4889:96e0:4dc7:717b? ([2a01:e0a:410:bb00:4889:96e0:4dc7:717b]) by smtp.gmail.com with ESMTPSA id 189sm9385205wma.22.2020.12.10.05.18.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Dec 2020 05:18:46 -0800 (PST) Reply-To: nicolas.dichtel@6wind.com Subject: Re: [PATCH v2] xfrm: interface: Don't hide plain packets from netfilter To: Eyal Birger Cc: Phil Sutter , Steffen Klassert , linux-crypto@vger.kernel.org, netfilter-devel@vger.kernel.org, Linux Kernel Network Developers References: <20201207134309.16762-1-phil@nwl.cc> <20201208185139.GZ4647@orbyte.nwl.cc> <9fc5cbb8-26c7-c1c2-2018-3c0cd8c805f4@6wind.com> From: Nicolas Dichtel Organization: 6WIND Message-ID: Date: Thu, 10 Dec 2020 14:18:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Le 10/12/2020 à 12:48, Eyal Birger a écrit : > Hi Nicolas, Hi Eyal, > > On Thu, Dec 10, 2020 at 1:10 PM Nicolas Dichtel > wrote: [snip] > I also think they should be consistent. But it'd still be confusing to me > to get an OUTPUT hook on the inner packet in the forwarding case. I re-read the whole thread and I agree with you. There is no reason to pass the inner packet through the OUTPUT hook (my comment about the consistency with ip tunnels is still valid ;-)). Sorry for the confusion. Phil, with nftables, you can match the 'kind' of the interface, that should be enough to match packets, isn't it? Regards, Nicolas