It is unfortunate that iptables does not have
a simple builtin option that does this, as I'm too impatient to type out this
loop every time I need to see what's really going on. I'm for sure too
impatient to type out 5 parallel commands. The -S
option does not give the
same useful formatting as -L
and no option can be combined with -vL
to
request the rules from all tables. I may just have to add this to my shell
init.
for table in filter nat mangle raw security ; do printf "\n===== %s =====\n" $table ; sudo iptables -vL -t $table ; done