
14

GitHub - Nudin/iptable_vis: visualise your iptables chains
source link: https://github.com/Nudin/iptable_vis
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

iptables-vis – visualise iptables chains
This script reads iptables output and generates a nice flow chart. Works with all tables and chains.
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
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK