[Bug 1330] New: Parse error for importing set with netmask

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Sat Mar 30 20:15:02 CET 2019


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

            Bug ID: 1330
           Summary: Parse error for importing set with netmask
           Product: nftables
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: email at cs-ware.de

Create the following rules:

# nft add table inet filter
# nft add set inet filter blocklistssh4_8 { type ipv4_addr\; }
# nft add element inet filter blocklistssh4_8 { 1.1.1.1 }
# nft add chain inet filter blocklistssh
# nft add inet filter blocklistssh ip saddr \& 255.0.0.0 @blocklistssh4_8
counter drop

Pipe into file:
# nft list ruleset > rules.nftables

Flush ruleset:
# nft flush ruleset

Try to reimport rules:
# nft -f rules.nftables
rules.nftables:8:26-43: Error: Set 'blocklistssh4_8/8' does not exist
                ip saddr @blocklistssh4_8/8 counter packets 0 bytes 0 drop
                        ^^^^^^^^^^^^^^^^^^

Context:
# nft --version
nftables v0.9.0 (Fearless Fosdick)

# cat /proc/version
Linux version 4.9.0-8-amd64 (debian-kernel at lists.debian.org) (gcc version 6.3.0
20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.144-3.1 (2019-02-19)

-- 
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/20190330/60fc7e7d/attachment.html>


More information about the netfilter-buglog mailing list