Debian12安装Netbird

使用 官方 一键脚本 https://docs.netbird.io/how-to/installation curl -fsSL https://pkgs.netbird.io/install.sh | sh 使用 官方 echo 'deb [signed-by=/usr/share/keyrings/netbird-archive-keyring.gpg] https://pkgs.netbird.io/debian stable main' | tee /etc/apt/sources.list.d/netbird.list 使用 CF 加速 echo 'deb [signed-by=/usr/share/keyrings/netbird-archive-keyring.gpg] https://asw-mirror.dtapp.top/netbird/debian stable main' | tee /etc/apt/sources.list.d/netbird.list 检查是否使用了加速 cat /etc/apt/sources.list.d/netbird.list 更新 apt update apt install netbird 查看版本 netbird version 查看状态 netbird version 启动 netbird up --management-url https://xxx.xxx.net --admin-url https://xxx.xxx.net --setup-key XXX-XX-XX-XXX 禁用 (停止服务和禁自启) systemctl stop netbird.service && systemctl disable netbird.service 恢复 (启动服务和自启) systemctl start netbird.service && systemctl enable netbird.service PVE下问题 telnet xxx.xxx.net 8443 如发现解析到了127.0.0.1,请检查/etc/hosts文件 Docker 安装 services: netbird.client: image: docker.1ms.run/netbirdio/netbird:0.35.1 container_name: netbird.client restart: unless-stopped #restart: always network_mode: host cap_add: - NET_ADMIN - SYS_ADMIN - SYS_RESOURCE environment: - NB_SETUP_KEY=xxxx-x-x-x-xxxx - NB_ADMIN_URL=https://netbird.xxx.xx - NB_MANAGEMENT_URL=https://netbird.xxx.xx volumes: - /etc/localtime:/etc/localtime:ro - /root/docker_work/netbird/data:/etc/netbird:rw Podman 安装 services: netbird.client: image: docker.1ms.run/netbirdio/netbird:0.35.0 container_name: netbird.client restart: unless-stopped #restart: always network_mode: host privileged: true cap_add: - NET_ADMIN - SYS_ADMIN - SYS_RESOURCE environment: - NB_SETUP_KEY=xxxx-x-x-x-xxxx - NB_ADMIN_URL=https://netbird.xxx.xx - NB_MANAGEMENT_URL=https://netbird.xxx.xx volumes: - /etc/localtime:/etc/localtime:Z - /root/podman_work/netbird/data:/etc/netbird:z

五月 15, 2024 · 1 分钟 · 229 字 · 李光春

Linux:Netbird命令行

命令 netbird 状态 netbird status

四月 19, 2024 · 1 分钟 · 7 字 · 李光春