Skip to content

DeukWoongWoo/iptable_vis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

iptables-vis – visualise iptables chains

This script reads iptables output and generates a nice flow chart. Works with all tables and chains.

Example

Usage

  • Clone repo, make sure awk is installed, install blockdiag
  • iptables -v -L > iptables.txt
  • awk -f iptables-vis.awk < iptables.txt > iptables.dia
  • blockdiag iptables.dia -T svg -o iptables.svg

To display only selected chains (supports regexp):

awk -f iptables-vis.awk -v 'chain_selector=INPUT|OUTPUT|mychain' < iptables.txt > iptables.dia

To also render empty chains:

awk -f iptables-vis.awk -v 'include_empty_chains=1 < iptables.txt > iptables.dia'

Legend

Legend

About

visualise your iptables chains

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Awk 100.0%