iptables -L -n -v --line-numbers

Category: Networking

iptables -L -n -v --line-numbers

List all firewall rules with line numbers and packet counters

Shows every iptables rule in the filter table (INPUT, OUTPUT, FORWARD chains). -n=no DNS, -v=verbose (shows packet/byte counters and interface names), --line-numbers helps when you need to insert or delete a specific rule.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.