Skip to content

Instantly share code, notes, and snippets.

@amshinde
Forked from mcastelino/dump_all_iptables_stats
Created April 2, 2019 22:33
Show Gist options
  • Save amshinde/43f1934663168c190b57cfa0a023a780 to your computer and use it in GitHub Desktop.
Save amshinde/43f1934663168c190b57cfa0a023a780 to your computer and use it in GitHub Desktop.
Dump all iptables stats
for table in $(echo filter nat mangle raw security); do echo $table; iptables -L -v -n --line-numbers -t $table; done
tcpdump -elnXXi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment