Closed moritori closed 10 months ago
You have to flush your table in your script
#!/usr/sbin/nft -c -f
table bridge fw4
flush table bridge fw4
table bridge fw4 { chain ...
Thanks. This does in fact work! The file is then not automatically placed into the backup, but I can create a custom file under /lib/upgrade/keep.d or in /etc/sysupgrade.conf to accomplish that.
Confirm you found correct way to preserve customized "system" files. keep.d is for packages, but will work either way.
I'm trying to add the following fragment
to some file in
/usr/share/nftables.d/ruleset-post/example.nft
.This include is then properly loaded, however fw4 doesn't seem to reset any other table besides fw4.
This leads to the situation that the rule
iifname "phy0-ap0" meta mark set 0x00000001
is added again and again.