tinc异地组网使用实例

tinc异地组网使用实例 tinc是一个组建虚拟专用网络(VPN)的工具,通过隧道及加密技术在互联网上点与点之间创建专有网络。tinc 在网络层工作,因此无需对现有软件进行修改和配置。其数据通讯经过加密和压缩,能避免敏感数据和隐私的泄露。 vps主机安装设置tinc debian系统 公网ip 12.23.34.45 vpn名称 bbq vpn主机名 tcb vpn ip 10.0.0.11 安装tinc 使用apt install tinc -y安装tinc ➜ ~ apt install tinc -y Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: liblzo2-2 The following NEW packages will be installed: liblzo2-2 tinc 0 upgraded, 2 newly installed, 0 to remove and 6 not upgraded. Need to get 261 kB of archives. After this operation, 831 kB of additional disk space will be used. Get:1 http://deb.debian.org/debian bookworm/main amd64 liblzo2-2 amd64 2.10-2 [56.9 kB] Get:2 http://deb.debian.org/debian bookworm/main amd64 tinc amd64 1.0.36-2+b2 [204 kB] Fetched 261 kB in 0s (2,189 kB/s) Selecting previously unselected package liblzo2-2:amd64. (Reading database ... 56790 files and directories currently installed.) Preparing to unpack .../liblzo2-2_2.10-2_amd64.deb ... Unpacking liblzo2-2:amd64 (2.10-2) ... Selecting previously unselected package tinc. Preparing to unpack .../tinc_1.0.36-2+b2_amd64.deb ... Unpacking tinc (1.0.36-2+b2) ... Setting up liblzo2-2:amd64 (2.10-2) ... Setting up tinc (1.0.36-2+b2) ... Created symlink /etc/systemd/system/multi-user.target.wants/tinc.service → /lib/systemd/system/tinc.service. Processing triggers for man-db (2.11.2-2) ... Processing triggers for libc-bin (2.36-9+deb12u9) ... 新建vpn配置目录 以vpn名称新建配置目录 ...

三月 31, 2025 · jqx

部署Headscale以及Tailscale连接使用方法

部署Headscale以及Tailscale连接使用方法 Headscale是一款开源的Tailscale控制服务器软件,使用Headscale可以自行架设Tailscale服务。 VPS安装Headscale 下载地址https://github.com/juanfont/headscale/releases wget https://github.com/juanfont/headscale/releases/download/v0.24.0/headscale_0.24.0_linux_amd64.deb apt install headscale_0.24.0_linux_amd64.deb 安装完成后会有如下提示: ---------------------------------------------------------------------- headscale package has been successfully installed. Please follow the next steps to start the software: sudo systemctl enable --now headscale sudo systemctl start headscale Configuration settings can be adjusted here: /etc/headscale/config.yaml ---------------------------------------------------------------------- 注册启动Headscale服务 systemctl enable --now headscale systemctl start headscale 配置Headscale 编辑配置文件vi /etc/headscale/config.yaml 将其中的127.0.0.1替换为自己的服务器IP,例如45.67.89.99 sed -i 's|127.0.0.1|45.67.89.99|g' /etc/headscale/config.yaml 建议将randomize_client_port: false改为randomize_client_port: true开启客户端随机端口。 修改完成后重启服务systemctl restart headscale.service 查看当前状态systemctl status headscale.service 使用Headscale Headscale用户管理 创建用户,bbq为自定义用户名 headscale users create bbq 使用headscale users list查看已存在用户 ...

一月 20, 2025 · jqx