feat(security): isolate exit nodes via NetBird Zero-Trust ACL and pull-mode metrics
ansible-deploy / plan (push) Successful in 2s
ansible-lint / lint (push) Successful in 3s
ansible-deploy / deploy (core-net, ) (push) Successful in 10s
ansible-deploy / deploy (ger-nod-02, ) (push) Successful in 1m27s
ansible-deploy / deploy (opnsense, ) (push) Successful in 16s
ansible-deploy / deploy (rus-central, ) (push) Successful in 28s
ansible-deploy / plan (push) Successful in 2s
ansible-lint / lint (push) Successful in 3s
ansible-deploy / deploy (core-net, ) (push) Successful in 10s
ansible-deploy / deploy (ger-nod-02, ) (push) Successful in 1m27s
ansible-deploy / deploy (opnsense, ) (push) Successful in 16s
ansible-deploy / deploy (rus-central, ) (push) Successful in 28s
This commit is contained in:
1 parent
ca25b1d042
commit
a5f3400c0c
12 files changed
+273
-56
No files matched your search
@@ -1,12 +1,14 @@
|
||||
# Декларативное описание клиентского доступа NetBird.
|
||||
# Декларативное описание клиентского доступа и политик NetBird.
|
||||
# Применяется задачей rus-central/netbird (tasks/access.yml → sync_access.py).
|
||||
#
|
||||
# Секреты setup-ключей сохраняются в Infisical (/services/netbird) автоматически
|
||||
# и не попадают в Git или логи CI.
|
||||
|
||||
# Группы клиентов
|
||||
# Управляемые группы пиров
|
||||
client_groups:
|
||||
- exit-clients
|
||||
- remnawave
|
||||
- exit-ger-nod-02
|
||||
|
||||
# Выходные шлюзы (Exit Nodes)
|
||||
exit_nodes:
|
||||
@@ -35,8 +37,6 @@ dns_nameservers:
|
||||
enabled: false
|
||||
|
||||
# Ключи подключения клиентов (секреты сохраняются в Infisical /services/netbird).
|
||||
# Чтобы выпустить отдельный ключ — добавьте запись с новым name и secret.
|
||||
# Чтобы отозвать ключ — поставьте enabled: false или удалите запись.
|
||||
setup_keys:
|
||||
- name: exit-clients-key
|
||||
secret: NETBIRD_EXIT_CLIENTS_SETUP_KEY
|
||||
@@ -48,11 +48,75 @@ setup_keys:
|
||||
- exit-clients
|
||||
enabled: true
|
||||
|
||||
# Управление подключёнными клиентскими устройствами (пирами).
|
||||
# Новые пиры, подключившиеся по setup-ключу, сохраняют свои группы автоматически.
|
||||
# Здесь можно явно зафиксировать группы пира или удалить/отключить устройство (state: absent).
|
||||
# Управление подключёнными пирами (жёсткое разделение: внешние ноды не входят в remnawave).
|
||||
peers:
|
||||
- name: "A55 пользователя Vacheslav"
|
||||
groups:
|
||||
- exit-clients
|
||||
state: present
|
||||
- name: "core-net"
|
||||
groups:
|
||||
- remnawave
|
||||
state: present
|
||||
- name: "ger-nod-02"
|
||||
groups:
|
||||
- exit-ger-nod-02
|
||||
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:
|
||||
- exit-ger-nod-02
|
||||
|
||||
- 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:
|
||||
- exit-ger-nod-02
|
||||
- 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:
|
||||
- exit-ger-nod-02
|
||||
- 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:
|
||||
- exit-ger-nod-02
|
||||
Reference in new issue
Block a user