Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4702033pxv; Tue, 27 Jul 2021 14:12:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytQ5gvBQEcOhk7bs5rpdx4q1QziVxVTLzFP1G9OIywCFovmXIbnE6QM6BScpFHTOhdfsdu X-Received: by 2002:a17:906:2c45:: with SMTP id f5mr10788574ejh.464.1627420339258; Tue, 27 Jul 2021 14:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627420339; cv=none; d=google.com; s=arc-20160816; b=lRJwqkcsZa8500BKeQbkGI7WedkW39dMCeQXjYwLxdQhKnAS1hQZv+t3o9rjF0rj7V 6iSO9Y/2eXX7Sk5SewoZug7eEmfWFsQgTMqSVdVweLLsiimGw2gSkEMPz0iiASQKOllE 9V0/zdVBHLrv7eGF8FY9RxpukIAM7fprjEtk9QSX3X69aUhiR09AkHAGF7lVjqcrrQMK d7fg69dVfSR8ugidUBxzFaFy7+pWVbJqa719Xvtf4/mUJU3kzYWULizrf0p05lzhjil1 zg1oQB3T6a86U0KlvSnCJSl9E5ho4HNzCYQ14MlsR2UwvPVMEbQoFRoIaQn2PWIxuBPa kWIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ZhRt0Nu6qzV2ruhs4WP2OXIv35QycTk0s2YWlzdXWAw=; b=tbLqzY8gd1thrGo2gYxFtRUw8a+e5/UUI66SeKsDb+yvqgWZ2xLOXDpcDz+SeUfwFA gH/mbauty01rn7rke4OH5F8BxBbQ5kP9NwaG6rfflp4wbjQ7OFK9OSZJn7JgoXQBrsxT lVZv3Vb7pvIJYasSrhxlqdKlKuLh8uhs00UEnikw5N+LVQF+gyLpHi25tQJQwma1Ufqv kX4UnjjgDc0qc++0gnyqBTROJSSENvH3TsmavySqk/CkaVUTHaDlao9gNf9UWdtEp7QL yCZQM642ovEpTCNHDNarTk1wCAsYiWRjcQfTmSdiN9qseeLdry1KEqsjl/OyNh1UpIXA T/bg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 cw10si4202941ejc.360.2021.07.27.14.11.56; Tue, 27 Jul 2021 14:12:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232487AbhG0VKo (ORCPT + 99 others); Tue, 27 Jul 2021 17:10:44 -0400 Received: from mail.netfilter.org ([217.70.188.207]:36444 "EHLO mail.netfilter.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233360AbhG0VKh (ORCPT ); Tue, 27 Jul 2021 17:10:37 -0400 Received: from netfilter.org (bl11-146-165.dsl.telepac.pt [85.244.146.165]) by mail.netfilter.org (Postfix) with ESMTPSA id 381C2605D7; Tue, 27 Jul 2021 23:10:05 +0200 (CEST) Date: Tue, 27 Jul 2021 23:10:29 +0200 From: Pablo Neira Ayuso To: Alex Forster Cc: Kyle Bowman , kernel-team , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Jakub Kicinski , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-kernel@vger.kernel.org, Network Development Subject: Re: [PATCH] netfilter: xt_NFLOG: allow 128 character log prefixes Message-ID: <20210727211029.GA17432@salvia> References: <20210727190001.914-1-kbowman@cloudflare.com> <20210727195459.GA15181@salvia> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 27, 2021 at 03:06:05PM -0500, Alex Forster wrote: > (And again, this time as plain-text...) > > > Why do you need to make the two consistent? iptables NFLOG prefix > > length is a subset of nftables log action, this is sufficient for the > > iptables-nft layer. I might be missing the use-case on your side, > > could you please elaborate? > > We use the nflog prefix space to attach various bits of metadata to > iptables and nftables rules that are dynamically generated and > installed on our edge. 63 printable chars is a bit too tight to fit > everything that we need, so we're running this patch internally and > are looking to upstream it. It should be possible to update iptables-nft to use nft_log from userspace (instead of xt_LOG) which removes this limitation, there is no need for a kernel upgrade.