macOS
brew install iptableslocal Homebrew formula metadata
安装
brew install iptableslocal Homebrew formula metadata
sudo apk add iptablesAlpine Linux edge package indexes · iptables · 来源: dl-cdn.alpinelinux.org
sudo apt install iptablesDebian stable package indexes · iptables · 来源: deb.debian.org
nix profile install nixpkgs#iptablesnixpkgs package indexes · pkgs/by-name/ip/iptables/package.nix · 来源: api.github.com
sudo pacman -S iptablesArch Linux sync databases · iptables · 来源: geo.mirror.pkgbuild.com
sudo zypper install iptablesopenSUSE Tumbleweed package metadata · iptables · 来源: download.opensuse.org
sudo dnf install iptables-develFedora Rawhide package metadata · iptables-devel · 来源: dl.fedoraproject.org
概览
Linux kernel packet control tool
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
arptables | cli | 全局可执行文件 | |
arptables-nft | cli | 全局可执行文件 | |
arptables-nft-restore | cli | 全局可执行文件 | |
arptables-nft-save | cli | 全局可执行文件 | |
arptables-restore | cli | 全局可执行文件 | |
arptables-save | cli | 全局可执行文件 | |
arptables-translate | cli | 全局可执行文件 | |
ebtables | cli | 全局可执行文件 | |
ebtables-nft | cli | 全局可执行文件 | |
ebtables-nft-restore | cli | 全局可执行文件 | |
ebtables-nft-save | cli | 全局可执行文件 | |
ebtables-restore | cli | 全局可执行文件 | |
ebtables-save | cli | 全局可执行文件 | |
ebtables-translate | cli | 全局可执行文件 | |
ip6tables | cli | 全局可执行文件 | |
ip6tables-apply | cli | 全局可执行文件 | |
ip6tables-legacy | cli | 全局可执行文件 | |
ip6tables-legacy-restore | cli | 全局可执行文件 | |
ip6tables-legacy-save | cli | 全局可执行文件 | |
ip6tables-nft | cli | 全局可执行文件 | |
ip6tables-nft-restore | cli | 全局可执行文件 | |
ip6tables-nft-save | cli | 全局可执行文件 | |
ip6tables-restore | cli | 全局可执行文件 | |
ip6tables-restore-translate | cli | 全局可执行文件 | |
ip6tables-save | cli | 全局可执行文件 | |
ip6tables-translate | cli | 全局可执行文件 | |
iptables | cli | 全局可执行文件 | |
iptables-apply | cli | 全局可执行文件 | |
iptables-legacy | cli | 全局可执行文件 | |
iptables-legacy-restore | cli | 全局可执行文件 | |
iptables-legacy-save | cli | 全局可执行文件 | |
iptables-nft | cli | 全局可执行文件 | |
iptables-nft-restore | cli | 全局可执行文件 | |
iptables-nft-save | cli | 全局可执行文件 | |
iptables-restore | cli | 全局可执行文件 | |
iptables-restore-translate | cli | 全局可执行文件 | |
iptables-save | cli | 全局可执行文件 | |
iptables-translate | cli | 全局可执行文件 | |
iptables-xml | cli | 全局可执行文件 | |
nfbpf_compile | cli | 全局可执行文件 | |
nfnl_osf | cli | 全局可执行文件 | |
xtables-legacy-multi | cli | 全局可执行文件 | |
xtables-monitor | cli | 全局可执行文件 | |
xtables-nft-multi | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | iptables |
| Version Scheme | 0 |
| Revision | 0 |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
iptables 1.8.11-2
administration tools for packet filtering and NAT
sudo apt install iptableslibip4tc-dev 1.8.11-2
Development files for libip4tc
sudo apt install libip4tc-devlibip4tc2 1.8.11-2
netfilter libip4tc library
sudo apt install libip4tc2libip6tc-dev 1.8.11-2
Development files for libip6tc
sudo apt install libip6tc-devlibip6tc2 1.8.11-2
netfilter libip6tc library
sudo apt install libip6tc2libiptc-dev 1.8.11-2
Common development files for libiptc
sudo apt install libiptc-devlibxtables-dev 1.8.11-2
netfilter xtables library -- development files
sudo apt install libxtables-devlibxtables12 1.8.11-2
netfilter xtables library
sudo apt install libxtables12iptables
nix profile install nixpkgs#iptablesiptables 1.8.10-3ubuntu2
administration tools for packet filtering and NAT
sudo apt install iptableslibip4tc-dev 1.8.10-3ubuntu2
Development files for libip4tc
sudo apt install libip4tc-devlibip4tc2 1.8.10-3ubuntu2
netfilter libip4tc library
sudo apt install libip4tc2libip6tc-dev 1.8.10-3ubuntu2
Development files for libip6tc
sudo apt install libip6tc-devlibip6tc2 1.8.10-3ubuntu2
netfilter libip6tc library
sudo apt install libip6tc2libiptc-dev 1.8.10-3ubuntu2
Common development files for libiptc
sudo apt install libiptc-devlibxtables-dev 1.8.10-3ubuntu2
netfilter xtables library -- development files
sudo apt install libxtables-dev来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.