惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans
MongoDB | Blog
MongoDB | Blog
Y
Y Combinator Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Security Latest
Security Latest
Project Zero
Project Zero
A
Arctic Wolf
L
LINUX DO - 热门话题
Microsoft Azure Blog
Microsoft Azure Blog
P
Palo Alto Networks Blog
Know Your Adversary
Know Your Adversary
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Cloudbric
Cloudbric
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
T
Threatpost
T
The Exploit Database - CXSecurity.com
T
Tailwind CSS Blog
PCI Perspectives
PCI Perspectives
WordPress大学
WordPress大学
T
Tor Project blog
阮一峰的网络日志
阮一峰的网络日志
The Hacker News
The Hacker News
V
Visual Studio Blog
M
MIT News - Artificial intelligence
月光博客
月光博客
D
DataBreaches.Net
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Simon Willison's Weblog
Simon Willison's Weblog
Attack and Defense Labs
Attack and Defense Labs
The Register - Security
The Register - Security
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MyScale Blog
MyScale Blog
N
Netflix TechBlog - Medium
S
Security Affairs
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
Spread Privacy
Spread Privacy
AI
AI
S
Schneier on Security
L
LangChain Blog
C
Cybersecurity and Infrastructure Security Agency CISA
博客园 - 叶小钗
量子位
H
Heimdal Security Blog
J
Java Code Geeks

daliy on 打工人日志

iStoreOS(旁路由)使用openclash实现dns劫持 异常流量分析:图片库服务黑客入侵 openwrt 硬盘扩容 搭建ip地址检索服务 【福利】免费!本地部署!去除视频中移动的物体 通知:《打工人日报》迁移到独立板块 KyBook 3 | calibre-web - IOS系统最佳图书伴侣 iOS 17 「待机显示」适配普通 iPhone(非 Pro/Max),屏幕在充电时常亮 【福利】埃隆·马斯克传 [沃尔特·艾萨克森] 在线下载 【破解】小鹏P5和小鹏G9开启adb和网络adb 3D Gaussian Splatting:3D模型渲染 2023亚运会电竞门票民购买指南(报名+抽签) 大麦抢票辅助软件(福利 TFBOYS十年之约演唱会 2023 全机位 视频) 最好的微信朋友圈集赞神器-福利推荐 2010年的天涯神贴聊房价 github 国内代理访问下载 逆境和成长-2022年终总结 优雅的使用Conda管理python环境 shell功能脚本集合 羊了个羊小程序 破解通关 logrotate 日志滚动的使用 rsync 文件同步 163企业邮箱设置教程 2021年第50周记 优秀英语教材的选择
headscale 部署使用
2022-09-21 · via daliy on 打工人日志

Headscale

Tailscale 的控制服务器是不开源的,而且对免费用户有诸多限制,这是人家的摇钱树,可以理解。好在目前有一款开源的实现叫 Headscale,这也是唯一的一款,希望能发展壮大。

Headscale 由欧洲航天局的 Juan Font 使用 Go 语言开发,在 BSD 许可下发布,实现了 Tailscale 控制服务器的所有主要功能,可以部署在企业内部,没有任何设备数量的限制,且所有的网络流量都由自己控制

Headscale 部署

我决定使用docker-compose进行部署

创建存储

1#!/bin/bash
2mkdir -p /opt/headscale
3mkdir -p ./config
4touch ./config/db.sqlite
5curl https://raw.githubusercontent.com/juanfont/headscale/main/config-example.yaml -o ./config/config.yaml

运行 docker-compose 文件

创建 docker-compose.yaml

 1version: "3"
 2services:
 3  headscale:
 4    image: headscale/headscale:latest
 5    volumes:
 6      - ./config:/etc/headscale/
 7      - ./data:/var/lib/headscale
 8    ports:
 9      - 8080:8080
10      - 9090:9090
11      - 50443:50443
12    command: headscale serve
13    restart: unless-stopped

运行

docker-compose up -d

Headscale 使用

Linux 使用

1wget https://pkgs.tailscale.com/stable/tailscale_1.22.2_amd64.tgz

解压

1tar zxvf tailscale_1.22.2_amd64.tgz

将二进制文件复制到官方软件包默认的路径下:

1cp tailscale_1.22.2_amd64/tailscaled /usr/sbin/tailscaled
2cp tailscale_1.22.2_amd64/tailscale /usr/bin/tailscale

将 systemD service 配置文件复制到系统路径下:

1cp tailscale_1.22.2_amd64/systemd/tailscaled.service /lib/systemd/system/tailscaled.service

启动 tailscaled.service 并设置开机自启:

1systemctl enable --now tailscaled

查看服务状态:

1systemctl status tailscaled