1.下载软件
可在github找到最新安装包,点击这里,可使用wget命令下载。以下在TTYD终端执行,没有TTYD可用SSH工具连接执行,如:PuTTY
wget https://github.com/adyanth/openwrt-tailscale-enabler/releases/download/v1.36.1-fb2f6cf-autoupdate/openwrt-tailscale-enabler-v1.36.1-fb2f6cf-autoupdate.tgz
2.解压
tar x -zvC / -f openwrt-tailscale-enabler-v1.36.1-fb2f6cf-autoupdate.tgz
3.安装依赖(建议依次执行)
opkg update
opkg install libustream-openssl ca-bundle kmod-tun
4.第一次运行(将10.0.0.0替换为你的IP段)
/etc/init.d/tailscale start
tailscale up --accept-dns=false --advertise-routes=10.0.0.0/24
5.设置开机启动
/etc/init.d/tailscale enable
6.验证开机启动
ls /etc/rc.d/S*tailscale*
评论
发表评论