Files
buryan-infra/docs/architecture/evidence/VPN-RESTORE-20261203.md
T
architect d29661f3cf
lint / hygiene (push) Failing after 39s
lint / hygiene (pull_request) Failing after 37s
standard / check (pull_request) Successful in 18s
[VPN] restore Wireguard1: start VM220, fix AllowedIPs and peer key
2026-12-03 20:42:49 +03:00

56 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.
# Velibori242-2 VPN restore — 2026-12-03
## Что пропало
SSID `Velibori242-2` (AccessPoint4 → Bridge1) и VPN-доступ.
После восстановления SSID виден, но клиенты не получали VPN.
## Причина
1. **VM220 `vpn-core` (192.168.1.203) была остановлена** — endpoint Wireguard1 недоступен.
2. У VM220 не было автозапуска после ребута pve.
3. После запуска handshake всё равно не проходил:
- в VM220 `AllowedIPs = 10.66.0.2/32`, а роутер имеет `10.66.0.3`;
- в VM220 peer key был старый `9gc4…`, роутер использует `N67Ci…`.
Пакеты до VM доходили (tcpdump), но отбрасывались из-за несовпадения ключа.
## Что сделано
```text
qm start 220
qm set 220 --onboot 1
VM220 /etc/wireguard/wg0.conf:
AllowedIPs 10.66.0.2/32 → 10.66.0.3/32
PublicKey 9gc4… → N67Ci… (ключ роутера)
wg-quick down/up wg0
```
Бэкапы:
```text
/etc/wireguard/wg0.conf.bak-allowedips-20261203
/etc/wireguard/wg0.conf.bak-peerkey-20261203
```
## Проверка
```text
VM220: running, onboot 1
wg0: handshake есть, transfer 180/92
Keenetic Wireguard1:
link: up
online: yes
last-handshake: 8 s
rxbytes: 92, txbytes: 662036
SSID Velibori242-2: виден в скане
```
## Что осталось
- Проверить подключение клиента к `Velibori242-2` и выход в интернет.
- Если клиенты не выходят: смотреть NAT на VM220 (`tailscale0` MASQUERADE) и policy `Bridge1 → VeliboriVPN`.
- AP4 работает на 2.4 ГГц; 5 ГГц AP4 выключен, это нормально.