ansible-deploy / plan (push) Successful in 1s
ansible-lint / lint (push) Successful in 2s
ansible-deploy / deploy (core-mon, ) (push) Successful in 37s
ansible-deploy / deploy (core-net, ) (push) Failing after 52s
ansible-deploy / deploy (core-secrets, ) (push) Successful in 24s
ansible-deploy / deploy (ger-nod-02, ) (push) Successful in 1m20s
ansible-deploy / deploy (opnsense, ) (push) Successful in 13s
ansible-deploy / deploy (rus-central, ) (push) Successful in 1m6s
Повторный прогон без смены compose не тянет образы, ноды и сквады добавляются данными, а не новым плейбуком на каждый VPS. Co-authored-by: Cursor <cursoragent@cursor.com>
100 lines
3.4 KiB
YAML
100 lines
3.4 KiB
YAML
# Декларативное описание клиентского доступа и политик NetBird.
|
|
# Применяется задачей rus-central/netbird (tasks/access.yml → sync_access.py).
|
|
#
|
|
# Секреты setup-ключей сохраняются в Infisical (/services/netbird) автоматически
|
|
# и не попадают в Git или логи CI.
|
|
|
|
# Группы exit-<hostname> для нод из desired.yml добавляет sync_access.py.
|
|
client_groups:
|
|
- exit-clients
|
|
- remnawave
|
|
|
|
# DNS для клиентских групп
|
|
dns_nameservers:
|
|
- name: exit-dns
|
|
description: "Public DNS for Exit Node clients"
|
|
servers:
|
|
- "1.1.1.1"
|
|
- "8.8.8.8"
|
|
groups:
|
|
- exit-clients
|
|
primary: true
|
|
enabled: false
|
|
|
|
# Ключи подключения клиентов (секреты сохраняются в Infisical /services/netbird).
|
|
setup_keys:
|
|
- name: exit-clients-key
|
|
secret: NETBIRD_EXIT_CLIENTS_SETUP_KEY
|
|
type: reusable
|
|
expires_in: 31536000
|
|
usage_limit: 0
|
|
ephemeral: false
|
|
groups:
|
|
- exit-clients
|
|
enabled: true
|
|
|
|
# Управление подключёнными пирами (жёсткое разделение: внешние ноды не входят в remnawave).
|
|
peers:
|
|
- name: "A55 пользователя Vacheslav"
|
|
groups:
|
|
- exit-clients
|
|
state: present
|
|
- name: "core-net"
|
|
groups:
|
|
- remnawave
|
|
state: present
|
|
|
|
# Zero-Trust политики доступа (заменяют дефолтную политику Default All <-> All).
|
|
# Инициировать соединения в сторону внешних нод могут только панель (core-net) и клиенты (exit-clients).
|
|
# Сами внешние ноды не могут открыть ни одного соединения внутрь домашней сети или к пирам.
|
|
policies:
|
|
- name: "remnawave-panel-to-exit-nodes"
|
|
description: "One-way access from Remnawave panel (core-net) to Exit Nodes (NODE_PORT + metrics)"
|
|
enabled: true
|
|
rules:
|
|
- name: "panel-to-node-tcp"
|
|
description: "Allow TCP 2222 (remnanode), 9100 (node-exporter), 9101 (cAdvisor) from core-net"
|
|
enabled: true
|
|
action: accept
|
|
protocol: tcp
|
|
bidirectional: false
|
|
ports:
|
|
- "2222"
|
|
- "9100"
|
|
- "9101"
|
|
sources:
|
|
- remnawave
|
|
destinations: "@remnawave_exit_groups"
|
|
|
|
- name: "exit-clients-to-exit-nodes"
|
|
description: "One-way traffic from Exit Node clients to Exit Nodes"
|
|
enabled: true
|
|
rules:
|
|
- name: "exit-clients-tcp"
|
|
description: "Allow outbound TCP from exit-clients via exit node"
|
|
enabled: true
|
|
action: accept
|
|
protocol: tcp
|
|
bidirectional: false
|
|
sources:
|
|
- exit-clients
|
|
destinations: "@remnawave_exit_groups"
|
|
- name: "exit-clients-udp"
|
|
description: "Allow outbound UDP from exit-clients via exit node"
|
|
enabled: true
|
|
action: accept
|
|
protocol: udp
|
|
bidirectional: false
|
|
sources:
|
|
- exit-clients
|
|
destinations: "@remnawave_exit_groups"
|
|
- name: "exit-clients-icmp"
|
|
description: "Allow ICMP for exit-clients via exit node"
|
|
enabled: true
|
|
action: accept
|
|
protocol: icmp
|
|
bidirectional: true
|
|
sources:
|
|
- exit-clients
|
|
destinations: "@remnawave_exit_groups"
|