作者: 张无忌 時間: 2025-12-2 09:31 標題: Tailscale for everyone
本帖最後由 张无忌 於 2026-3-1 03:09 編輯
Tailscale 可以安装在 devices,如 macOS,Windows,Linux,iOS,Android,路由器(OpenWrt,pfSence,GL.iNet) 等等,安装后有每个 device 都有自己的 internal IP=100.x.x.x,公网 / 非公网 IP 都能安装,然后用 browser 100.x.x.x 可以看到 device,有些用 PuTTY 连 100.x.x.x 就可以连到 login,每一个 device 都可以连到对方。
香港与大陆的 devices 都可以连,香港或大陆家里非公网 IP 都可以用;Tailscale 其中有一个 feature 就是 exit note,大陆就是通过 exit note 在香港可以看到 CCTV5;而香港 Tailscale exit node 可以让大陆的 Tailscale 看到香港的 YouTube。
Reference:
[1] https://tailscale.com/
作者: 张无忌 時間: 2025-12-2 09:31
本帖最後由 张无忌 於 2026-5-2 00:47 編輯
Table of contents
Tailscale 的发展
零成本,香港和大陆电脑都装 Tailscale,能看到对方的网台
Tailscale peer relays
tailscale -h
大陆 SSH 到美国 IP 被 blocked 怎样办?
GL.iNet:
大陆非公网 GL.iNet Tailscale 可以让香港亲友看 CCTV5,CCTV5+ 和 CCTV16
Tailscale subnets and exit node on GL.iNet
OpenWrt:
非公网/公网 Tailscale on OpenWrt with subnets and exit node
Linux VPS:
Vultr 安装 Tailscale with exit node
腾讯云 Tailscale exit node
大陆用 Tailscale 需要用大陆自建 DERP 中转服务器
MikroTik container
HK Tailscale works on MikroTik hAP ac3 container
大陆 MikroTik RB5009UG+S+ container with Tailscale exit node
Others:
香港怎样看 CCTV5?
大陆非公网 IP 怎样看 YouTube?
开 Tailscale,看不到 home OpenWrt
目录 Tailscale for everyone
How I Guarantee a Direct Connection with Tailscale https://www.youtube.com/watch?v=wkBSjT1hO6k
作者: 张无忌 時間: 2025-12-2 09:32
本帖最後由 张无忌 於 2026-2-20 10:23 編輯
香港怎样看 CCTV5?
香港有电脑 Windows / macOS,可以安装 Tailscale,便有第一 device IP=100.x.x.1。大陆可以订购阿里云或腾讯云,然后安装 Tailscale。
在大陆如果没有其他 exit node,就要租用阿里云或腾讯云 Linux VPS,安装了 Tailscale + exit node。现在香港和大陆都有 Tailscale devices,在香港利用大陆的 exit node,就把香港 IP 变成 大陆 IP,你就可以看 CCTV5。
大家看看 腾讯云 Tailscale exit node 和 大陆非公网 GL.iNet Tailscale 可以让香港亲友看 CCTV5,CCTV5+ 和 CCTV16。
目录 Tailscale for everyone
作者: 张无忌 時間: 2025-12-2 09:33
本帖最後由 张无忌 於 2025-12-18 11:00 編輯
大陆非公网 IP 怎样看 YouTube?
一般大陆都用机场看 YouTube,如果不会搞机场,电脑可以安装 Tailscale,在香港家里(电脑 或 路由器)也安装 Tailscale + exit node,那么在大陆的 Tailscale,启动 exit note 去香港,那么大陆电脑 IP 转为香港 IP,这样就可以看到 YouTube。
可以看看 Vultr 安装 Tailscale with exit node
Reference:
[1] 【vpn】永久免费vpn,用tailscale搭建一个速度超快的节点,ip不会封,tailscale组网教程
Others:
【14】Tailscale搭建VPN翻墙教程,Exit node 使用与安装,支持 Win/Mac/Linux/iOS/安卓。
目录 Tailscale for everyone
作者: jackwong717 時間: 2025-12-2 10:13
回復 1 #张无忌
nas度玩左幾年了,
上大陸玩1,2日,酒店wifi無問題,
我手機差唔多在香港都長期連住,
用公司wifi同過慮廣告。
poco x6pro
作者: 口o口 時間: 2025-12-2 10:23
Tailscale 有一個缺點....就係慢.....
如在香港本地用又用 OpenWrt,pfSence ,opnsense, istoreos ...
直接用WG比較好...
作者: normalyan 時間: 2025-12-2 10:32
Tailscale 有一個缺點....就係慢.....
如在香港本地用又用 OpenWrt,pfSence ,opnsense, istoreos ...
直接 ...
口o口 發表於 2025-12-2 10:23
Tailscale主要係畀冇ip嘅人士使用, 好似5G上網, 大陸小區等等啲人...
作者: jackwong717 時間: 2025-12-2 11:26
回復 1 #张无忌
打通埋subnet就直接用內網ip,中記佢100.xxxxxxx個ip做咩呀!
poco x6pro
作者: 张无忌 時間: 2025-12-2 12:13
回覆 5#,8# jackwong717
谢谢 @jackwong717 的意见。
在大陆可以用大陆卡,安装了 Tailscale + exit node [1],可以连香港家里的 NAS,还有可以上 YouTube,WhatsApp,还有 subnet 我还没有用,不过谢谢记的意见。
你说的 subset 是不是
- tailscale up --advertise-routes=192.168.1.0/24 --accept-routes --advertise-exit-node
Reference:
[1] 【🔨 VPN不求人#1】【聊一聊Tailscale ! 】 | 如何在OpenWRT上配置Tailscale並管理設置
作者: jackwong717 時間: 2025-12-2 14:26
回復 9 #张无忌
是
poco x6pro
作者: jackwong717 時間: 2025-12-2 14:58
本帖最後由 jackwong717 於 2025-12-2 07:35 編輯
我剛測完公司無VPN下479Mb/s上351Mb/s
Tailscale Vpn上下有200Mb/s
都唔算慢啦
(手機測試)作者: naclts 時間: 2025-12-2 15:10
Tailscale 有一個缺點....就係慢.....
如在香港本地用又用 OpenWrt,pfSence ,opnsense, istoreos ...
直接 ...
口o口 發表於 2025-12-2 10:23
Tailscale 慢可能係因為你個 environment 做唔到直連
只能 relay
咁只能話係唔好彩
我自己用 Tailscale 行到 direct
上到 700 Mbps
作者: 口o口 時間: 2025-12-2 16:38
咁多數係我唔好彩
作者: javacomhk 時間: 2025-12-2 16:46
你響大陸用咗 TailScale 幾耐呀?裝過的乜機呀? 仲話 For Everyone???
作者: 张无忌 時間: 2025-12-3 11:18
本帖最後由 张无忌 於 2025-12-3 03:41 編輯
我在大陆用了 Tailscale 一个星期,之前用 ZeroTier,但是也不多。现在安装了 10 台 devices,美国、大陆,正常工作,不过有些机 off lines。我认为 Tailscale 不错,还可以用 exit nodes (VPN),我朋友可以看到 CCTV5。
图1:
[attach]2507145[/attach]
作者: javacomhk 時間: 2025-12-3 11:36
咁你繼續用哇,睇吓幾時瓜啦!
作者: normalyan 時間: 2025-12-3 12:51
師兄可以試下玩cf argo tunnel workers, 好似穩定好多 同快好多的

作者: Eric j 時間: 2025-12-3 14:39
Ching請問tailscale 怎樣行argo tunnel ?
via HKEPC IR 5.1.14 - Android(5.1.2F)
作者: stephenwong 時間: 2025-12-3 15:26
佢係話 CloudFlare 呀!
作者: Eric j 時間: 2025-12-3 17:44
哦哦原來咁明白啦!
via HKEPC IR 5.1.14 - Android(5.1.2F)
作者: 张无忌 時間: 2025-12-3 19:54
本帖最後由 张无忌 於 2025-12-3 12:25 編輯
开 Tailscale,看不到 home OpenWrt
以前没有用 Tailscale,看 OpenWrt LuCI or SSH 都可以,但是开了 Tailscale,它们全看不到,要关了就可以。
目录 Tailscale for everyone
作者: fakeman 時間: 2025-12-4 01:21
其實即係變返好似以前一開始佢狂推嘅 wireguard 一樣......
作者: javacomhk 時間: 2025-12-4 08:36
我嘅經驗係響大陸用任何 VPN 都要用 流動數據網絡,雖然比 fixed line 貴或慢的,但一定穩陣好多。
香港呢邊如果用 TailScale 就可以用 家居寛頻或 Fixed line。
作者: 张无忌 時間: 2025-12-9 22:49
本帖最後由 张无忌 於 2025-12-11 04:13 編輯
Vultr 安装 Tailscale with exit node
在大陆到美国安装 Tailscale with exit node on Vultr,可以在美国数据出口(美国 IP)。
我用 Debian 13,先 update
- apt update -y
- curl -fsSL https://tailscale.com/install.sh | sh
- tailscale up
- To authenticate, visit:
- https://login.tailscale.com/a/1824988d01d3ed
- Success.
- echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
- echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
- sudo sysctl -p /etc/sysctl.d/99-tailscale.conf
- root@vultr:~# tailscale up --accept-routes --advertise-exit-node
- Warning: IP forwarding is disabled, subnet routing/exit nodes will not work.
- See https://tailscale.com/s/ip-forwarding
- Warning: UDP GRO forwarding is suboptimally configured on enp1s0, UDP forwarding throughput capability will increase with a configuration change.
- See https://tailscale.com/s/ethtool-config-udp-gro
图1:
[attach]2508205[/attach]
图2:Tailscale dashboard,看到 exit node enabled
[attach]2508056[/attach]
目录 Tailscale for everyone
作者: 张无忌 時間: 2025-12-16 09:23
本帖最後由 张无忌 於 2025-12-16 08:23 編輯
在大陆我用 Tailscale 都把我的非公网路由器 GL.iNet and OpenWrt 弄好,有 subnets and exit done,我香港几个朋友在晚间高峰期,都能很流畅看到 CCTV5!!!!!
估计有部分香港人经常去大陆和香港两地,对大陆非公网路由器能在香港看到 CCTV5,会加紧把大陆的路由器加 Tailscale exit node。
作者: freshtomato 時間: 2025-12-16 10:46
在大陆我用 Tailscale 都把我的非公网路由器 GL.iNet and OpenWrt 弄好,有 subnets and exit done,我香港 ...
张无忌 發表於 2025-12-16 01:23
想問吓你在大陸用 www.natchecker.com
你的NAT 是 NAT1/2/3/4?
在大陸你是光猫拿IP 或 自己Router pppoe?
Thanks!
作者: mlyu 時間: 2025-12-16 13:07
[youtube]cmm8zjQ8HBc[/youtube]
之前見有人咁搭 VPN, 唔知有冇差唔多方法搭 VPN 入大陸?
佢連 hosting 都唔使, 用 cloudflare 搞掂
但大陸唔知有冇相關配置
作者: rabbit36591 時間: 2025-12-16 13:44
Tailscale 似乎唔易用呢
作者: 张无忌 時間: 2025-12-16 16:20
想問吓你在大陸用
你的NAT 是 NAT1/2/3/4?
在大陸你是光猫拿IP 或 自己Router pppoe?
Thanks! ...
freshtomato 發表於 2025-12-16 02:46
依据测试,我现在大陆公网是 NAT3,公网 IP 是通过自己路由器 PPPoE 获得。
作者: 张无忌 時間: 2025-12-16 16:31
很容易用的,你用香港手机先注册 Tailscale,然后登入大陆的 exit node,就可以看到 CCTV5 了。现在香港HKEPC member 想测试,就 PM 给我,然后我把 link 发给你,你就可以看大陆 CCTV5。
作者: kennylam777 時間: 2025-12-16 16:48
本帖最後由 kennylam777 於 2025-12-16 16:51 編輯
雖然TailScale響中國用得, 但始終都係WireGuard UDP底, 用一陣就會斷流, 當然TailScale會自己搵過另一個port, 但都仲係斷, 我試過, 北京或廣東聯通, 駁Wireguard都係要食33% Packet loss, IPv6如是。
係開就唔好淨係用IPv4 NAT, 開埋IPv6啦, 多一粒IP多少少機會。
作者: 张无忌 時間: 2025-12-16 19:31
雖然TailScale響中國用得, 但始終都係WireGuard UDP底, 用一陣就會斷流, 當然TailScale會自己搵過另一個por ...
kennylam777 發表於 2025-12-16 08:48
Tailscale 正常用 WireGuard UDP,是最快,如果被 blocked,它就自动改用 TCP 443(DERP),速度比较慢,但是看 CCTV5 还可以的。
作者: 张无忌 時間: 2025-12-17 14:04
本帖最後由 张无忌 於 2026-2-14 04:01 編輯
Tailscale 的发展
感谢 @fakeman 从 2025 年初从 MikroTik 再次进入 OpenWrt,第一个大陆路由器 GL.iNet GL-MT6000,最初用 Admin Panel,就用 OpenWrt*,用过 ZeroTier and Tailscale,最初感觉 Tailscale 挺难用就停下来,改用 ZeroTier,能把广东非公网与华东的路由器连起来。
最近发现 GL.iNet Admin Panel 有 ZeroTier 和 Tailscale,GL.iNet ZeroTier 也能用,但是 Tailscale 也没有用;但互联网也说能把非公网路由器连起来,基于 WireGuard UDP,还有一个 exit node,那个什么 exit node 都不懂。
ZeroTier 大约 2011 年开始运营;WireGuard 协议从 2015 年左右开发,2016 年首次公开代码,2020 年进入 Linux 内核;Tailscale 在 2019 年成立,然后基于 WireGuard 推出了自己的 Mesh VPN 服务。
Tailscale 早于 2021 年中期 就已经有 exit node 这个功能,在 2022 年 10月 HKEPC @fakeman 提及过 tailscale [1],而 Apple 2023 年用在 Apple TV (tvOS 17+),GL.iNet 在同年也有 Tailscale (custom exit node),OpenWrt 可能比 Apple and GL.iNet 更加早。
现在一般用家,在香港就用 Apple TV (有 exit node) 和 GL.iNet,在大陆用 GL.iNet (半 exit node) (GL-MT6000,GL-MT5000,GL-MT3600BE,GL-MT3000,GL-BE6500,GL-BE3600 等),用 GL.iNet 要用 PuTTY 进入 OpenWrt* Linux shell,输入 "tailscale up --advertise-routes=192.168.8.0/24,192.168.55.0/24 --snat-subnet-routes=false --advertise-exit-node --reset", 而 "192.168.8.0/24,192.168.55.0/24" 要根据实际改动 [2],就可以全 exit node;而用 OpenWrt* 就用我的帖子,一样可以做到全 exit node [3]。
在大陆非公网的 GL.iNet 路由器都能做出大陆 exit node (大陆 IP),在香港就能看 CCTV5 和其他!!!!!
Tailscale
- macOS
- iOS
- Windows
- Linux
- Android
我在 Tailscale exit node on OpenWrt 更懂和做好,把 GL.iNet 一起弄好,非常感谢日本作者 [4]。
References:
[1] Asus AX82U router 上使用 Tailscale Mesh VPN 分享
[2] GL.iNet GL-MT6000 with Tailscale subnets and exit node
[3] 非公网/公网 Tailscale on OpenWrt with subnets and exit node
[4] openwrtにtailscaleを追加する
目录 Tailscale for everyone
作者: rabbit36591 時間: 2025-12-17 17:40
回覆 30# 张无忌
師兄,先謝過.
作者: 张无忌 時間: 2025-12-18 19:53
本帖最後由 张无忌 於 2025-12-25 05:00 編輯
零成本,香港和大陆电脑都装 Tailscale,能看到对方的网台
香港电脑和大陆电脑都安装 Tailscale,不关是公网 IP 或非公网 IP 都可以。
香港可以看到 CCTV5,CCTV5+,QQ Music
大陆可以看到 YouTube,WhatsApp
打开 Tailscale 下载网页
图1:https://tailscale.com/download
[attach]2509098[/attach]
图2:香港或大陆其中一方电脑 Desktop run exit node
[attach]2509073[/attach]
假如大陆的电脑打开 run exit node,那么香港就选用大陆的 exit node 为出口(取得大陆 IP),那么在香港的电脑就打开 CCTV5 的网页,如下:
图3:https://tv.cctv.com/live/cctv5/ 大陆 IP 才能看到,香港 IP 看不到。
[attach]2509099[/attach]
目录 Tailscale for everyone
作者: 张无忌 時間: 2025-12-25 12:37
本帖最後由 张无忌 於 2025-12-31 13:00 編輯
HK Tailscale works on MikroTik hAP ac3 container
在香港 MikroTik hAP ac3 container,安装 Tailscale 在 USB drive (container) [1],还启动 exit node,但是速度比较慢,听 YouTube 听歌还可以,但是 subnets 在 hAP ac2 依然有问题,可以 ping 到,要找原因。
Registry URL
- /container/config/set registry-url=https://registry-1.docker.io tmpdir=/disk1/pull
The basic network of the container
- /interface/veth add name=veth3 address=172.16.77.4/24 gateway=172.16.77.1
- /interface/bridge add name=dockers
- /ip/address add address=172.16.77.1 interface=dockers
- /interface/bridge/port add bridge=dockers interface=veth3
- /ip/firewall/nat add chain=scrnat action=masquerade src-address=172.16.77.0/24
Envlists
- /container/envs/add list=tailscale key=TS_HOSTNAME value="ac3"
- /container/envs/add list=tailscale key=TS_STATE_DIR value="/var/lib/tailscale"
- /container/envs/add list=tailscale key=CAP_ADD value="NET_ADMIN"
- /container/envs/add list=tailscale key=TS_USERSPACE value="true"
- /container/envs/add list=tailscale key=TS_EXTRA_ARGS value="--accept-routes --advertise-exit-node"
- /container/envs/add list=tailscale key=TS_ROUTES value="172.16.77.0/24"
Pull image
- /container/add remote-image="tailscale/tailscale:latest" check-certificate=no name="tailscale" interface=veth3 root-dir=disk1/tailscale envlists=tailscale logging=yes start-on-boot=yes
Status
- /container print
- 2 ... status=extracting
- /container print
- 2 ... status=stopped
图1:Status 在运行中
[attach]2509833[/attach]
图2:成功,import done
[attach]2509834[/attach]
图3:Status stop again, 点击 "Start"
[attach]2509835[/attach]
图4:出现 https://login ...,点击 https://login ...
[attach]2509836[/attach]
图5:Copy message to a browser
[attach]2509837[/attach]
图6:Tailscale 可以 exit node
[attach]2509840[/attach]
Container reference
- 2 R file="" remote-image="tailscale/tailscale:latest" check-certificate=no
- name="tailscale" tag="registry-1.docker.io/tailscale/tailscale:latest"
- os="linux" arch="arm" interface=veth3 envlists=tailscale cmd="" entrypoint=""
- stop-signal=15-SIGTERM root-dir=/disk1/tailscale mounts="" dns="" hostname=""
- domain-name="" workdir="" logging=yes start-on-boot=no
- auto-restart-interval=none memory-high=unlimited memory-current=54.3MiB
- devices="" passed-devs="" config-json=
New USB drive
- /disk format usb1 file-system=ext4 mbr-partition-table=no
Reference:
[1] https://hub.docker.com/r/tailscale/tailscale
目录 Tailscale for everyone
作者: 张无忌 時間: 2025-12-26 19:13
本帖最後由 张无忌 於 2026-3-28 06:03 編輯
大陆 MikroTik RB5009UG+S+ container with Tailscale exit node
RouterOS 7.22.1
大陆安装 MikroTik RB5009UG+S+ container 一般是装不到,需要主路由要有
1)科学上网(PassWall / OpenClash / HomeProxy)或
2)HK(LAN / Wi-Fi),用 另外一个 MikroTik 做 HK LAN and HK Wi-Fi。
Registry URL
- /container/config/set registry-url=https://registry-1.docker.io tmpdir=/usb1/pull
The basic network of the container
- /interface/veth add name=veth1 address=172.17.0.2/24 gateway=172.17.0.1
- /interface/bridge add name=dockers
- /ip/address add address=172.17.0.1/24 interface=dockers
- /interface/bridge/port add bridge=dockers interface=veth1
- /ip/firewall/nat
- add chain=scrnat action=masquerade src-address=172.17.0.0/24
Pull image
- /container/add remote-image="tailscale/tailscale:latest" check-certificate=no name="tailscale" interface=veth1 root-dir=usb1/tailscale envlists=tailscale logging=yes
Envlists
- /container/envs/add list=tailscale key=TS_HOSTNAME value="RB5009"
- /container/envs/add list=tailscale key=TS_STATE_DIR value="/var/lib/tailscale"
- /container/envs/add list=tailscale key=CAP_ADD value="NET_ADMIN"
- /container/envs/add list=tailscale key=TS_USERSPACE value="true"
- /container/envs/add list=tailscale key=TS_EXTRA_ARGS value="--accept-routes --advertise-exit-node"
- /container/envs/add list=tailscale key=TS_ROUTES value="192.168.88.0/24,172.17.0.0/24"
Pull image
- /container/add remote-image="tailscale/tailscale:latest" check-certificate=no name="tailscale" interface=veth1 root-dir=usb1/tailscale envlists=tailscale logging=yes start-on-boot=yes
之前经常失败,主要没有 "check-certificate=no",default "yes",自从改了 yes-> no 就没事。
其他与上一条帖一样。
图1:Tailscale
[attach]2509887[/attach]
目录 Tailscale for everyone
作者: nexstar 時間: 2025-12-26 21:21
深圳聯通/電信
個 5G MBIM modem 唔係成日connect 到
有咩APN 一定得? 3gnet/ wonet/ctnet
定要轉移動?

駁到就好快
** 出左廣東省
作者: 张无忌 時間: 2025-12-27 10:27
本帖最後由 张无忌 於 2025-12-27 02:29 編輯
回覆 38# nexstar
你说到 5G modem,如果在大陆用应该没有问题(连 CCTV 都没问题),是否连香港是否出问题?
作者: 张无忌 時間: 2026-2-3 17:52
本帖最後由 张无忌 於 2026-2-4 11:18 編輯
大陆用 Tailscale 需要用大陆自建 DERP 中转服务器
如果大陆用 Tailscale,就算在外面接 Tailscale 都要用 DERP (Designated Encrypted Relay for Packets) 中转服务器,一般的官方的 DERP 大陆是没有的,在香港、日本、新加坡、欧美有官方的 DERP,那么大陆就需要自己建立的 DERP。在香港使用 Tailscale,速度非常块,只有不去大陆网就非常好!!!如果香港 Tailscale 连大陆 Tailscale exit exit 的话,就速度不稳定,主要(中国)香港与(中国)大陆中有 GFW。
大陆家里的 GL.iNet GL-MT6000 (或者同类的 GL.iNet 路由器)或 OpenWrt 安装 Tailscale subnets and exit node,手机或电脑安装 Tailscale,最好能大陆建立自己 DERP 服务器,在大陆家里有科学上网功能,那么在大陆外面要连接大陆家里的 Tailscale subnets,可以看到家里的 NAS,再连上 Tailscale exit node,就可以在家里科学上网。
大陆要安装一个自己的 DERP 服务器是非常重要,不需要大陆以外的官方 DERP。
现在我参考大陆的 Tailscale [1],
图1:要 Tailscale 官方 DERP
[attach]2513967[/attach]
图2:用大陆自建 DERP,不需要官方 DERP
[attach]2513968[/attach]
A. 自建 DERP [2]
A1. 更新包管理工具,获取最新软件列表
- apt update
A2. 进入 root 用户目录
- apt install wget git openssl curl -y
B. 搭建 Go 语言环境
B1. 下载 Go 语言压缩包(大陆地区)
- wget https://golang.google.cn/dl/go1.25.0.linux-amd64.tar.gz
B2. 解压 Go 压缩包到 /usr/local/ 路径下
- tar -C /usr/local -xzf go1.25.0.linux-amd64.tar.gz
B3. 将 Go 语言持久化加入系统环境变量,并立即生效
- echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile
- source /etc/profile
B4. *大陆地区切换使用内地下载源 (Go 1.13 及以上)
- go env -w GO111MODULE=on
- go env -w GOPROXY=https://goproxy.cn,direct
C. 搭建 DERP 服务
C1. 编译并安装 tailscale derper 模块
- go install tailscale.com/cmd/derper@latest
C2. 创建文件夹并移动 derper 到合适位置
- mkdir /usr/local/derp
- mkdir /usr/local/derp/bin
- mv /root/go/bin/derper /usr/local/derp/bin
C3. 创建系统服务配置文件(务必完整复制粘贴这串多行指令,并替换自己服务器的 IPv4 地址)
- cat > /etc/systemd/system/derper.service << EOF
- [Unit]
- Description=Tailscale DERP Server
- After=network.target
- Wants=network.target
- [Service]
- User=root
- Group=root
- ExecStart=/usr/local/derp/bin/derper -certmode=manual -certdir=/usr/local/derp -hostname=你的服务器公网IPv4地址 -a :33331 -http-port=33332 --verify-clients
- Restart=on-failure
- RestartSec=5s
- [Install]
- WantedBy=multi-user.target
- EOF
C4. 启用并立即启动 DERP 服务
- systemctl enable derper
- systemctl start derper
C5. 检查 DERP 服务运行状态,并点击键盘 q 键退回命令行
- systemctl status derper
C5. 进入 DERP 目录检查生成的 HTTPS 证书密钥
- cd /usr/local/derp
- ls
D. 配置 Linux 防火墙
D1. 安装 ufw 防火墙
- apt install ufw
D2. 开放必要端口,如果你的云服务器上还自定义了其他服务,请开放对应的端口
- ufw allow 22
- ufw allow 33331
- ufw allow 33332
- ufw allow 3478
D3. 启用 ufw 防火墙
- ufw enable
E. 测试 DERP 服务是否上线
E1. 在浏览器访问以下网址,忽略不安全提示,点击继续访问,若出现 DERP 页面,说明服务已上线
- https://你的服务器公网IPv4地址:33331
F. 将服务器加入 Tailscale 局域网
F1. 安装 Tailscale
- curl -fsSL https://tailscale.com/install.sh | sh
F2. 开启 Tailscale
- tailscale up
G. 使用自建 DERP 替代官方 DERP
G1. 进入 Tailscale 控制台,点击顶部菜单栏的“Access controls”,点击“JSON editor”,在第一层大括号内粘贴以下内容,之后点击底部“Save”保存更改
- "derpMap": {
- "OmitDefaultRegions": false,
- "Regions": {
- "900": {
- "RegionID": 900,
- "RegionCode": "mcn",
- "RegionName": "Mainland China",
- "Nodes": [
- {
- "Name": "900",
- "RegionID": 900,
- "DERPPort": 33331,
- "IPv4": "你的服务器公网IPv4地址",
- "InsecureForTests": true,
- },
- ],
- },
- },
- },
大陆 Tailscale Mainland China (mcn) 测试
Listing 1:Exit node=none,console=大陆家里,mcn 有 18.8ms
- C:\Users\Nancy>tailscale netcheck
- 2026/02/01 16:11:19 portmap: monitor: gateway and self IP changed: gw=192.168.55.1 self=192.168.55.181
- Report:
- * Time: 2026-02-01T08:11:21.262181Z
- * UDP: true
- * IPv4: yes, 36.56.xx.yy:53433
- * IPv6: yes, [240e:361:422d:600:f15a:6b50:36eb:6451]:53434
- * MappingVariesByDestIP: false
- * PortMapping:
- * CaptivePortal: false
- * Nearest DERP: Mainland China
- * DERP latency:
- - mcn: 18.8ms (Mainland China)
- - sfo: 148.1ms (San Francisco)
- - hkg: 153.6ms (Hong Kong)
- - nue: 163.1ms (Nuremberg)
- - lax: 166.4ms (Los Angeles)
- - hel: 185.3ms (Helsinki)
- - dfw: 185.8ms (Dallas)
- - tor: 190.9ms (Toronto)
- - ord: 192.9ms (Chicago)
- - hnl: 195.6ms (Honolulu)
- - mia: 205.2ms (Miami)
- - nyc: 205.2ms (New York City)
- - sea: 209.9ms (Seattle)
- - iad: 210.2ms (Ashburn)
- - tok: 219.3ms (Tokyo)
- - fra: 220.1ms (Frankfurt)
- - lhr: 220.4ms (London)
- - par: 223.4ms (Paris)
- - den: 223.7ms (Denver)
- - ams: 230.9ms (Amsterdam)
- - waw: 239.1ms (Warsaw)
- - mad: 240.6ms (Madrid)
- - sin: 245.5ms (Singapore)
- - syd: 288.4ms (Sydney)
- - dbi: 311.9ms (Dubai)
- - sao: 345ms (São Paulo)
- - nai: 362.9ms (Nairobi)
- - blr: 375.8ms (Bengaluru)
- - jnb: 391.7ms (Johannesburg)
- C:\Users\Nancy>
Listing 2: Exit node=none,console=手机中国移动
- C:\Users\Nancy>tailscale netcheck
- 2026/02/04 19:10:16 portmap: monitor: gateway and self IP changed: gw=172.20.10.1 self=172.20.10.6
- Report:
- * Time: 2026-02-04T11:10:21.7652217Z
- * UDP: true
- * IPv4: yes, 39.144.xx.xx:51150
- * IPv6: yes, [2409:8931:4240:49d1:f965:9d57:39a1:96f]:55179
- * MappingVariesByDestIP: true
- * PortMapping:
- * CaptivePortal: false
- * Nearest DERP: Mainland China
- * DERP latency:
- - mcn: 50.1ms (Mainland China)
- - hkg: 80.9ms (Hong Kong)
- - sin: 102.1ms (Singapore)
- - tok: 110.1ms (Tokyo)
- - blr: 148.3ms (Bengaluru)
- - lax: 221.9ms (Los Angeles)
- - sfo: 234.7ms (San Francisco)
- - hel: 234.8ms (Helsinki)
- - sea: 236.9ms (Seattle)
- - nue: 237.1ms (Nuremberg)
- - syd: 249.8ms (Sydney)
- - dfw: 262.6ms (Dallas)
- - den: 273.9ms (Denver)
- - nyc: 276.6ms (New York City)
- - ord: 277.8ms (Chicago)
- - iad: 288ms (Ashburn)
- - hnl: 289.1ms (Honolulu)
- - tor: 294.2ms (Toronto)
- - mia: 300.5ms (Miami)
- - ams: 301.3ms (Amsterdam)
- - par: 301.9ms (Paris)
- - fra: 319.6ms (Frankfurt)
- - waw: 322.9ms (Warsaw)
- - nai: 334.2ms (Nairobi)
- - dbi: 341.8ms (Dubai)
- - lhr: 352.9ms (London)
- - mad: 368.3ms (Madrid)
- - sao: 423.4ms (São Paulo)
- - jnb: 442.2ms (Johannesburg)
- C:\Users\Nancy>
Listing 3: Exit node=vultr (美国),console=大陆家里
- C:\Users\Nancy>tailscale netcheck
- Report:
- * Time: 2026-01-29T06:05:44.1478685Z
- * UDP: false
- * IPv4: (no addr found)
- * IPv6: no, but OS has support
- * MappingVariesByDestIP:
- * PortMapping:
- * CaptivePortal: false
- * Nearest DERP: Los Angeles
- * DERP latency:
- - lax: 148.1ms (Los Angeles)
- - sfo: 159.6ms (San Francisco)
- - sea: 176.3ms (Seattle)
- - dfw: 180ms (Dallas)
- - tor: 196.1ms (Toronto)
- - iad: 201.9ms (Ashburn)
- - hnl: 203.6ms (Honolulu)
- - mia: 203.6ms (Miami)
- - nyc: 204.9ms (New York City)
- - tok: 257.4ms (Tokyo)
- - lhr: 276.4ms (London)
- - par: 280.3ms (Paris)
- - ams: 283.6ms (Amsterdam)
- - fra: 287.2ms (Frankfurt)
- - mad: 291.5ms (Madrid)
- - waw: 299.5ms (Warsaw)
- - nue: 307ms (Nuremberg)
- - sin: 317.4ms (Singapore)
- - mcn: 318.2ms (Mainland China)
- - hel: 322.4ms (Helsinki)
- - sao: 340.2ms (São Paulo)
- - blr: 356.5ms (Bengaluru)
- - dbi: 370.6ms (Dubai)
- - nai: 411.1ms (Nairobi)
- - jnb: 444.3ms (Johannesburg)
- - hkg: 471.1ms (Hong Kong)
- - syd: (Sydney)
- - ord: (Chicago)
- - den: (Denver)
- C:\Users\Nancy>
Listing 4: Exit node=Vultr (美国),console=Vultr
- root@vultr:~# tailscale netcheck
- Report:
- * Time: 2026-01-29T06:18:58.542369334Z
- * UDP: true
- * IPv4: yes, 207.246.101.103:48426
- * IPv6: no, but OS has support
- * MappingVariesByDestIP: false
- * PortMapping:
- * Nearest DERP: Los Angeles
- * DERP latency:
- - lax: 700µs (Los Angeles)
- - sfo: 7.8ms (San Francisco)
- - sea: 27.1ms (Seattle)
- - den: 28.6ms (Denver)
- - dfw: 33.2ms (Dallas)
- - tor: 48.3ms (Toronto)
- - iad: 52.5ms (Ashburn)
- - hnl: 54.4ms (Honolulu)
- - ord: 55ms (Chicago)
- - mia: 56.1ms (Miami)
- - nyc: 59.2ms (New York City)
- - sin: (Singapore)
- - fra: (Frankfurt)
- - syd: (Sydney)
- - blr: (Bengaluru)
- - tok: (Tokyo)
- - lhr: (London)
- - sao: (São Paulo)
- - ams: (Amsterdam)
- - jnb: (Johannesburg)
- - par: (Paris)
- - mad: (Madrid)
- - hkg: (Hong Kong)
- - waw: (Warsaw)
- - dbi: (Dubai)
- - nai: (Nairobi)
- - nue: (Nuremberg)
- - hel: (Helsinki)
- - mcn: (Mainland China)
- root@vultr:~#
References:
[1] [Tutorial] Access Your Home LAN from the Internet! | Tailscale + Self-Hosted DERP Server | D1 Tech
[2] https://d1tech.org/tailscale-derp-tutorial/
Others:
[3] 自建免备案防偷 Tailscale 国内中继(DERP)教程
[4] 不使用域名搭建自己的tailscale derp服务
[5] DERP servers
[6] Custom DERP servers
[7] 自建免备案防偷 Tailscale 国内中继(DERP)教程
[8] Tailscale 替代 DERP:Peer Relays 更加简单的中继方法(支持分流)
目录 Tailscale for everyone
作者: mcjin2001 時間: 2026-2-3 18:43
畀幾廿蚊人賺好過自己搞咁複雜啦
via HKEPC IR 5.1.14 - Android(5.1.2F)
作者: normalyan 時間: 2026-2-3 19:11
學下科學上網仲免費添

作者: mcjin2001 時間: 2026-2-3 20:03
要畀機場費...
via HKEPC IR 5.1.14 - Android(5.1.2F)
作者: normalyan 時間: 2026-2-3 22:51
No la... 免費CF workers & pages ECH snippets等等快過d機場la
作者: xo_ox 時間: 2026-2-4 08:50
how? I follow some page but not work ... : (
作者: mcjin2001 時間: 2026-2-4 09:51
彈條youtube教學片上嚟畀大家欣賞下啦!得個齋talking...
via HKEPC IR 5.1.14 - Android(5.1.2F)
作者: 张无忌 時間: 2026-2-15 19:07
大陆用 Tailscale 需要用大陆自建 DERP 中转服务器,只是自己用,没有问题,但是 share machine 就出问题(share 给大陆或香港 members),如果你是到怎样解决,请你告知,谢谢。
作者: 张无忌 時間: 2026-2-28 21:29
本帖最後由 张无忌 於 2026-3-1 02:18 編輯
Tailscale peer relays
针对大陆 Tailscale 对大陆 tailscale 连接,一般要通过美国,为了解决之个问题,我自己在大陆可以建 DERP 中转服务器,大陆与大陆之间不用美国,而用了大陆 DERP 中转服务器,连接速度很多,由于在前面说过对 share machine,自己用是没有问题,但是 share 给大陆或香港 members 就有问题。
最近 2026 年 2 月份 Tailscale 又出了 peer relays,直接与自建 DERP 一样,不知道之前 share members 问题解决?下面有 [1] 至 [4] 个文章可以参考。
References:
[1] Tailscale Peer Relays
[2] How I Guarantee a Direct Connection with Tailscale
[3] How NAT traversal works
[4] Tailscale Peer‑Relay 全面示範|Azure Ubuntu 實戰設定、UDP 封鎖 Failover、DERP 與 Peer‑Relay 完整教學
目录 Tailscale for everyone
作者: normalyan 時間: 2026-3-1 17:11
彈條youtube教學片上嚟畀大家欣賞下啦!得個齋talking...
via HKEPC IR 5.1.14 - Android(5. ...
mcjin2001 發表於 2026-2-4 09:51
畀曬keywords你自己去youtube search大把啦!
作者: 张无忌 時間: 2026-3-10 16:48
本帖最後由 张无忌 於 2026-3-10 08:54 編輯
tailscale -h
Tailscale help
- C:\Users\Nancy>tailscale -h
- The easiest, most secure way to use WireGuard.
- USAGE
- tailscale [flags] <subcommand> [command flags]
- For help on subcommands, add --help after: "tailscale status --help".
- This CLI is still under active development. Commands and flags will
- change in the future.
- SUBCOMMANDS
- up Connect to Tailscale, logging in if needed
- down Disconnect from Tailscale
- set Change specified preferences
- login Log in to a Tailscale account
- logout Disconnect from Tailscale and expire current node key
- switch Switch to a different Tailscale account
- configure Configure the host to enable more Tailscale features
- syspolicy Diagnose the MDM and system policy configuration
- netcheck Print an analysis of local network conditions
- ip Show Tailscale IP addresses
- dns Diagnose the internal DNS forwarder
- status Show state of tailscaled and its connections
- metrics Show Tailscale metrics
- ping Ping a host at the Tailscale layer, see how it routed
- nc Connect to a port on a host, connected to stdin/stdout
- ssh SSH to a Tailscale machine
- funnel Serve content and local servers on the internet
- serve Serve content and local servers on your tailnet
- version Print Tailscale version
- web Run a web server for controlling Tailscale
- file Send or receive files
- bugreport Print a shareable identifier to help diagnose issues
- cert Get TLS certs
- lock Manage tailnet lock
- licenses Get open source license information
- exit-node Show machines on your tailnet configured as exit nodes
- update Update Tailscale to the latest/different version
- whois Show the machine and user associated with a Tailscale IP (v4 or v6)
- drive Share a directory with your tailnet
- appc-routes Print the current app connector routes
- completion Shell tab-completion scripts
- FLAGS
- --socket value
- path to tailscaled socket
用的比较多
- netcheck Print an analysis of local network conditions
- status Show state of tailscaled and its connections
- ping Ping a host at the Tailscale layer, see how it routed
目录 Tailscale for everyone
作者: 张无忌 時間: 2026-3-17 21:54
本帖最後由 张无忌 於 2026-3-21 15:33 編輯
大陆 SSH 到美国 IP 被 blocked 怎样办?
本来要在美国 Vultr set up tailscale,但是用 PuTTY connect 美国 IP 就 refused,说明 GFW 知道去美国 Vultr VPS 就不允许,之前都没有事,但是今次就连接不上。在大陆不给我连,就改用日本或香港 Tailscale exit node(100.x.x.x),例如我用日本 Tailscale exit node,之后我在日本用 PuTTY 到美国 Vultr VPS IP。
在日本 console
- ssh <Vultr IP>
在美国 Vultr VPS set 好后 Tailscale exit node,然后又有一个 100.x.x.x,在大陆用 Tailscale exit node 100.x.x.x 到美国。
目录 Tailscale for everyone

