群晖虚拟机OpenWRT配置Taiscale

  1. Extract the contents of root to your filesystem root:

    tar x -zvC / -f openwrt-tailscale-enabler-.tgz

  2. Install the prerequisites for wget and tailscale:

    opkg update
    opkg install libustream-openssl ca-bundle kmod-tun

  3. Run tailscale for the first time:

    /etc/init.d/tailscale start
    tailscale up --accept-dns=false --advertise-routes=10.0.0.0/24

后面会下载对应系统的Tailscale,然后分配网站,然后复制打开对应网站,绑定tailscale账号,显示sussess即可。

最后,也是最重要的一步(否则OpenWRT重启后,Tailscale无法正常启动):

最后保存并应用,大功造成~

遇到的问题:

OpenWRT配置Taiscale后,开机启动后Taiscale无法正常启动。

原因:下载的Taiscale版本不对。

复制代码
root@OpenWrt:~# tailscale up --accept-dns=false --advertise-routes=10.0.0.0/24
--2023-08-01 00:48:47--  https://pkgs.tailscale.com/stable/
Resolving pkgs.tailscale.com... 199.38.181.239
Connecting to pkgs.tailscale.com|199.38.181.239|:443... connected.

HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
2023-08-01 00:48:48 (181 KB/s) - written to stdout [34256]
Downloading Tailscale 1.46.1_amd64 ..
--2023-08-01 00:48:48--  https://pkgs.tailscale.com/stable/tailscale_1.46.1_amd64.tgz
Resolving pkgs.tailscale.com... 199.38.181.239
Connecting to pkgs.tailscale.com|199.38.181.239|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25268523 (24M) [application/x-compressed-tar]
Saving to: 'STDOUT'
-                                           0%[                                                                                    ]       0  --.-KB/s               tailscale_1.46.1_amd64/tailscaled
-                                          56%[==============================================>                                     ]  13.57M  6.13MB/s               tailscale_1.46.1_amd64/tailscale
-                                         100%[===================================================================================>]  24.10M  8.02MB/s    in 3.0s    
2023-08-01 00:48:52 (8.02 MB/s) - written to stdout [25268523/25268523]
Done!

在启动tailscale时,检测到新的版本,并且是amd64的版本,很大可能是版本跟自己本地下载的不匹配,新下载的版本放在/tmp目录下。

这时候需要把新下载的tailscaled 替换掉本地的/usr/bin/tailscaled

复制代码
cp /tmp/tailscaled /usr/bin/tailscaled 
reboot

参考:https://github.com/adyanth/openwrt-tailscale-enabler

相关推荐
csdn_aspnet2 天前
如何从电脑主机拷东西到VWmare虚拟机
linux·运维·服务器·windows·vmware·虚拟机
阿钱真强道5 天前
01 嵌入式操作系统 | 课程导论与虚拟机安装 Ubuntu
linux·ubuntu·嵌入式·虚拟机
my_realmy5 天前
Java 基础面试笔记(二):JDK、JRE、JVM、JIT 与 JAR
jvm·虚拟机·jit·特性·jre·垃圾回收机制
小小ken9 天前
hyper-v管理器打开虚拟机连接窗口,出错:无法连接到虚拟机。请尝试再次连接。
hyper-v·虚拟机
星 海9 天前
【网络】VirtualBox网络模式
网络·虚拟机·virtualbox·vm
2601_9622992411 天前
Azure python操作系统列表
python·操作系统·azure·虚拟机·存储配置文件
杨浦老苏14 天前
群晖 Docker 部署 LAN-Sheriff:实时监控局域网设备对外连接
网络安全·docker·监控·群晖·网络监控
会周易的程序员17 天前
给 PLC 写一个字节码虚拟机:STVM 虚拟机架构设计
开发语言·c++·虚拟机·软plc·iec61131·stvm
JasonHuan112320 天前
Hyper-V-三台虚拟机安装启动使用完全指南
linux·ubuntu·hyper-v·虚拟机
k4m7v2pz1 个月前
在Arch Linux笔记本上搭建ReactOS 0.4.15虚拟机:从Mac远程开发调试Windows XP风格应用的完整指南
qemu·虚拟机·kvm·交叉编译·mingw-w64·reactos