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

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Thu Jul 30 04:43:45 CEST 2020


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

--- Comment #7 from Pablo Neira Ayuso <pablo at netfilter.org> ---
Using James' test case, this works for me with 7c9bef0c0312

# cat potato.nft 
table ip potato {                                                               
        set potato {                                                            
                type ipv4_addr                                                  
                flags interval                                                  
                elements = { 0.0.0.0-255.255.255.255 }                          
        }                                                                       
}

# nft -f potato.nft

# cat b.nft 
flush set ip potato potato;
add element ip potato potato {
        10.0.0.0/8
}
# nft -f b.nft

# nft list ruleset
table ip potato {
        set potato {
                type ipv4_addr
                flags interval
                elements = { 10.0.0.0/8 }
        }
}

Are you sure you're running a fresh nft binary compiled from sources?

-- 
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/20200730/f5a9af31/attachment.html>


More information about the netfilter-buglog mailing list