Files
buryan-infra/docs/architecture/PHASE-B-CUTOVER-2.md
T
architect d2c6a1a51f
lint / hygiene (push) Failing after 23s
lint / hygiene (pull_request) Failing after 22s
standard / check (pull_request) Successful in 9s
[PHASE-B] Cutover #2 success: table100 fixed, VM .203 active, 30m log running
2026-12-02 17:47:24 +03:00

80 lines
1.8 KiB
Markdown
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.
# PHASE B — CUTOVER #2 SUCCESS
Дата: 2026-12-02 18:00 MSK
Статус: cutover на VM220 выполнен, data-plane работает, 30-минутный лог пишется.
## Корень провала #1
`ip rule from 10.66.0.0/24 lookup 100`, но **table 100 была пустой**.
Пакеты из wg0 уходили в никуда: handshake был, данные — нет.
Фикс:
```text
ip route replace default dev sbtun table 100
```
Постоянно: `/etc/systemd/system/vpn-core-routes.service`.
## B2.5
Чистый пир `.30`, реальный клиент pve без netns:
```text
ifconfig.me → 45.133.209.253
ya.ru → 302 (direct)
```
Аудит пиров: на VM ровно один `.3` = N67 (Keenetic), без дублей.
## Cutover #2
```text
Keenetic Wireguard1 → 192.168.1.203:51820
peer: yoVHb5PYvHpgruQvxdvONhCkmeYGWYhA0H9BsnQET2g=
client private-key: не менялся
policy: VeliboriVPN, WG1 + ISP fallback
```
Проверка:
```text
Keenetic handshake: 5 s, online yes
VM peer .3: handshake 3 s
transfer: 6.10 MiB received / 67.61 MiB sent
VM external: 45.133.209.253
RTT old: 47–50 ms
```
## 30-минутный лог
```text
/var/log/phase-b-30min.log
```
Формат:
```text
ts|hs=<handshake>|tr=<rx/tx>|ext=<external ip>|rtt=<ms>
```
## Снапшоты
```text
pre-vpn-core-install 14:48:22
wg0-ok-20261202 15:14:25
b2-singbox-ok-20261202 15:25:48
b25-route-ok-20261202 17:30:51
```
## CT202
Горячий резерв на `.202`. Не гасится.
## Осталось
- 30-минутный лог — приёмка.
- Community rule-sets + smart для сегмента.
- Ротация клиентского ключа.
- Стоп CT202 после B-final.