Linux Netfilter discussions
 help / color / mirror / Atom feed
* Processing nftable rules without loading them into the kernel
@ 2023-07-09  8:02 George Shuklin
  2023-07-09 15:12 ` Eric
  0 siblings, 1 reply; 3+ messages in thread
From: George Shuklin @ 2023-07-09  8:02 UTC (permalink / raw)
  To: netfilter

I got a rather interesting task: I need to check if a given set of rules 
on the disk is the same as loaded into the kernel.

The main problem is that nft list is quite different from the original 
config (ordering, comments, etc), so I wonder if there is a way to make 
nft just to read rules, process them and output back in the same format 
as it is from nft ruleset list. Is there a way to force nft to just 
'process' rules to stdout without loading them into the kernel?


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-10  7:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-09  8:02 Processing nftable rules without loading them into the kernel George Shuklin
2023-07-09 15:12 ` Eric
2023-07-10  7:39   ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox