Files
knowledge-base/projects/dttb/network-topology-diagram.md

211 lines
6.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
date: 2026-05-04
type: project
tags: [dttb, diagram, mermaid]
---
# 🗺️ dttb.ru — Графические схемы (Mermaid)
> Mermaid-диаграммы инфраструктуры. Рендерятся в Obsidian / Gitea / Nextcloud Markdown.
> Источники: [[network-topology]], [[proxmox-inventory]], [[npm-proxy-hosts]].
---
## 1. Поток трафика: Internet → NPM → Backend
```mermaid
flowchart LR
Internet([🌐 Internet])
LE[Let's Encrypt]
Router[OpenWrt Router<br/>10.0.0.1]
NPM[NPM<br/>10.0.0.195:443<br/>LXC 103]
Internet -->|*.dttb.ru| Router
Router --> NPM
LE -.->|ACME| NPM
subgraph Backends["Backends (10.0.0.0/24)"]
NC[Nextcloud AIO<br/>:11001 · VM 250]
Mail[Mailcow<br/>:443 · VM 107]
HA[Home Assistant<br/>:8123 · VM 127]
PVE[Proxmox WebUI<br/>:8006]
Code[code-server<br/>:8080 · LXC 132]
Bit[VaultWarden<br/>:8080 · LXC 113]
Link[LinkWarden<br/>:3000 · LXC 114]
Git[Gitea<br/>:3000 · LXC 136]
WYL[WatchYourLAN<br/>:8840 · LXC 115]
Rust[RustDesk<br/>:21114 · LXC 116]
Bot[OpenClaw<br/>:18789 · LXC 137]
DVR[Agent-DVR<br/>:8091]
end
NPM --> NC
NPM --> Mail
NPM --> HA
NPM --> PVE
NPM --> Code
NPM --> Bit
NPM --> Link
NPM --> Git
NPM --> WYL
NPM --> Rust
NPM --> Bot
NPM --> DVR
```
---
## 2. Proxmox — структура VM/LXC (только запущенные)
```mermaid
flowchart TB
HW[HP Z800 Workstation<br/>2× Xeon X5672 · 128GB RAM<br/>NVIDIA Quadro 6000 + RTX 3060]
PVE[Proxmox VE 8.x<br/>10.0.0.250 · pve.dttb.ru]
HW --> PVE
subgraph VMs["🖥️ QEMU VM (5 running)"]
VM250[VM 250 · Nextcloud-AIO<br/>10.0.0.230 · dttb.ru]
VM107[VM 107 · Mailcow<br/>10.0.0.107 · mail.dttb.ru]
VM127[VM 127 · HAOS<br/>home.dttb.ru]
VM111[VM 111 · WinServer2025<br/>10.0.0.198 · 1С]
VM106[VM 106 · PBS<br/>Backup Server]
end
subgraph LXCs["📦 LXC (11 running)"]
L103[LXC 103 · NPM<br/>10.0.0.195]
L113[LXC 113 · VaultWarden<br/>10.0.0.217 · bit.dttb.ru]
L114[LXC 114 · LinkWarden<br/>10.0.0.184 · link.dttb.ru]
L115[LXC 115 · WatchYourLAN<br/>10.0.0.112]
L116[LXC 116 · RustDesk<br/>10.0.0.244 · remot.dttb.ru]
L132[LXC 132 · code-server<br/>10.0.0.179 · ai.dttb.ru]
L134[LXC 134 · ZnamSecurityBot<br/>10.0.0.238]
L136[LXC 136 · Gitea<br/>10.0.0.189 · git.dttb.ru]
L137[LXC 137 · OpenClaw<br/>10.0.0.239 · bot.dttb.ru]
L138[LXC 138 · vpn-proxy<br/>10.0.0.141]
end
PVE --> VMs
PVE --> LXCs
classDef vmStyle fill:#1e3a5f,stroke:#4a90e2,color:#fff
classDef lxcStyle fill:#2d5016,stroke:#7cb342,color:#fff
classDef hwStyle fill:#5d2e1f,stroke:#d97757,color:#fff
class VM250,VM107,VM127,VM111,VM106 vmStyle
class L103,L113,L114,L115,L116,L132,L134,L136,L137,L138 lxcStyle
class HW,PVE hwStyle
```
---
## 3. Карта доменов *.dttb.ru → IP:Port
```mermaid
flowchart LR
subgraph Core["🏠 Core"]
D1[dttb.ru]
D2[pve.dttb.ru]
D3[npm.dttb.ru]
D4[mail.dttb.ru]
end
subgraph Dev["🛠️ Dev / Productivity"]
D5[ai.dttb.ru]
D6[git.dttb.ru]
D7[bit.dttb.ru]
D8[link.dttb.ru]
end
subgraph Smart["🤖 Smart / Bots / Media"]
D9[bot.dttb.ru]
D10[home.dttb.ru]
D11[rec.dttb.ru]
D12[remot.dttb.ru]
end
subgraph Mon["📊 Monitoring"]
D13[ip.dttb.ru]
end
D1 --> NC[10.0.0.230:11001<br/>Nextcloud AIO]
D2 --> P[10.0.0.250:8006<br/>Proxmox]
D3 --> N[10.0.0.195:81<br/>NPM panel]
D4 --> M[10.0.0.107:443<br/>Mailcow]
D5 --> CS[10.0.0.179:8080<br/>code-server]
D6 --> G[10.0.0.189:3000<br/>Gitea]
D7 --> V[10.0.0.217:8080<br/>VaultWarden]
D8 --> LW[10.0.0.184:3000<br/>LinkWarden]
D9 --> OC[10.0.0.239:18789<br/>OpenClaw]
D10 --> H[10.0.0.155:8123<br/>Home Assistant]
D11 --> AD[10.0.0.227:8091<br/>Agent-DVR]
D12 --> R[10.0.0.244:21114<br/>RustDesk]
D13 --> W[10.0.0.112:8840<br/>WatchYourLAN]
```
---
## 4. Sync knowledge-base (4 хоста через Gitea)
```mermaid
flowchart LR
Mac[💻 Mac<br/>~/knowledge-base<br/>RW]
Gitea[(🐙 Gitea<br/>git.dttb.ru<br/>truth)]
NC[☁️ Nextcloud<br/>/Knowledge Base/<br/>service copy]
Code[🖥️ code-server<br/>LXC 132<br/>RW · cron */5]
OC[🤖 openclaw<br/>LXC 137<br/>RO · cron */15]
iPhone[📱 iPhone]
Mac <-->|git push/pull<br/>Stop-hook| Gitea
Mac <-->|rclone bisync| NC
Code <-->|kb-autosync.sh| Gitea
OC -->|kb-pull.sh| Gitea
iPhone -.->|read-only| NC
```
---
## 5. NetBird overlay (отдельная плоскость)
```mermaid
flowchart TB
NBC[NetBird Coordinator<br/>finland VPS]
subgraph LAN["🏠 dttb LAN 10.0.0.0/24"]
L132N[code-server<br/>100.70.92.138]
L137N[openclaw<br/>100.70.167.54]
L116N[rustdesk<br/>100.70.191.161]
L138N[vpn-proxy<br/>100.70.161.29]
end
subgraph Remote["🌍 Remote Hosts"]
Glav[Glavtorg Win<br/>100.70.195.47]
S1C[Сервер 1С<br/>100.70.75.103]
MMFB[ММФБ Proxmox<br/>100.70.128.49]
Yuri[Юрий ММФБ<br/>100.70.173.66]
Volk[Volkkent<br/>100.70.121.131]
Zel[Зеленоград<br/>100.70.40.152]
Niikn[Kripto-ARM НИИКН<br/>100.70.145.223]
Maxim[Максим Мауль<br/>192.168.1.58]
end
NBC -.- L132N
NBC -.- L137N
NBC -.- L116N
NBC -.- L138N
NBC -.- Glav
NBC -.- S1C
NBC -.- MMFB
NBC -.- Yuri
NBC -.- Volk
NBC -.- Zel
NBC -.- Niikn
NBC -.- Maxim
```
---
## Как редактировать
- Любой блок ` ```mermaid ` рендерится в Obsidian (Live Preview / Reading mode), Gitea web и Nextcloud Text
- Синтаксис: <https://mermaid.js.org/syntax/flowchart.html>
- Для проверки локально: <https://mermaid.live>