docs: update home-cluster location — CT200 VPN gateway + site-to-site VPN (2026-06-23)
This commit is contained in:
parent
cd86f4e0f5
commit
18baad51c5
1 changed files with 66 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Home Cluster — 192.168.170.x
|
||||
|
||||
Last updated: 2026-06-22
|
||||
Last updated: 2026-06-23
|
||||
|
||||
## Topology
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ Last updated: 2026-06-22
|
|||
| Proxmox | 192.168.170.40 | root | sshpass -p cityweek | Hypervisor |
|
||||
| CT100 Forgejo | 192.168.170.41 | — | via pct exec 100 on Proxmox | Git server |
|
||||
| CT102 MCP Hub | 192.168.170.43 | — | via pct exec 102 on Proxmox | MCP servers |
|
||||
| CT200 VPN GW | 192.168.170.254 | admin | bSNMx7H9OlQ3XiAI | WireGuard gateway |
|
||||
| CT200 VPN GW | 192.168.170.254 | — | via pct exec 200 on Proxmox | AmneziaWG + vpn-ui |
|
||||
| qore AI | 192.168.170.70 | root | SSH key id_ed25519 | Ollama+ComfyUI |
|
||||
|
||||
## SSH Notes
|
||||
|
|
@ -21,7 +21,7 @@ Last updated: 2026-06-22
|
|||
- Proxmox: `sshpass -p "cityweek" ssh -o StrictHostKeyChecking=no root@192.168.170.40`
|
||||
- TrueNAS: `sshpass -p "0000" ssh -o StrictHostKeyChecking=no truenas_admin@192.168.170.22`
|
||||
- CT100/102/200: no direct SSH — use `pct exec <vmid> -- bash -c '...'` from Proxmox
|
||||
- Keenetic: `telnet 192.168.170.1` (user: admin, pass: менеджер паролей)
|
||||
- Keenetic: `telnet 192.168.170.1` (user: admin, pass: cityweek)
|
||||
|
||||
## Git Remote
|
||||
|
||||
|
|
@ -39,8 +39,70 @@ See `services.md` for full URL list.
|
|||
|
||||
Monitoring dashboard: http://192.168.170.30:3001 (Grafana, admin/cityweek)
|
||||
|
||||
## CT200 VPN Gateway (192.168.170.254)
|
||||
|
||||
**Web UI:** http://192.168.170.254:8088 — admin / bSNMx7H9OlQ3XiAI
|
||||
**Access:** `sshpass -p cityweek ssh root@192.168.170.40 "pct exec 200 -- bash -c '...'"`
|
||||
|
||||
### Services on CT200
|
||||
- `amnezia-vpn.service` — AmneziaWG tunnel (awg0)
|
||||
- `vpn-ui.service` — Flask :8088
|
||||
- `dnsmasq.service` — DNS + nftset population
|
||||
- `vpn-watchdog.timer` — auto-reconnect every 60s
|
||||
|
||||
### VPN Servers
|
||||
| Name | Endpoint | Status |
|
||||
|------|----------|--------|
|
||||
| awgPeak | `45.12.135.156:41934` | ✅ active |
|
||||
| nuxtcloud | `31.76.18.238:32312` | reserve |
|
||||
|
||||
### Critical Rules
|
||||
- **VPN restart:** ALWAYS use `systemctl restart amnezia-vpn.service` (never awg-quick directly)
|
||||
- **dnsmasq nftset:** NO `4,` prefix — use `inet#vpn_filter#set_name` (libnftables 1.0.6 bug)
|
||||
- **IDN domains:** convert to Punycode (`рф` → `xn--p1ai`) before writing to dnsmasq config
|
||||
- **No .bak files** in `/etc/dnsmasq.d/` — dnsmasq loads them and fails to start
|
||||
- **Custom rules persist:** vpn-domains.conf regenerated from DB on every reload/restart
|
||||
|
||||
### Direct (no VPN) domains
|
||||
`.ru`, `.рф` (xn--p1ai), `.su`, `vk.com`, `yandex.com` → vpn_exclude_ips (direct)
|
||||
|
||||
## Site-to-Site VPN: 192.168.170.x ↔ 192.168.255.x
|
||||
|
||||
Tunnel between Keenetic Peak (home) and Keenetic Hero 4G+ (wifi/mobile network).
|
||||
|
||||
```
|
||||
192.168.170.0/24 192.168.255.0/24
|
||||
Keenetic Peak Keenetic Hero 4G+
|
||||
Wireguard2 172.16.16.1 ←────→ Wireguard1 172.16.16.2
|
||||
security-level: private security-level: public + ip nat
|
||||
```
|
||||
|
||||
### Fix applied (2026-06-23)
|
||||
- **Keenetic-170 Wireguard2:** `security-level private` (was public — blocked incoming traffic)
|
||||
- **WiFi router Wireguard1:** `security-level public` + `ip nat Wireguard1` (NAT masquerades client IPs as 172.16.16.2)
|
||||
- Result: ALL cluster nodes reachable from WiFi network at ~25–300ms
|
||||
|
||||
### Telnet commands to restore if broken
|
||||
|
||||
On Keenetic-170 (192.168.170.1):
|
||||
```
|
||||
interface Wireguard2
|
||||
security-level private
|
||||
exit
|
||||
system configuration save
|
||||
```
|
||||
|
||||
On WiFi router (192.168.255.1):
|
||||
```
|
||||
ip nat Wireguard1
|
||||
interface Wireguard1
|
||||
security-level public
|
||||
exit
|
||||
system configuration save
|
||||
```
|
||||
|
||||
## TrueNAS SCALE Notes
|
||||
|
||||
OS filesystem is immutable (read-only ZFS snapshot).
|
||||
Binaries must be installed to `/mnt/datapool/` (writable ZFS pool).
|
||||
See: `problems/truenas-scale-read-only-os-filesystem.md`
|
||||
See: `problems/truenas-scale-read-only-os-filesystem.md`
|
||||
Reference in a new issue