From mboxrd@z Thu Jan 1 00:00:00 1970 From: trentbuck@gmail.com (Trent W. Buck) Subject: Re: Is viewing a "candidate" ruleset in 'nft list ruleset' format possible? Date: Thu, 30 Apr 2020 13:10:10 +1000 Message-ID: <87pnbpwtwt.fsf@goll.lan> References: <87blnkqg1j.fsf@goll.lan> Mime-Version: 1.0 Return-path: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: netfilter@vger.kernel.org Martin Gignac writes: > This is actually a very cool idea! I never realized that nftables > rulesets are bound to a specific namespace, but now it makes perfect > sense. The only "drawback" (I guess) is that I cannot use 'iif' for > any other interface than 'lo' in the temp namespace; I'll need to use > 'iifname' instead since the referenced interfaces won't exist in the > temp namespace. But it's not a deal breaker. You can create dummy interfaces with appropriate names inside your dummy namespace. Something like this (untested): ip -namespace delete-me link add name eth0 type dummy