Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Nudin/iptable_vis
visualise your iptables chains
https://github.com/Nudin/iptable_vis
iptables iptables-configuration iptables-rules
Last synced: 3 months ago
JSON representation
visualise your iptables chains
- Host: GitHub
- URL: https://github.com/Nudin/iptable_vis
- Owner: Nudin
- License: lgpl-3.0
- Created: 2021-07-02T01:01:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T14:07:42.000Z (over 1 year ago)
- Last Synced: 2024-10-26T06:15:05.309Z (3 months ago)
- Topics: iptables, iptables-configuration, iptables-rules
- Language: Awk
- Homepage:
- Size: 105 KB
- Stars: 685
- Watchers: 12
- Forks: 43
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cli-tui-software - Nudin/iptable_vis - visualise your iptables chains (<a name="infra"></a>infra)
README
iptables-vis – visualise iptables chains
========================================This script reads iptables output and generates a nice flow chart. Works with all tables and chains.
![Example](doc/example.svg)
Usage
=====
- Clone repo, make sure awk is installed, install [blockdiag](http://blockdiag.com)
- `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](doc/legend.svg)