App-Iptables2Dot
view release on metacpan or search on metacpan
> iptables-filter-overview.dot
$ dot -Tpdf iptables-filter-overview.dot -o iptables-filter-overview.pdf
Although it is possible to make a detailed graph of an iptables
configuration containing all rules, I wouldn't recommend this in most
cases.
In those configurations, where you would need the graph to comprehend
the rules, the resulting graph would be a mess.
When the graph looks neat and is legible on A4 paper, you would probably
understand the configuration without it. But it could be handy to
explain the rules to someone else, following them with a pencil or your
finger.
You would do this to get a detailed graph:
$ sudo iptables-save \
| iptables2dot -edgelabel -table filter \
> iptables-filter.dot
$ dot -Tpdf iptables-filter.dot -o iptables-filter.pdf
bin/iptables2dot view on Meta::CPAN
| iptables2dot -noshowrules -table filter \
> iptables-filter-overview.dot
$ dot -Tpdf iptables-filter-overview.dot -o iptables-filter-overview.pdf
Although it is possible to make a detailed graph of an iptables
configuration containing all rules, I wouldn't recommend this in most cases.
In those configurations, where you would need the graph to comprehend the
rules, the resulting graph would be a mess.
When the graph looks neat and is legible on A4 paper, you would probably
understand the configuration without it.
But it could be handy to explain the rules to someone else, following
them with a pencil or your finger.
You would do this to get a detailed graph:
$ sudo iptables-save \
| iptables2dot -edgelabel -table filter \
> iptables-filter.dot
$ dot -Tpdf iptables-filter.dot -o iptables-filter.pdf
( run in 0.440 second using v1.01-cache-2.11-cpan-64827b87656 )