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

ad^2 adsquaired at gmail.com
Thu Jan 18 16:29:26 UTC 2018


Package: nftables
Version: 0.8.1-1
Severity: normal

Dear Maintainer,

   * Observed while functionality testing
   * flush a map before restoring from file.

     ** nft list table test > backup
     ** flush the maps
     ** nft -f backup

   * Example below - valid map exists

nft list map test test_nat - (valid map exists)
--------
table ip test {
map testt_nat {
type ipv4_addr . inet_service : ipv4_addr
elements = { x.x.x.5 . domain : 8.8.4.4,
     x.x.x.6 . domain : 8.8.8.8 }
}
-------
   * Error

nft flush map test test_nat - (according to man page this should work)
-------
Error: Could not process rule: Invalid argument
flush map test test_nat
^^^^^^^^^^^^^^^^^^^^^^^^^^
-------
   * Expected outcome: remove the elements from the map.



-- System Information:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-87-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US: (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nftables depends on:
ii  dpkg          1.18.4ubuntu1.3
ii  libc6         2.23-0ubuntu9
ii  libgmp10      2:6.1.0+dfsg-2
ii  libmnl0       1.0.3-5
ii  libnftnl7     1.0.9-2
ii  libreadline7  7.0-3
ii  libxtables12  1.6.1-2+b1

nftables recommends no packages.

nftables suggests no packages.

-- no debconf information
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-netfilter-team/attachments/20180118/963bd037/attachment.html>


More information about the pkg-netfilter-team mailing list