I tried this:

iptables -F
ip6tables -F

sudo nft list ruleset > /etc/nftables.conf

sudo service netfilter-persistent save

But after reboot when i run

nft list ruleset 

i see nothing. I think that netfilter-persistent don't see my file with rules. I use debian Buster.


By itself netfilter-persistent does nothing, it's a plugin framework only. It does not read /etc/nftables.conf in particular. You should have nftables plugins installed under /usr/share/netfilter-persistent/plugins.d for it to work with nftables. However, I don't think such plugins are available in any package; you'll have to write them yourself (in the language you prefer).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.