58 lines
1.7 KiB
Markdown
58 lines
1.7 KiB
Markdown
# Production example (reference)
|
|
|
|
Этот пример фиксирует эталонный production-state после успешной установки и preflight. Значения обезличены и предназначены как reference для smoke-проверки.
|
|
|
|
```text
|
|
SSH:
|
|
host: <server-ip>
|
|
port: 2323
|
|
user: root
|
|
|
|
Amnezia:
|
|
container: amnezia-awg2
|
|
interface: awg0
|
|
published UDP: 443
|
|
peer CIDR: 10.8.1.0/24
|
|
|
|
AmneziaDNS:
|
|
container: amnezia-dns
|
|
status: healthy
|
|
internal_ip: 172.29.172.254
|
|
exposed_ports: 53/tcp, 53/udp inside Docker only
|
|
published_ports: none
|
|
public_53: closed
|
|
|
|
Expected status:
|
|
service: active
|
|
traffic drift: no
|
|
host firewall drift: no
|
|
anti-torrent drift: no
|
|
swap drift: no
|
|
```
|
|
|
|
Проверка ключевых сигналов:
|
|
|
|
```bash
|
|
systemctl status awg2-harness.service --no-pager -l
|
|
systemctl status awg2-reboot-scheduler.service --no-pager -l
|
|
awg2-harness --config /etc/awg2-harness/config.toml status
|
|
```
|
|
|
|
Проверка Docker/Amnezia runtime:
|
|
|
|
```bash
|
|
docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'
|
|
C="$(docker ps --format '{{.Names}}' | grep -E '^(amnezia-awg2|amnezia-awg)$' | head -n1)"
|
|
docker port "$C"
|
|
docker exec "$C" wg show
|
|
docker inspect -f 'ports={{json .NetworkSettings.Ports}}' amnezia-dns
|
|
```
|
|
|
|
Проверка, что runtime config создан вручную (ожидаемое поведение):
|
|
|
|
```bash
|
|
test -f /etc/awg2-harness/config.toml && echo "runtime config present"
|
|
```
|
|
|
|
Если файл отсутствует после `apt install`, это корректно: создайте его вручную из `/usr/share/doc/awg2-harness/repo/config.example.toml`.
|