# 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:iptables
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.8.13
- **ソース概要:** Linux kernel packet control tool
- **ホームページ:** <https://www.netfilter.org/projects/iptables/index.html>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- 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 (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.8.13
## プロジェクトの歴史と使われ方

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

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

- 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/


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
