旁路由iStoreOS安装配置Tailscale
网络1个月前 (02-21)
虽然家里的宽带网络有公网ip,但是还是怕哪天被电信回收掉,为了访问家庭内网的资源,选择了通过WireGuard改进来的Tailscale,无需公网地址并且去中心化,实现各个节点之间点对点的连接。配置简单友好,支持的各类平台和客户端,下面是在基于OpenWrt的iStoreOS上的配置过程。
#官方地址页面
https://github.com/adyanth/openwrt-tailscale-enabler
下载并解压openwrt-tailscale-enabler
wget https://github.com/adyanth/openwrt-tailscale-enabler/releases/download/v1.36.1-fb2f6cf-autoupdate/openwrt-tailscale-enabler-v1.36.1-fb2f6cf-autoupdate.tgz tar x -zvC / -f openwrt-tailscale-enabler-v1.36.1-fb2f6cf-autoupdate.tgz
安装依赖
opkg update opkg install libustream-openssl ca-bundle kmod-tun
设置自启
/etc/init.d/tailscale enable ls /etc/rc.d/S*tailscale*
运行并获取登录链接
/etc/init.d/tailscale start tailscale up
浏览器打开链接确认设备
开启子网路由
tailscale up --accept-dns=false --advertise-routes=10.0.0.0/27
返回首页配置设备,关闭密钥过期,并打开子网路由,其他客户端登录和路由器一样的google账号就可以连接进内网了。
第二种办法是使用opkg安装,但是版本收录的比较老
opkg update opkg list|grep tailscale opkg install tailscale /etc/init.d/tailscale start tailscale up tailscale up --accept-dns=false --advertise-routes=10.0.0.0/27
本站所有文章均可随意转载,转载时请保留原文链接及作者。