[pkg-netfilter-team] Bug#887642: Fwd: nftables: nft flush map error

Arturo Borrero Gonzalez arturo at debian.org
Fri Jan 19 12:35:41 UTC 2018


On 18 January 2018 at 17:29, ad^2 <adsquaired at gmail.com> wrote:
> -------
>    * Expected outcome: remove the elements from the map.

This works here:

% sudo nft add map inet filter m1 {type ipv4_addr : verdict \; }
% sudo nft list ruleset
table inet filter {
    map m1 {
        type ipv4_addr : verdict
    }
}
% sudo nft add element inet filter m1 { 1.1.1.1 : accept }
% sudo nft list ruleset
table inet filter {
    map m1 {
        type ipv4_addr : verdict
        elements = { 1.1.1.1 : accept }
    }
}
% sudo nft flush map inet filter m1
% sudo nft list ruleset
table inet filter {
    map m1 {
        type ipv4_addr : verdict
    }
}

Please refer to the docs for more information on the syntax:
 https://wiki.nftables.org

Closing this bug report now. Feel free to reopen if you have any other question.



More information about the pkg-netfilter-team mailing list