openwrt 23.05.x以上版本如何安装新版本的tailscale,告别1.5x.x和部分1.6x.x参启错误
2016-7-2|2024-8-18
ajeef火麒麟
type
status
date
slug
summary
tags
category
icon
password
问题描述:如果依然用自带源,默认安装的是原来的1.5x版本,在23.05.x以上OP上会出现无法启动的问题,等。。
1:下载过渡支持auto update down版本:wget https://github.com/adyanth/openwrt-tailscale-enabler/releases/download/v1.60.0-e428948-autoupdate/openwrt-tailscale-enabler-v1.60.0-e428948-autoupdate.tgz
2:解压到文件系统目录: tar x -zvC / -f openwrt-tailscale-enabler-v1.60.0-e428948-autoupdate.tgz
3:更新源并安装依赖:opkg update && opkg install libustream-openssl ca-bundle kmod-tun
4:启动Tailscalse:/etc/init.d/tailscale start
5:启动参数(将里面的192.168.5.0替换成你自己本地的局域网网段,其它不用改):tailscale up --accept-routes --advertise-routes=192.168.5.0/24 --accept-dns=false --advertise-exit-node
6:不出意外回车后,就会自动下载最新的1.70.0版本并弹出授权链接(点击链接登入你自己的Tailscalse账号后,就会出现Success,搞定):
- -2024-07-28 14:15:51-- https://pkgs.tailscale.com/stable/ Resolving pkgs.tailscale.com... 2617:f941:f::d19, 199.68.171.239 Connecting to pkgs.tailscale.com|2617:f750:f::d19|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: 'STDOUT'
[ <=> ] 41.32K 101KB/s in 0.4s
2024-07-28 14:15:52 (101 KB/s) - written to stdout [42311]
Downloading Tailscale 1.70.0_amd64 ..
--2024-07-28 14:15:52-- https://pkgs.tailscale.com/stable/tailscale_1.70.0_amd64.tgz
Resolving pkgs.tailscale.com... 2607:f740:f::d19, 199.38.181.239
Connecting to pkgs.tailscale.com|2607:f740:f::d19|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://dl.tailscale.com/stable/tailscale_1.70.0_amd64.tgz [following]
--2024-07-28 14:15:53-- https://dl.tailscale.com/stable/tailscale_1.70.0_amd64.tgz
Resolving dl.tailscale.com... 109.105.218.17
Connecting to dl.tailscale.com|109.105.218.17|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27835511 (27M) [application/x-compressed-tar]
Saving to: 'STDOUT'
0%[ ] 0 --.-KB/s tailscale_1.70.0_amd64/tailscaled
63%[================================================================================> ] 16.92M 1.90MB/s eta 8s tailscale_1.70.0_amd64/tailscale
100%[===============================================================================================================================>] 26.55M 3.32MB/s in 11s
2024-07-28 14:16:05 (2.42 MB/s) - written to stdout [27835511/27835511]
Done!
To authenticate, visit:
Success.
7:设置成开机启动:/etc/init.d/tailscale enable
8:验证开机启动是否成功(如果出现/etc/rc.d/S99tailscale等字符表示成功):ls /etc/rc.d/Stailscale
------------上面是openwrt的安装,下面是在Tailscale的设置-------------
1:在Machines菜单列表下,找到自己刚刚连接的机器, 点击右边的···的三个点,选择--Disable key expiry(禁用密匙过期,如果不是临时机器建议关掉)
2:继续在···三个点同菜单下,选择Edit router settings(编辑路线设置),勾选Subnet routes(子网路由,这样你局域网下的所有设备都能连接),勾选Exit node(出口节点,这样你手机tailscale或电脑tailscalse客户端,连接上这个节点时候,就直接使用这个节点的网络了,包括科学上网)
教程完