From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 345B6C433F5 for ; Thu, 7 Oct 2021 09:30:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0E93961163 for ; Thu, 7 Oct 2021 09:30:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232704AbhJGJbw (ORCPT ); Thu, 7 Oct 2021 05:31:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232677AbhJGJbv (ORCPT ); Thu, 7 Oct 2021 05:31:51 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:12e:520::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 933D7C061746 for ; Thu, 7 Oct 2021 02:29:58 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1mYPiu-0006ys-GJ; Thu, 07 Oct 2021 11:29:56 +0200 Date: Thu, 7 Oct 2021 11:29:56 +0200 From: Florian Westphal To: Eugene Crosser Cc: Florian Westphal , netfilter-devel@vger.kernel.org Subject: Re: In raw prerouting, `iif` matches different interfaces in different kernels when enslaved in a vrf Message-ID: <20211007092956.GB25730@breakpoint.cc> References: <17326577-1ab7-aaaa-0911-13ee131bdee0@average.org> <20211002185036.GJ2935@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Eugene Crosser wrote: > It would seem that you have an existing filter that drops packets and > prevents creation of conntrack entries? I can reproduce the behaviour on > freshly installed Debian and Ubuntu VMs without any modifications, with and > without `unshare`. FWIW, this was due to different default setting of rp_filter. Adding sysctl net.ipv4.conf.all.rp_filter=0 sysctl net.ipv4.conf.default.rp_filter=0 to start of script makes it work on my side too.