iptables-translate
administration tools for packet filtering and NAT
Install
- All systems
-
curl cmd.cat/iptables-translate.sh
- Debian
-
apt-get install iptables
- Ubuntu
-
apt-get install iptables-nftables-compat
- Alpine
-
apk add iptables
- Arch Linux
-
pacman -S iptables
- Kali Linux
-
apt-get install iptables
- CentOS
-
yum install iptables
- Fedora
-
dnf install iptables
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install iptables-nftables-compat
- Raspbian
-
apt-get install iptables-nftables-compat
- Dockerfile
- dockerfile.run/iptables-translate
- Docker
-
docker run cmd.cat/iptables-translate iptables-translate
powered by Commando
iptables
administration tools for packet filtering and NAT
iptables is the userspace command line program used to configure the Linux packet filtering ruleset. It is targeted towards system administrators. Since Network Address Translation is also configured from the packet filter ruleset, iptables is used for this, too. The iptables package also includes ip6tables. ip6tables is used for configuring the IPv6 packet filter
iptables-nftables-compat
iptables compat tools for nftables
this package includes the compat tools to load iptables, ip6tables, arptables and ebtables rules to the nf_tables kernel subsystem. The tools are called: 'iptables-compat', 'iptables-compat-save', 'iptables-compat-restore', 'ip6tables-compat', 'ip6tables-compat-save', 'ip6tables-compat-restore', 'arptables-compat' and 'ebtables-compat'. A basic way to understand this compat stuff is to load the ruleset skeleton, i.e: a first call `iptables-compat -L'. Then, you can use nft, i.e: `nft list ruleset'. Same for the other families. Also, this package contains the translation tools, which are 'iptables-translate', 'ip6tables-translate', 'iptables-restore-translate', and 'ip6tables-restore-translate'. These translation tools works by reading an input in iptables native syntax and then printing the nftables syntax equivalent.