[Bug 1431] flush set doesn't work as expected in script

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Thu Jul 30 00:00:34 CEST 2020


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

Pablo Neira Ayuso <pablo at netfilter.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #5 from Pablo Neira Ayuso <pablo at netfilter.org> ---

(In reply to James Zeng from comment #0)
> # nft list ruleset
> table ip potato {
>         set potato {
>                 type ipv4_addr
>                 flags interval
>                 elements = { 0.0.0.0-255.255.255.255 }
>         }
> }
> 
> # cat b.nft
> flush set ip potato potato;
> add element ip potato potato {
>         10.0.0.0/8
> }
> 
> # nft -f b.nft
> b.nft:3:9-18: Error: interval overlaps with an existing one
>         10.0.0.0/8
>                ^^^^^^^^^^

Upstream fix is available in git.

http://git.netfilter.org/nftables/commit/?id=40ef308e19b6db02017a8a650406b0c6d37be750

Thanks for reporting.

-- 
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/20200729/a6ad6ef7/attachment-0001.html>


More information about the netfilter-buglog mailing list