forum.gl-inet.cn

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
    查看: 598|回复: 6

    [经验分享] GL.iNet Tailscale exit node (出口节点)

    [复制链接]

    57

    主题

    393

    帖子

    9594

    积分

    论坛元老

    Rank: 8Rank: 8

    积分
    9594
     楼主| 发表于 2025-12-9 11:44:51 | 显示全部楼层 |阅读模式
    本帖最后由 角色 于 2025-12-15 13:19 编辑

    GL.iNet 固件里就有 Tailscale,在非公网 IP,都能启动 [1],但是有个功能 exit node。

    可能有很多人不知道什么叫《出口节点》,有点像VxN。就像我是香港人,在大陆住居,如果我回到香港,想看 CCTV5,CCTV5+,CCTV16 体育频道就看不到,而且大陆家里的路由器是非公网 IP,GL.iNet 装有 Tailscale,只要你的电脑或手机安装了 Tailscale,就可以让你的电脑连到你的 GL.iNet 路由器。

    GL.iNet Tailscale custom exit node,不知道原因,为什么不叫 exit node,现在我用正式 Tailscale exit node。Exit nodes 有大陆,香港,美国,但是不能随便接,只要 members 才能接。大陆 exit node 主要看 CCTV5,香港和美国看 YouTube。

    References:
    [1] GL.iNet Tailscale 非公网都可以

    回复

    使用道具 举报

    57

    主题

    393

    帖子

    9594

    积分

    论坛元老

    Rank: 8Rank: 8

    积分
    9594
     楼主| 发表于 2025-12-9 11:45:10 | 显示全部楼层
    回复

    使用道具 举报

    57

    主题

    393

    帖子

    9594

    积分

    论坛元老

    Rank: 8Rank: 8

    积分
    9594
     楼主| 发表于 2025-12-9 11:45:31 | 显示全部楼层
    本帖最后由 角色 于 2025-12-13 11:30 编辑

    GL.iNet GL-BE6500 启动 Tailscale

    先启动 Tailscale,然后用 5G 数据手机联系非公网家里的路由器。现在用 GL-BE6500,其他的 GL 都可以如 GL-BE3600,GL-MT3000,GL-MT6000。

    图1:用电脑接路由器,启动 Tailscale,Enable Tailscale=yes,点击 Apply


    图2:选用 Allow Remote Access WAN and LAN


    图3:点击 Apply


    图4:点击 https link


    图5:在大陆或者手机,选 email


    图6:电脑或手机,Connect


    图7:电脑或手机,在 Tailscale machines 看到 gl-be6500, 点击 "..."


    图8:选 Edit route settings


    图9:电脑或手机,勾选 192.168.40.0/24 和 192.168.55.0/24,点击 Save


    图10:电脑或手机,Subnets enabled


    图11:手机,用 5G 数据手机 100.76.12.84 联系 GL-BE6500


    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?立即注册

    x
    回复

    使用道具 举报

    57

    主题

    393

    帖子

    9594

    积分

    论坛元老

    Rank: 8Rank: 8

    积分
    9594
     楼主| 发表于 2025-12-11 10:42:11 | 显示全部楼层
    本帖最后由 角色 于 2025-12-11 11:29 编辑

    Tailscale 手动更新

    因为 Tailscale 手动更新,这需要利用 PuTTY 进入 OpenWrt* 里。我的路由器是内联网 IP=192.168.40.0/24,所以 PuTTY IP=192.168.40.1

    图1:PuTTY IP=192.168.40.1


    图2:点击 Accept


    图3:输入 root and password


    图4:Tailscale update,Continue? [y/n] y
    1. root@GL-BE6500:~# tailscale update
    2. This will update Tailscale from 1.80.3 to 1.92.1. Continue? [y/n] y
    3. Downloading "https://pkgs.tailscale.com/stable/tailscale_1.92.1_arm64.tgz"
    4. Download size: 31108928
    5. Downloaded 512/31108928 (0.0%)
    6. Downloaded 15874664/31108928 (51.0%)
    7. Downloaded 31108928/31108928 (100.0%)
    8. Downloading "https://pkgs.tailscale.com/stable/tailscale_1.92.1_arm64.tgz.sig"
    9. Signature OK
    10. Extracting "/root/.cache/tailscale-update/tailscale_1.92.1_arm64.tgz"
    11. Updated /usr/sbin/tailscale
    12. Updated /usr/sbin/tailscaled
    13. Tailscale binaries updated successfully.
    14. Please restart tailscaled to finish the update.
    复制代码

    图5:Restart
    1. root@GL-BE6500:~# service tailscale restart
    2. TPM: error opening: stat /dev/tpmrm0: no such file or directory
    3. logtail started
    4. Program starting: v1.92.1-tfb55d3905-g9ac7fadc0, Go 1.25.5: []string{"/usr/sbin/tailscaled", "--cleanup"}
    5. LogID: fc89153bdd39d15c39433010369abef28892e7c28089a85aff4d34274460d149
    6. logpolicy: using system state directory "/var/lib/tailscale"
    7. dns: [rc=unknown ret=direct]
    8. dns: using "direct" mode
    9. dns: using *dns.directManager
    10. dns: inotify: NewDirWatcher: context canceled
    11. flushing log.
    12. logger closing down
    13. root@GL-BE6500:~#
    复制代码

    图6:Version 从 1.80.3-1 到 1.92.1


    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?立即注册

    x
    回复

    使用道具 举报

    57

    主题

    393

    帖子

    9594

    积分

    论坛元老

    Rank: 8Rank: 8

    积分
    9594
     楼主| 发表于 2025-12-11 11:29:48 | 显示全部楼层
    本帖最后由 角色 于 2025-12-15 13:12 编辑

    GL.iNet Tailscale exit node + 5G 手机

    现在我们不用 GL.iNet Tailscale custom exit node,而用 PuTTY 安装 Tailscale exit node [1]。只要接入家里就可以科学上网。

    图1:IP=100.76.12.84,gl-be6500 只要 Subnets,没有 Exit Node


    图2:IP=100.76.12.84


    图3:Accept


    图4:root and password,输入 tailscale up --advertise-routes=192.168.40.0/24,192.168.55.0/24 --snat-subnet-routes=false --advertise-exit-node --reset (图里是旧的)


    图5:点击 Edit route settings


    图6:Exit node


    图7:点击 Use as exit node


    图8:Tailscale dashboard,多加 Exit Node


    图9:外面 5G 手机


    图10:家里有科学上网,点击 YouTube 看


    Reference:
    [1] 4.2.0 固件Tailscale beta exit node

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?立即注册

    x
    回复

    使用道具 举报

    57

    主题

    393

    帖子

    9594

    积分

    论坛元老

    Rank: 8Rank: 8

    积分
    9594
     楼主| 发表于 2025-12-11 17:32:06 | 显示全部楼层
    本帖最后由 角色 于 2025-12-15 13:13 编辑

    Tailscale exit node 自动启动

    由于 Tailscale exit node 对 reboot 后失去 enabled,exit node 不能工作,这个问题需要整理。终于找到方案 [1],就是在 "Go to LuCI then System->Startup->Local startup" 加了 "( sleep 60; tailscale set --advertise-exit-node ) &" 在 exit 0 之前。

    Listing 1: Reboot 后,一次 "( sleep 60; tailscale set --advertise-exit-node ) &"
    1. # Put your custom commands here that should be executed once
    2. # the system init finished. By default this file does nothing.

    3. . /lib/functions/gl_util.sh
    4. remount_ubifs

    5. ( sleep 60; tailscale set --advertise-exit-node ) &

    6. exit 0
    复制代码

    References:
    [1] https://forum.gl-inet.com/t/tail ... net-routers/49088/8

    Others:
    用tailscale的exit node一种简单玩法 https://forum.gl-inet.cn/forum.p ... =3465&fromuid=13739



    回复

    使用道具 举报

    57

    主题

    393

    帖子

    9594

    积分

    论坛元老

    Rank: 8Rank: 8

    积分
    9594
     楼主| 发表于 6 天前 | 显示全部楼层
    本帖最后由 角色 于 2025-12-15 19:57 编辑

    Blank ............
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|gl-inet.cn ( 粤ICP备18130956号 )

    GMT+8, 2025-12-21 12:31 , Processed in 0.021771 second(s), 23 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表