Files
buryan-infra/ops/work/web/reports/VPS-FIX-2026-11-18.html
T

42 lines
2.5 KiB
HTML
Raw 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.
<!doctype html><html lang="ru"><head><meta charset="utf-8">
<title>VPS fix</title><style>body{font:15px/1.5 system-ui;background:#0d1117;color:#e6edf3;margin:0;padding:24px}
pre{white-space:pre-wrap;background:#161b22;border:1px solid #30363d;border-radius:10px;padding:18px;overflow:auto}
a{color:#58a6ff} .nav{margin-bottom:16px} h1{font-size:22px}</style></head>
<body><div class="nav"><a href="/">Комбайн</a> · <a href="/reports/">Отчёты</a></div>
<h1>VPS fix</h1><pre># VPS fix — 18.11.2026
## Причины
1. **Старый SSH config:** `buryan-vps` указывал на **185.221.198.255** (старый exit node), а наш VPS — **193.233.210.184**.
2. **Ключ хоста не был авторизован на 193**; ключ этого ПК работал.
3. **WireGuard:** VPS `wg0` слушал UDP 443, хост `wgvps` — 0 B received, handshake не проходил. 10443 занят hysteria.
4. **cert-sync** первым пробовал `10.88.0.1` (WG лежал) и висел по таймаутам.
## Что сделано
- Добавлен публичный ключ хоста в `/root/.ssh/authorized_keys` на VPS.
- `/root/.ssh/config`: `buryan-vps` → `193.233.210.184`, ключ `/root/.ssh/id_ed25519`.
- WireGuard:
- VPS `wg set wg0 listen-port 30001`, `ListenPort = 30001` в `/etc/wireguard/wg0.conf`;
- хост `wgvps.conf` endpoint → `193.233.210.184:30001`;
- `systemctl restart wg-quick@wgvps`.
- `sync_certs.py`: порядок кандидатов — сначала `root@193.233.210.184`, затем `10.88.0.1`.
- `hub-cert-sync` запущен вручную.
## Проверка
```
ssh root@193.233.210.184 hostname # direct-emerald.ptr.network
ssh root@10.88.0.1 hostname # через WG
wg show # latest handshake ~10s, transfer идёт
hub-cert-sync # 49 доменов, изменений нет, SUCCESS
```
## Осталось
- VPS `wg0` создан не `wg-quick` (интерфейс уже существует), поэтому
`wg-quick@wg0` не рестартует; порт изменён live + в конфиге. При ребуте VPS
проверить, что `wg0` поднимается с 30001.
- Публичный SSH иногда даёт transient timeout; повтор через 10–20 с работает.
- Firewall VPS разрешает UDP 30000–40000; 30001 в этом диапазоне.
</pre></body></html>