Automic VaultAutomic Vault

brew

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

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install iptables

local Homebrew formula metadata

Linux

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

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

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

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

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

nixpkgs package indexes · pkgs/by-name/ip/iptables/package.nix · 来源: api.github.com

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

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

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

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

Fedora dnf已验证 · 92%
sudo dnf install iptables-devel

Fedora Rawhide package metadata · iptables-devel · 来源: dl.fedoraproject.org

概览

软件包摘要

Linux kernel packet control tool

命令和别名

  • arptables
  • arptables-nft
  • arptables-nft-restore
  • arptables-nft-save
  • arptables-restore
  • arptables-save
  • arptables-translate
  • ebtables
  • ebtables-nft
  • ebtables-nft-restore
  • ebtables-nft-save
  • ebtables-restore
  • ebtables-save
  • ebtables-translate
  • ip6tables
  • ip6tables-apply
  • ip6tables-legacy
  • ip6tables-legacy-restore
  • ip6tables-legacy-save
  • ip6tables-nft
  • ip6tables-nft-restore
  • ip6tables-nft-save
  • ip6tables-restore
  • ip6tables-restore-translate
  • ip6tables-save
  • ip6tables-translate
  • iptables
  • iptables-apply
  • iptables-legacy
  • iptables-legacy-restore
  • iptables-legacy-save
  • iptables-nft

历史

项目历史与用法

iptables is the long-lived user-space command family for controlling Linux packet filtering, NAT, and mangling rules through the netfilter framework. It sits at the intersection of kernel networking, firewall administration, and distribution packaging, with companion commands such as ip6tables, arptables, ebtables, restore/save tools, and nft translation frontends.

项目历史

The netfilter project was founded by Paul "Rusty" Russell as a redesign of the Linux 2.2 ipchains and Linux 2.0 ipfwadm firewall systems. Netfilter's own project history describes the late-1999 design work by Russell and Marc Boucher that generalized iptables and produced the multiple-table framework that became the filter, nat, and mangle modules.

iptables became the administrative surface for the Linux 2.4 era of packet filtering. The project grew alongside connection tracking, NAT helpers, userspace queueing, IPv6 work through ip6tables, and later the xtables command family that collected IPv4, IPv6, ARP, and Ethernet bridge filtering tools under related interfaces.

The iptables 1.8 series marked the nftables transition period by shipping both legacy xtables commands and nft-backed variants such as iptables-nft, ip6tables-nft, arptables-nft, ebtables-nft, and translation tools. That made iptables both a historic interface and a migration bridge to nftables.

采用历史

iptables was adopted broadly because it arrived with the Linux kernel's netfilter subsystem and offered a scriptable firewall language that distributions, hosting providers, routers, container stacks, and security appliances could automate. Its save/restore format made rulesets easy to ship in init scripts and configuration management.

The package remains visible in package-manager culture because many Linux systems, compatibility scripts, and container/networking components still know the iptables command vocabulary even when the underlying backend is nftables. Homebrew's package metadata also exposes the full command family for macOS users who need the Linux-compatible tooling.

使用方式

Typical use centers on creating chains and rules for packet filtering, network address translation, port forwarding, connection-state matching, and firewall persistence with iptables-save and iptables-restore. Administrators also use iptables-translate and iptables-restore-translate when moving legacy rule sets toward nftables.

The package is Linux-specific in purpose: on non-Linux systems it is mostly useful for packaging, cross-development, documentation, or compatibility workflows rather than native packet filtering.

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

For package nerds, iptables is one of the canonical examples of a small command-line package whose real meaning comes from the kernel ABI underneath it. Its packaging has to preserve many executable names because shell scripts, orchestration tools, and documentation often reference exact command variants.

It is also a transition fossil: one package contains legacy commands, nft-backed commands, multi-call binaries, and translation helpers, making it a compact map of two generations of Linux firewall administration.

时间线

  • 1999: Netfilter core design work generalized iptables and the filter, nat, and mangle table model.
  • 2000: Netfilter and iptables work was prepared for inclusion with Linux 2.4.
  • 2001: Linux 2.4 made netfilter/iptables the standard Linux firewall framework.
  • 2018: iptables 1.8 introduced the nft-backed command variants as part of the nftables migration path.
  • 2026: Netfilter news records continued iptables 1.8 maintenance releases.

Related projects

  • iptables is closely related to netfilter kernel hooks, nftables, libnftnl, conntrack-tools, ipset, ulogd, arptables, ebtables, and the older ipchains and ipfwadm systems it replaced.

安全态势

风险级别:绿色

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 个平台目标。
  • 安装时包含 6 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
arptablescli全局可执行文件
arptables-nftcli全局可执行文件
arptables-nft-restorecli全局可执行文件
arptables-nft-savecli全局可执行文件
arptables-restorecli全局可执行文件
arptables-savecli全局可执行文件
arptables-translatecli全局可执行文件
ebtablescli全局可执行文件
ebtables-nftcli全局可执行文件
ebtables-nft-restorecli全局可执行文件
ebtables-nft-savecli全局可执行文件
ebtables-restorecli全局可执行文件
ebtables-savecli全局可执行文件
ebtables-translatecli全局可执行文件
ip6tablescli全局可执行文件
ip6tables-applycli全局可执行文件
ip6tables-legacycli全局可执行文件
ip6tables-legacy-restorecli全局可执行文件
ip6tables-legacy-savecli全局可执行文件
ip6tables-nftcli全局可执行文件
ip6tables-nft-restorecli全局可执行文件
ip6tables-nft-savecli全局可执行文件
ip6tables-restorecli全局可执行文件
ip6tables-restore-translatecli全局可执行文件
ip6tables-savecli全局可执行文件
ip6tables-translatecli全局可执行文件
iptablescli全局可执行文件
iptables-applycli全局可执行文件
iptables-legacycli全局可执行文件
iptables-legacy-restorecli全局可执行文件
iptables-legacy-savecli全局可执行文件
iptables-nftcli全局可执行文件
iptables-nft-restorecli全局可执行文件
iptables-nft-savecli全局可执行文件
iptables-restorecli全局可执行文件
iptables-restore-translatecli全局可执行文件
iptables-savecli全局可执行文件
iptables-translatecli全局可执行文件
iptables-xmlcli全局可执行文件
nfbpf_compilecli全局可执行文件
nfnl_osfcli全局可执行文件
xtables-legacy-multicli全局可执行文件
xtables-monitorcli全局可执行文件
xtables-nft-multicli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://www.netfilter.org/projects/iptables/index.html

安装元数据

软件包元数据

软件包键brew:iptables
版本1.8.13
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/iptables
主页https://www.netfilter.org/projects/iptables/index.html
仓库https://git.netfilter.org/iptables
上游文档https://www.netfilter.org/documentation/index.html
许可证GPL-2.0-or-later
源码归档https://www.netfilter.org/pub/iptables/iptables-1.8.13.tar.xz
依赖libmnl, libnetfilter_conntrack, libnfnetlink, libnftnl, libpcap, nftables
构建依赖pkgconf
Bottle可用 (于 arm64_linux, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameiptables
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%

iptables 1.8.11-2

administration tools for packet filtering and NAT

https://www.netfilter.org/

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

libip4tc-dev 1.8.11-2

Development files for libip4tc

https://www.netfilter.org/

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

libip4tc2 1.8.11-2

netfilter libip4tc library

https://www.netfilter.org/

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

libip6tc-dev 1.8.11-2

Development files for libip6tc

https://www.netfilter.org/

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

libip6tc2 1.8.11-2

netfilter libip6tc library

https://www.netfilter.org/

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

libiptc-dev 1.8.11-2

Common development files for libiptc

https://www.netfilter.org/

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

libxtables-dev 1.8.11-2

netfilter xtables library -- development files

https://www.netfilter.org/

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

libxtables12 1.8.11-2

netfilter xtables library

https://www.netfilter.org/

sudo apt install libxtables12
  • Section: libs
  • Architecture: amd64
  • Source Package: iptables
  • 1 依赖
  • normalized package name match
  • 匹配方式:Iptables
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libxtables12 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

iptables

nix profile install nixpkgs#iptables
  • normalized package name match
  • 匹配方式:Iptables
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ip/iptables/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

iptables 1.8.10-3ubuntu2

administration tools for packet filtering and NAT

https://www.netfilter.org/

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

libip4tc-dev 1.8.10-3ubuntu2

Development files for libip4tc

https://www.netfilter.org/

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

libip4tc2 1.8.10-3ubuntu2

netfilter libip4tc library

https://www.netfilter.org/

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

libip6tc-dev 1.8.10-3ubuntu2

Development files for libip6tc

https://www.netfilter.org/

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

libip6tc2 1.8.10-3ubuntu2

netfilter libip6tc library

https://www.netfilter.org/

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

libiptc-dev 1.8.10-3ubuntu2

Common development files for libiptc

https://www.netfilter.org/

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

libxtables-dev 1.8.10-3ubuntu2

netfilter xtables library -- development files

https://www.netfilter.org/

sudo apt install libxtables-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: iptables
  • 1 依赖
  • normalized package name match
  • 匹配方式:Iptables
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libxtables-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.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