Skip to content
Network (nwdiag) templates

nwdiag — three-tier web app

DMZ → app → DB segmentation with explicit IPs.

Template previewNetwork (nwdiag)
Rendering…

Make it your own.

nwdiag {
  network dmz {
    address = "10.0.1.0/24"
    web1 [address = "10.0.1.11"];
    web2 [address = "10.0.1.12"];
  }
  network app {
    address = "10.0.2.0/24"
    web1 [address = "10.0.2.11"];
    web2 [address = "10.0.2.12"];
    api  [address = "10.0.2.20"];
  }
  network db {
    address = "10.0.3.0/24"
    api    [address = "10.0.3.20"];
    pgsql  [address = "10.0.3.30"];
  }
}