From 2602f512e411e1c57d3020887800114fc00523a7 Mon Sep 17 00:00:00 2001 From: ArenaDruid <95113209+ArenaDruid@users.noreply.github.com> Date: Wed, 5 Feb 2025 14:46:53 +0800 Subject: [PATCH] Quartz sync: 2025-02-05 14:46:52 --- content/blog-20250130.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/content/blog-20250130.md b/content/blog-20250130.md index f6b2084f01ed..a0a39ac108ac 100644 --- a/content/blog-20250130.md +++ b/content/blog-20250130.md @@ -1,8 +1,9 @@ --- -title: 运维案例:让不同SD-WAN工具统一虚拟IP的一个方法 +title: 案例:让不同组网工具统一虚拟IP的一个方法 date: 2025-01-30 tags: - 运维 + - Tailscale comments: true publish: true --- @@ -37,8 +38,7 @@ nginx 4378 root 37u IPv4 82287 0t0 UDP localhost:57131- >53号端口的占用情况 ![[Pasted image 20250130235953.png]] ->[!Note] 图注 ->Tailscale拒绝了我使用非正式端口的服务作为名称服务器的操作 +*Tailscale拒绝了我使用非正式端口的服务作为名称服务器的操作* “这下一根筋变两头堵了”,我思考了一下,“也就是说,如果我想要实现这个方案,要不就得多弄一个服务器专门用来解析,要不就得对这个systemd-resovled服务下刀了。”无论哪个我都觉得麻烦。因此这个方案就搁浅了。 @@ -48,19 +48,18 @@ nginx 4378 root 37u IPv4 82287 0t0 UDP localhost:57131- ## 实践 首先,根据[子网路由文档](https://tailscale.com/kb/1019/subnets)的说明,我在服务器命令行终端运行了以下命令。 -```text -sudo tailscale up --advertise-routes=192.168.188.3/32 +```SHELL +sudo tailscale up --advertise-routes="192.168.188.3/32" ``` 随后登陆[Tailscale管理控制台](https://login.tailscale.com/admin/machines),定位NAS所在位置,在额外选项中点击 *"Edit route settings"*,并给设置的192.168.188.3/32网段打勾。 ![[Pasted image 20250131005212.png]] ->[!note] 图注 ->给NAS端申请的网段打勾批准 +*给NAS端申请的网段打勾批准* 此外还需要为客户端的Tailscale打开 **"Use Tailscale subnets"** 功能。 ![[Pasted image 20250131005522.png]] ->[!note] 图注 ->打开客户端Tailscale的"Use Tailscale subnets"功能 +*打开客户端Tailscale的"Use Tailscale subnets"功能* +## 效果图 ![[Pasted image 20250131005808.png]] >[!note] 图注 @@ -75,9 +74,9 @@ sudo tailscale up --advertise-routes=192.168.188.3/32 --- # 版权页 -

This work is licensed under CC BY 4.0

+Copyright (c) 2025 arenadruid.top | [![CC BY 4.0](https://licensebuttons.net/l/by/4.0/80x15.png)](https://creativecommons.org/licenses/by/4.0/) [^1]: 理论上,专业版星空组网的**端口转发**功能也能实现类似效果。 [^2]: 关于Tailscale子网路由的更详细信息,可以参阅这篇文章[Subnet routers · Tailscale Docs](https://tailscale.com/kb/1019/subnets) [^3]: 本文中Tailscale强制虚拟网段为100.64.0.0/10,而星空组网需要升级专业版来自定义虚拟网段,而且即使可以自定义虚拟网段,不同SD-WAN的虚拟网段重合只会导致网段冲突和网络问题 -[^4]: 红迪上也聊到了这个问题 \ No newline at end of file +[^4]: 红迪[Share subnet with other user : r/Tailscale](https://www.reddit.com/r/Tailscale/comments/1b398x5/share_subnet_with_other_user/)上也聊到了这个问题 \ No newline at end of file