Skip to content

Commit

Permalink
Quartz sync: 2025-02-05 14:46:52
Browse files Browse the repository at this point in the history
  • Loading branch information
ArenaDruid committed Feb 5, 2025
1 parent dafba04 commit 2602f51
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions content/blog-20250130.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 运维案例:让不同SD-WAN工具统一虚拟IP的一个方法
title: 案例:让不同组网工具统一虚拟IP的一个方法
date: 2025-01-30
tags:
- 运维
- Tailscale
comments: true
publish: true
---
Expand Down Expand Up @@ -37,8 +38,7 @@ nginx 4378 root 37u IPv4 82287 0t0 UDP localhost:57131-
>53号端口的占用情况
![[Pasted image 20250130235953.png]]
>[!Note] 图注
>Tailscale拒绝了我使用非正式端口的服务作为名称服务器的操作
*Tailscale拒绝了我使用非正式端口的服务作为名称服务器的操作*

“这下一根筋变两头堵了”,我思考了一下,“也就是说,如果我想要实现这个方案,要不就得多弄一个服务器专门用来解析,要不就得对这个systemd-resovled服务下刀了。”无论哪个我都觉得麻烦。因此这个方案就搁浅了。

Expand All @@ -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] 图注
Expand All @@ -75,9 +74,9 @@ sudo tailscale up --advertise-routes=192.168.188.3/32

---
# 版权页
<p xmlns:cc="http://creativecommons.org/ns#" >This work is licensed under <a href="https://creativecommons.org/licenses/by/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY 4.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://www.arenadruid.top/attachments/cc.svg" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://www.arenadruid.top/attachments/by.svg" alt=""></a></p>
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]: 红迪上也聊到了这个问题
[^4]: 红迪[Share subnet with other user : r/Tailscale](https://www.reddit.com/r/Tailscale/comments/1b398x5/share_subnet_with_other_user/)上也聊到了这个问题

0 comments on commit 2602f51

Please sign in to comment.