iptables-optimizer

sort iptables rules by packet counters

Install

All systems
curl cmd.cat/iptables-optimizer.sh
Debian Debian
apt-get install iptables-optimizer
Ubuntu
apt-get install iptables-optimizer
image/svg+xml Kali Linux
apt-get install iptables-optimizer
Windows (WSL2)
sudo apt-get update sudo apt-get install iptables-optimizer
Raspbian
apt-get install iptables-optimizer

iptables-optimizer

sort iptables rules by packet counters

iptables-optimizer is a shell and Python based tool for sorting iptables rules by packet/byte counters according to the administrators policy, ip6tables-optimizer works similar just for ip6tables chains.