From what I've observed, the iptables
CLI is more ubiquitous than the nft
CLI on most Linux distros, even though it is usually just a frontend into the nftables
backend.
Certainly there are a number of equivalent methods of adding and removing the required rule, and a production version of such a plugin should probably support a couple of them. As well as checking for/loading the nfnetlink_queue
module etc.