feat(network): verify selected uplinks, roll back failures and manage NetBird policy

This commit is contained in:
DCCONSTRUCTIONS
2026-11-21 20:58:26 +03:00
parent a50d638ced
commit 43d4916331
63 changed files with 6743 additions and 12 deletions
@@ -0,0 +1,27 @@
[Unit]
Description=Mission Core physical uplink selection
After=NetworkManager.service
Wants=NetworkManager.service
Before=mission-core-node.service
[Service]
Type=simple
ExecStart=/usr/bin/python3 -I /usr/lib/mission-core-node/uplink_helper.py
ExecStopPost=/usr/bin/python3 -I /usr/lib/mission-core-node/uplink_helper.py --restore
Restart=on-failure
RestartSec=5
StateDirectory=mission-core-uplink
StateDirectoryMode=0700
RuntimeDirectory=mission-core-uplink
RuntimeDirectoryMode=0755
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 AF_PACKET
CapabilityBoundingSet=CAP_CHOWN CAP_NET_ADMIN CAP_DAC_READ_SEARCH CAP_NET_RAW
MemoryMax=64M
TasksMax=16
[Install]
WantedBy=multi-user.target