Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp811599yba; Fri, 26 Apr 2019 09:07:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzh4/XOrDc9u7fWI5u/0SIWpWxQikRhgfMatSwiI6Ji/HJY7K5jhdpMeEOjvU9x6J9dgFuW X-Received: by 2002:a62:480d:: with SMTP id v13mr48609995pfa.125.1556294864885; Fri, 26 Apr 2019 09:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556294864; cv=none; d=google.com; s=arc-20160816; b=E5YtyNnL+Xv9n1n98WkwrcPDqhEC5JigDwSX2q3FRdj5+zNRUxkLeLVnUfioXXeckY Zm5Yy24lm8YZvUhnABpMEfIYVydoeJ7Ctj7PiNBJ8EVhhpdW/ZWtcn9N62lVSN+euDXP CjoWcO7RuyvsPx75996hLqImMXtIGuwhTUPlBF1x1J0j57beZ+/Qm++J17587QwzRsXh Wo9r6aqX0Vv8aq+p+u70FFL8glGD+91DNk+2+2UWSmVRsCWj7wfgUf3LM2NVqFrJvTd2 jNXWHfPEF5bStNL/Yck6YqdjWHdteq/jlVdamTjwBP3L+GyLQni3p3yxH96nRNyvio0B vr5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=QbrThhIz4x0+qP/ijd3OLE/M53TudApirYQPrtFpEoM=; b=hX66VaMRPGWAuwP1EDvcDlDLx5obMtSwRumDgvPdACT3yTuMhcbVUEAOUnEHqvkJ3b g6sKYienmAiRVZYwu41c5jmphEJthe2BN5bPDse7ddXZ+Ckr5BWI0fb1XYut6sMI6SzX Di4IdLe5jwxnrn33786fnBD7u7A3qdGg86z4NKRi2FrYTpfiKgVbIEWDRMxFl6vhYadP ZsLZrBSBIcgQyzAZSre7V4vKvJkfKPvSKeSnnfQwFnn0UA11uhhH9+pf0+s22xb21lAW KCXBSOFXDVoKTw1tZ4ZS8xqQfGCRmd0cdexWMnQ8qdXEUBn1987vC/ncPecGLGk9gz5A 8jSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fLuchEcH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si24960986pgh.238.2019.04.26.09.07.29; Fri, 26 Apr 2019 09:07:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fLuchEcH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726410AbfDZQGS (ORCPT + 99 others); Fri, 26 Apr 2019 12:06:18 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46020 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725984AbfDZQGS (ORCPT ); Fri, 26 Apr 2019 12:06:18 -0400 Received: by mail-pf1-f194.google.com with SMTP id e24so1929135pfi.12; Fri, 26 Apr 2019 09:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QbrThhIz4x0+qP/ijd3OLE/M53TudApirYQPrtFpEoM=; b=fLuchEcH12MRqD2ufdG4bOk18J72ajkZauI9fkGXpNWHhfv2fHklPPdWtQ0aT3AXFA GYw7hEdkeYAf18rMoOcDCFoZVTxV/wE8Qsnbchj0evHevNWjKJXGZjW8OFs87/s0W3WJ S8QOuguSnfteZ9gnShXkmKdFxb/a9CfnHG/EtmC10RspnwGhSjp8DLZ0QNUuxfYATCE1 klMzsr47hxwzCbJ7DWkAArV95lBKOPM6jT8cb9v6ci4GhDrH2KU1z2UHtoD/bZvCJjf/ hAPMpl9N6Q8i/6/88YJNZjTMscJ7/KN+MAEm0MAax70wcvlOXD6nvTVSlPwKUUVREaqf SMgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QbrThhIz4x0+qP/ijd3OLE/M53TudApirYQPrtFpEoM=; b=Zsk8kOtuOH/b7HkRKFkEAIBHXJ2DiPkUTmHQVsr7dH6gIPn0wztRmLzGBd7xpK1kql eU/J3lPqs2S7Nn5cmA+SHZW1tqKJK9UtmCJOmORpaOfjMPO3OqeQHNl+eNA1mCKfUn5V U59//61Y7fI4qj9+QvSddzbK6kEc7kPcp5z4Co3VV2MwoQgWgcczkJfnKoqaeC2R0aEO Mo7tEsDYj1ZkkN8WBUUoKrMBZ6l3n+Bvxt4+Gv/M9Kn2dtXtl/EFMrljKTYy15vLnA4n A5bwRmeXxVkyt1zhrZBxLcyyUti4SyJtll1CVCdvqYbFg9X+gDLVO1QKU6czvTW0drt1 KrLA== X-Gm-Message-State: APjAAAX9IWJcIZfkAQ0KHE/N50MRil2sBMd1utkiSWhnksw+3n4OIpN8 Hk+l85SaYv6I5kYiWaOMveQ= X-Received: by 2002:a63:5715:: with SMTP id l21mr16687377pgb.279.1556294777557; Fri, 26 Apr 2019 09:06:17 -0700 (PDT) Received: from ?IPv6:2601:282:800:fd80:c824:60cf:2bea:8fbc? ([2601:282:800:fd80:c824:60cf:2bea:8fbc]) by smtp.googlemail.com with ESMTPSA id h4sm35238269pfo.119.2019.04.26.09.06.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Apr 2019 09:06:16 -0700 (PDT) Subject: Re: [PATCH v3] net: netfilter: Fix rpfilter dropping vrf packets by mistake To: linmiaohe , pablo@netfilter.org, kadlec@blackhole.kfki.hu, fw@strlen.de, davem@davemloft.net, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mingfangsen References: <212e4feb-39de-2627-9948-bbb117ff4d4e@huawei.com> From: David Ahern Message-ID: Date: Fri, 26 Apr 2019 10:06:15 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <212e4feb-39de-2627-9948-bbb117ff4d4e@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/25/19 7:43 AM, linmiaohe wrote: > From: Miaohe Lin > > When firewalld is enabled with ipv4/ipv6 rpfilter, vrf > ipv4/ipv6 packets will be dropped because in device is > vrf but out device is an enslaved device. So failed with > the check of the rpfilter. > > Signed-off-by: Miaohe Lin > --- > net/ipv4/netfilter/ipt_rpfilter.c | 1 + > net/ipv6/netfilter/ip6t_rpfilter.c | 10 +++++++++- > 2 files changed, 10 insertions(+), 1 deletion(-) > Reviewed-by: David Ahern