[Bug 1695] New: Example at wiki for backup/restore might be incorrect

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Mon Jul 31 11:32:42 CEST 2023


https://bugzilla.netfilter.org/show_bug.cgi?id=1695

            Bug ID: 1695
           Summary: Example at wiki for backup/restore might be incorrect
           Product: nftables
           Version: unspecified
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: apachez at gmail.com

At
https://wiki.nftables.org/wiki-nftables/index.php/Operations_at_ruleset_level
there is a backup/restore example that hints to add "nft flush ruleset" as the
first line in "backup.nft" but shouldnt that be "flush ruleset" instead?

Also an additional example can be provided:

> nft -s list ruleset > /path/backup.nft
> sed -i '1s/^/flush ruleset\n\n/' /path/backup.nft

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20230731/3eaaeaa3/attachment.html>


More information about the netfilter-buglog mailing list