# OpenWrt-ConfigVisualizer

**URL:** <https://forum.openwrt.org/t/openwrt-configvisualizer/229342>\
**Category:** Community Builds, Projects & Packages\
**Created:** [April 5, 2025, 9:09pm UTC](https://forum.openwrt.org/t/openwrt-configvisualizer/229342 "2025-04-05T21:09:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Znerox](https://forum.openwrt.org/letter_avatar/znerox/32/6_449c533f586939b6e5f246632a46421f.png) [@Znerox](https://forum.openwrt.org/u/Znerox)\
**Post date:** [April 5, 2025, 9:09pm UTC](https://forum.openwrt.org/t/openwrt-configvisualizer/229342/1 "2025-04-05T21:09:06Z")

</div>

I've created a Python script that reads the config files

```plaintext
/etc/config/network
/etc/config/dhcp

```

and translates it into something that can be used by [Kroki](https://kroki.io) to generate a visual diagram of the network, like this

 ![image](https://forum.openwrt.org/uploads/default/original/3X/9/0/900337ec0536a3b2561326ea83ae9f48a47eb40a.png)

It currently supports both Ethernet and WireGuard interfaces, and if you have network devices with static IPs (like APs, switches etc.) you can manually add those to a local text file to have it included in the diagram.

It could make sense to have my script directly output the image instead of relying on Kroki to do that, but I want to keep the Python script as simple as possible without any dependencies. I also want to explore using Kroki to generate other types of diagrams like firewall rules.

Please give it a try and tell me what you think.

> **[GitHub - Znerox/OpenWrt-ConfigVisualizer: Create visual diagrams based on OpenWrt config...](https://github.com/Znerox/OpenWrt-ConfigVisualizer)**
>
> Create visual diagrams based on OpenWrt config files

---

<div class="post-metadata">

**Author:** ![fodiator](https://forum.openwrt.org/letter_avatar/fodiator/32/6_449c533f586939b6e5f246632a46421f.png) [@fodiator](https://forum.openwrt.org/u/fodiator)\
**Post date:** [April 6, 2025, 9:14am UTC](https://forum.openwrt.org/t/openwrt-configvisualizer/229342/2 "2025-04-06T09:14:41Z")

</div>

> [@Znerox](#):
>
> I want to keep the Python script as simple as possible without any dependencies

Great job - would it be an idea to make Python-native visualization optional ?

---

<div class="post-metadata">

**Author:** ![Znerox](https://forum.openwrt.org/letter_avatar/znerox/32/6_449c533f586939b6e5f246632a46421f.png) [@Znerox](https://forum.openwrt.org/u/Znerox)\
**Post date:** [April 6, 2025, 10:00am UTC](https://forum.openwrt.org/t/openwrt-configvisualizer/229342/3 "2025-04-06T10:00:09Z")

</div>

Yes, I would like to see it generate the image itself if all the dependencies are in place, and always output the text that can be used with Kroki.

---

<div class="post-metadata">

**Author:** ![Znerox](https://forum.openwrt.org/letter_avatar/znerox/32/6_449c533f586939b6e5f246632a46421f.png) [@Znerox](https://forum.openwrt.org/u/Znerox)\
**Post date:** [November 30, 2026, 8:13pm UTC](https://forum.openwrt.org/t/openwrt-configvisualizer/229342/4 "2026-11-30T20:13:58Z")

</div>

This project had a major update. It's been completely rewritten (thanks Claude) to a web app that outputs the network diagram directly. All it takes now is one command to spin up a docker container, give it your config files, and get the image.

I'm also planning to add support for visualizing firewall rules.
