# iptables を Homebrew, apk, apt, Nix, pacman, zypper, dnf でインストール

iptables のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:iptables
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install iptables
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add iptables
```

  証拠: Alpine Linux edge package indexes: iptables from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install iptables
```

  証拠: Debian stable package indexes: iptables from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#iptables
```

  証拠: nixpkgs package indexes: pkgs/by-name/ip/iptables/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S iptables
```

  証拠: Arch Linux sync databases: iptables from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install iptables
```

  証拠: openSUSE Tumbleweed package metadata: iptables from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- dnf (92%):

```sh
sudo dnf install iptables-devel
```

  証拠: Fedora Rawhide package metadata: iptables-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:iptables
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/iptables>
- **バージョン:** 1.8.13
- **ソース概要:** Linux kernel packet control tool
- **ホームページ:** <https://www.netfilter.org/projects/iptables/index.html>
- **上流ドキュメント:** <https://www.netfilter.org/projects/iptables/index.html>
- **ライセンス:** GPL-2.0-or-later
- **ソースアーカイブ:** <https://www.netfilter.org/pub/iptables/iptables-1.8.13.tar.xz>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- 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)
- 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-nft-restore (エイリアス)
- iptables-nft-save (エイリアス)
- iptables-restore (エイリアス)
- iptables-restore-translate (エイリアス)
- iptables-save (エイリアス)
- iptables-translate (エイリアス)
- iptables-xml (エイリアス)
- nfbpf_compile (エイリアス)
- nfnl_osf (エイリアス)
- xtables-legacy-multi (エイリアス)
- xtables-monitor (エイリアス)
- xtables-nft-multi (エイリアス)

## 依存関係

- libmnl
- libnetfilter_conntrack
- libnfnetlink
- libnftnl
- libpcap
- nftables

## ビルド依存関係

- pkgconf

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.8.13
- ローカルデータ: OK
- 上流リポジトリ: https://www.netfilter.org/projects/iptables/index.html
- 情報: No package-manager update timestamp was available.
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://formulae.brew.sh/formula/iptables>
- <https://git.netfilter.org/iptables>
- <https://www.netfilter.org/about.html>
- <https://www.netfilter.org/projects/iptables/index.html>
- <https://www.netfilter.org/projects/nftables/index.html>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** iptables
- **Version Scheme:** 0
- **Revision:** 0
- **Requirements:** linux
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- Debian apt - iptables - 1.8.11-2: normalized package name match | Debian stable package indexes: iptables from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | administration tools for packet filtering and NAT | https://www.netfilter.org/
- Debian apt - libip4tc-dev - 1.8.11-2: normalized package name match | Debian stable package indexes: libip4tc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for libip4tc | https://www.netfilter.org/
- Debian apt - libip4tc2 - 1.8.11-2: normalized package name match | Debian stable package indexes: libip4tc2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | netfilter libip4tc library | https://www.netfilter.org/
- Debian apt - libip6tc-dev - 1.8.11-2: normalized package name match | Debian stable package indexes: libip6tc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for libip6tc | https://www.netfilter.org/
- Debian apt - libip6tc2 - 1.8.11-2: normalized package name match | Debian stable package indexes: libip6tc2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | netfilter libip6tc library | https://www.netfilter.org/
- Debian apt - libiptc-dev - 1.8.11-2: normalized package name match | Debian stable package indexes: libiptc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Common development files for libiptc | https://www.netfilter.org/
- Debian apt - libxtables-dev - 1.8.11-2: normalized package name match | Debian stable package indexes: libxtables-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | netfilter xtables library -- development files | https://www.netfilter.org/
- Debian apt - libxtables12 - 1.8.11-2: normalized package name match | Debian stable package indexes: libxtables12 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | netfilter xtables library | https://www.netfilter.org/
- Nix - iptables: normalized package name match | nixpkgs package indexes: pkgs/by-name/ip/iptables/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - iptables - 1.8.10-3ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: iptables from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | administration tools for packet filtering and NAT | https://www.netfilter.org/
- Ubuntu apt - libip4tc-dev - 1.8.10-3ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libip4tc-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Development files for libip4tc | https://www.netfilter.org/
- Ubuntu apt - libip4tc2 - 1.8.10-3ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libip4tc2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | netfilter libip4tc library | https://www.netfilter.org/
- Ubuntu apt - libip6tc-dev - 1.8.10-3ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libip6tc-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Development files for libip6tc | https://www.netfilter.org/
- Ubuntu apt - libip6tc2 - 1.8.10-3ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libip6tc2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | netfilter libip6tc library | https://www.netfilter.org/
- Ubuntu apt - libiptc-dev - 1.8.10-3ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libiptc-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Common development files for libiptc | https://www.netfilter.org/
- Ubuntu apt - libxtables-dev - 1.8.10-3ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libxtables-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | netfilter xtables library -- development files | https://www.netfilter.org/


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://pkg.so/ja/web-dev-tools/) - Matched web development metadata.
- [Homebrew utility packages](https://pkg.so/ja/brew-utility-packages/) - Matched Homebrew package provider.
- [libpcap](https://pkg.so/ja/brew/libpcap/) - Runtime dependency declared by Homebrew.
- [nftables](https://pkg.so/ja/brew/nftables/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/ja/brew/pkgconf/) - Build dependency declared by Homebrew.
- [net-tools](https://pkg.so/ja/brew/net-tools/) - Shares pkgdb curated category or tags: cli, linux, networking.
- [nethogs](https://pkg.so/ja/brew/nethogs/) - Shares pkgdb curated category or tags: cli, linux, networking.
- [iputils](https://pkg.so/ja/brew/iputils/) - Shares pkgdb curated category or tags: cli, linux, networking.
- [libnl](https://pkg.so/ja/brew/libnl/) - Shares pkgdb curated category or tags: cli, linux, networking.
- [somo](https://pkg.so/ja/brew/somo/) - Shares pkgdb curated category or tags: cli, linux, networking.
- [iproute2](https://pkg.so/ja/brew/iproute2/) - Shares pkgdb curated category or tags: cli, linux, networking.
- [aerleon](https://pkg.so/ja/brew/aerleon/) - Shares pkgdb curated category or tags: cli, firewall, networking.
- [ngrep](https://pkg.so/ja/brew/ngrep/) - Local package facts share a topical domain. Shared terms: cli, libpcap, networking, packet.

## Combined YAML source

View the package source record on GitHub. [combined/iptables.yml](https://github.com/mxcl/pkgdb/blob/main/combined/iptables.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
