Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, Nix, pacman, zypper 安装 nftables

查看 nftables 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install nftables

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add nftables

Alpine Linux edge package indexes · nftables · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install nftables

Debian stable package indexes · nftables · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install nftables

Fedora Rawhide package metadata · nftables · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#nftables

nixpkgs package indexes · nftables · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S nftables

Arch Linux sync databases · nftables · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install nftables

openSUSE Tumbleweed package metadata · nftables · 来源: download.opensuse.org

概览

软件包摘要

Netfilter tables userspace tools

历史

项目历史与用法

nftables is the Netfilter project's replacement for the older iptables, ip6tables, arptables, and ebtables command families. It combines a new in-kernel packet classification framework with the `nft` userspace command and libnftables library, while reusing Netfilter pieces such as hooks, connection tracking, NAT, queueing, and logging.

项目历史

The nftables design was publicly presented at Netfilter Workshop 2008 and released publicly in March 2009 by Patrick McHardy. It was developed to reduce duplicated packet-filtering code and make extension easier than the separate xtables-era tools.

nftables was selected for Linux 3.13 in 2013 and became available upstream with the Linux 3.13 kernel line in January 2014. The official project page describes the replacement target, the new VM-based ruleset model, and the separate userspace command-line tool.

采用历史

The migration was intentionally gradual because firewall rules are operational infrastructure. The project provides an iptables/ip6tables compatibility layer over the nftables infrastructure, and distributions have used that bridge to move old command syntaxes onto the newer kernel backend.

By the Debian 10 and RHEL 8 era, nftables had moved from future replacement to default low-level packet-filtering framework in major Linux distributions. Red Hat documents nftables as the successor to iptables, ip6tables, arptables, ebtables, and ipset, and recommends it when administrators need direct control beyond high-level firewalld scenarios.

使用方式

Admins use `nft` to create tables, chains, sets, maps, NAT rules, and packet filters in a single syntax across address families. The package is most useful when you need explicit rulesets, performance-friendly sets/maps, atomic ruleset replacement, or a firewall that is easier to reason about than layered iptables invocations.

Package nerds care about which backend their distro's `iptables` command actually targets. On newer systems, `iptables-nft` compatibility may be present even when scripts still look old, while serious new rulesets are usually written as `/etc/nftables.conf` and loaded by the nftables service or by distribution firewall tooling.

为什么软件包爱好者会关心

nftables is one of the big Linux plumbing migrations: not a flashy app, but a shift in how packet filtering, NAT, and firewall state are represented. Its packaging matters because kernel version, libmnl, libnftnl, the `nft` tool, and distribution compatibility alternatives all have to line up.

时间线

  • 2008: nftables was presented at Netfilter Workshop in Paris.
  • 2009-03: Patrick McHardy announced the first public nftables release.
  • 2013-10: nftables was selected for Linux 3.13.
  • 2014-01: Linux 3.13 made nftables available upstream.
  • 2019: Debian 10 and RHEL 8 generation distributions made nftables a default or primary low-level firewall backend.

Related projects

  • Netfilter
  • iptables
  • ip6tables
  • arptables
  • ebtables
  • firewalld
  • libmnl
  • libnftnl

来源

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 2 个平台目标。
  • 安装时包含 7 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
nftcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.1.6
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://netfilter.org/projects/nftables/

安装元数据

软件包元数据

软件包键brew:nftables
版本1.1.6
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/nftables
主页https://netfilter.org/projects/nftables/
仓库https://git.netfilter.org/nftables
上游文档https://wiki.nftables.org/wiki-nftables/index.php/Main_Page
许可证GPL-2.0-or-later
源码归档https://www.netfilter.org/pub/nftables/nftables-1.1.6.tar.xz
依赖gmp, jansson, libedit, libmnl, libnftnl, ncurses, readline
构建依赖pkgconf, python@3.14
Bottle可用 (于 arm64_linux, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namenftables
Version Scheme0
Revision0
Requirements
  • linux
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libnftables-dev 1.1.3-1

Development files for libnftables

https://www.netfilter.org/

sudo apt install libnftables-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: nftables
  • 1 依赖
  • normalized package name match
  • 匹配方式:Nftables
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnftables-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libnftables1 1.1.3-1

Netfilter nftables high level userspace API library

https://www.netfilter.org/

sudo apt install libnftables1
  • Section: libs
  • Architecture: amd64
  • Source Package: nftables
  • 6 依赖
  • normalized package name match
  • 匹配方式:Nftables
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnftables1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

nftables 1.1.3-1

Program to control packet filtering rules by Netfilter project

https://www.netfilter.org/

sudo apt install nftables
  • Section: net
  • Architecture: amd64
  • 3 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Nftables
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nftables from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-nftables 1.1.3-1

nftables/libnftables python3 module

https://www.netfilter.org/

sudo apt install python3-nftables
  • Section: python
  • Architecture: amd64
  • Source Package: nftables
  • 3 依赖
  • normalized package name match
  • 匹配方式:Nftables
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-nftables from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

nftables

nix profile install nixpkgs#nftables
  • normalized package name match
  • 匹配方式:Nftables
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: nftables from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

libnftables-dev 1.0.9-1build1

Development files for libnftables

https://www.netfilter.org/

sudo apt install libnftables-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: nftables
  • 1 依赖
  • normalized package name match
  • 匹配方式:Nftables
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnftables-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libnftables1 1.0.9-1build1

Netfilter nftables high level userspace API library

https://www.netfilter.org/

sudo apt install libnftables1
  • Section: libs
  • Architecture: amd64
  • Source Package: nftables
  • 6 依赖
  • normalized package name match
  • 匹配方式:Nftables
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnftables1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

nftables 1.0.9-1build1

Program to control packet filtering rules by Netfilter project

https://www.netfilter.org/

sudo apt install nftables
  • Section: net
  • Architecture: amd64
  • 3 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Nftables
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nftables from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

python3-nftables 1.0.9-1build1

nftables/libnftables python3 module

https://www.netfilter.org/

sudo apt install python3-nftables
  • Section: universe/python
  • Architecture: amd64
  • Source Package: nftables
  • 3 依赖
  • normalized package name match
  • 匹配方式:Nftables
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-nftables from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

nftables 1.1.6-r1

Netfilter tables userspace tools

https://netfilter.org/projects/nftables

sudo apk add nftables
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: nftables
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nftables
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nftables from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

nftables-dev 1.1.6-r1

Netfilter tables userspace tools (development files)

https://netfilter.org/projects/nftables

sudo apk add nftables-dev
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: nftables
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nftables
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nftables-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

nftables-doc 1.1.6-r1

Netfilter tables userspace tools (documentation)

https://netfilter.org/projects/nftables

sudo apk add nftables-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: nftables
  • normalized package name match
  • 匹配方式:Nftables
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nftables-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

nftables-openrc 1.1.6-r1

Netfilter tables userspace tools (OpenRC init scripts)

https://netfilter.org/projects/nftables

sudo apk add nftables-openrc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: nftables
  • normalized package name match
  • 匹配方式:Nftables
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nftables-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

nftables-rulesets 1.1.6-r1

Meta package for pulling in all nftables rulesets

https://netfilter.org/projects/nftables

sudo apk add nftables-rulesets
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: nftables
  • normalized package name match
  • 匹配方式:Nftables
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nftables-rulesets from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

nftables-static 1.1.6-r1

Netfilter tables userspace tools (static library)

https://netfilter.org/projects/nftables

sudo apk add nftables-static
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: nftables
  • normalized package name match
  • 匹配方式:Nftables
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nftables-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

nftables-systemd 1.1.6-r1

Netfilter tables userspace tools (systemd files)

https://netfilter.org/projects/nftables

sudo apk add nftables-systemd
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: nftables
  • normalized package name match
  • 匹配方式:Nftables
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nftables-systemd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment