本帖最後由 张无忌 於 2026-5-2 01:58 編輯
非公网/公网 Tailscale on OpenWrt with subnets and exit node
在大陆用 broadband 通常是非公网 IP 的,就是如 IP=192.168.1.1,那么大陆的资源不能利用,现在我们可以利用 Tailscale,把大陆家里的路由器都可以连起来,只要香港或手机安装了 Tailscale 就可以,在香港可以绕空大陆非公网的路由器,再通过大陆 Tailscale Exit Node,取得大陆 IP,让香港可以看到 CCTV5!!!
本文章出自 [1],可以把 OpenWrt and GL.iNet 的 Exit Node 做出来,大陆的非公网路由器能让香港的电脑或手机用 Tailscale connect 到。现在用 Cudy TR3000 256MB v1,安装 OpenWrt 24.10.4 固件。
1. Set password,Timezone=Asia/Shanghai,Language=English,Design=BootstrapDardblack, IP=192.168.1.1
2a. OPKG 大陆安装,香港不用,use PuTTY- sed -i 's_https\?://downloads.openwrt.org_https://mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf
複製代碼 2b. APK,/etc/apk/repositories.d/distfeeds.list- sed -i 's_https\?://downloads.openwrt.org_https://mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/apk/repositories.d/distfeeds.list
複製代碼 ..
3a. OPKG,install Tailscale- opkg update && opkg install tailscale
複製代碼 3b. APK,add Tailscale- apk update && apk add tailscale
複製代碼 ..
4. Initial Setup,用 browser 打开 https- root@OpenWrt:~# tailscale up
- To authenticate, visit:
- https://login.tailscale.com/a/1d8e9dcb01d938
複製代碼 ..
图1:Tailscale email login
图2:Connect
图3:Login successful
图4:Tailscale machine
在上 Step 4- Success.
- Some peers are advertising routes but --accept-routes is false
- root@OpenWrt:~#
複製代碼 ..
5. Add "--advertise-routes" and "--advertise-exit-node"- tailscale up --advertise-routes=192.168.1.0/24,192.168.55.0/24 --snat-subnet-routes=false --advertise-exit-node
複製代碼 ..
Ignore the followings- Warning: UDP GRO forwarding is suboptimally configured on eth0, UDP forwarding throughput capability will increase with a configuration change.
- See https://tailscale.com/s/ethtool-config-udp-gro
- Some peers are advertising routes but --accept-routes is false
- root@OpenWrt:~#
複製代碼 ..
6. Add Tailscale interface
图5:
7. Setup firewall
图6:
8. Tailscale Restart- service tailscale restart
複製代碼 ..
9. Tailscale Dashboard,add subnets and exit node
图7:
10.
图8:
11. Computer to select Exit Node
图9:
12. CCTV5
13. YouTube
Reference:
[1] Adding tailscale to openwrt
目录 Cudy TR3000 |